diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-08-05 20:14:39 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-08-05 20:14:39 +0000 |
commit | e73b94482189299eaf05fdca2850650d1f033663 (patch) | |
tree | 63c06c4610e9003ce8488437218030119d13693c /pjsip/src/pjsua-lib/pjsua_pres.c | |
parent | c99d9cd5ab9be3bce89f84a54abbe87348529a2e (diff) |
Ticket #585: Handle non-SIP URI in Contact header of incoming INVITE and SUBSCRIBE requests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2194 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_pres.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_pres.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_pres.c b/pjsip/src/pjsua-lib/pjsua_pres.c index e2c35c1e..23050ff2 100644 --- a/pjsip/src/pjsua-lib/pjsua_pres.c +++ b/pjsip/src/pjsua-lib/pjsua_pres.c @@ -688,6 +688,8 @@ static pj_bool_t pres_on_rx_request(pjsip_rx_data *rdata) pjsua_perror(THIS_FILE, "Unable to generate Contact header", status); PJSUA_UNLOCK(); + pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata, 400, NULL, + NULL, NULL); return PJ_TRUE; } } @@ -700,6 +702,8 @@ static pj_bool_t pres_on_rx_request(pjsip_rx_data *rdata) "Unable to create UAS dialog for subscription", status); PJSUA_UNLOCK(); + pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata, 400, NULL, + NULL, NULL); return PJ_TRUE; } |