diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-02-08 11:16:05 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-02-08 11:16:05 +0000 |
commit | e546a129f57c7360db0cc7b4f68c4662aeaed164 (patch) | |
tree | adaa5cf0196bbcc90c29d3c44963189950e18a2d /pjsip/src/pjsip/sip_util.c | |
parent | 2c311b76b30a8d5d9530179c53f1abd602160f4f (diff) |
Initial UAS implementation in invite session
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@156 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip/sip_util.c')
-rw-r--r-- | pjsip/src/pjsip/sip_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pjsip/src/pjsip/sip_util.c b/pjsip/src/pjsip/sip_util.c index 1a3fc3b6..9b48d195 100644 --- a/pjsip/src/pjsip/sip_util.c +++ b/pjsip/src/pjsip/sip_util.c @@ -536,6 +536,7 @@ PJ_DEF(pj_status_t) pjsip_endpt_create_cancel( pjsip_endpoint *endpt, const pjsip_cid_hdr *cid_hdr; const pjsip_cseq_hdr *cseq_hdr; const pjsip_hdr *hdr; + pjsip_hdr *via; pj_status_t status; /* The transmit buffer must INVITE request. */ @@ -572,6 +573,11 @@ PJ_DEF(pj_status_t) pjsip_endpt_create_cancel( pjsip_endpoint *endpt, if (status != PJ_SUCCESS) return status; + /* Clear Via headers in the new request. */ + while ((via=pjsip_msg_find_hdr(cancel_tdata->msg, PJSIP_H_VIA, NULL)) != NULL) + pj_list_erase(via); + + /* Must only have single Via which matches the top-most Via in the * request being cancelled. */ |