summaryrefslogtreecommitdiff
path: root/pjsip-apps
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-02-26 11:14:03 +0000
committerBenny Prijono <bennylp@teluu.com>2008-02-26 11:14:03 +0000
commit4a8234bbb10ae3309f0c3fe2f0dcccf86060fe99 (patch)
treec9a878a52f1084dfed8b7305d83abe69097d9564 /pjsip-apps
parentac9e0860b5bec1043aafdde890882982a34117fb (diff)
Stateful proxy sample: do not create CANCEL if UAC INVITE transaction has been responded with final response
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1822 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r--pjsip-apps/src/samples/stateful_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/stateful_proxy.c b/pjsip-apps/src/samples/stateful_proxy.c
index 695f5320..8b63c277 100644
--- a/pjsip-apps/src/samples/stateful_proxy.c
+++ b/pjsip-apps/src/samples/stateful_proxy.c
@@ -269,7 +269,7 @@ static pj_bool_t proxy_on_rx_request( pjsip_rx_data *rdata )
* we receive final response from the UAC INVITE transaction.
*/
uas_data = (struct uas_data*) invite_uas->mod_data[mod_tu.id];
- if (uas_data->uac_tsx) {
+ if (uas_data->uac_tsx && uas_data->uac_tsx->status_code < 200) {
pjsip_tx_data *cancel;
pj_mutex_lock(uas_data->uac_tsx->mutex);