From a54b96f146dc630eb99cf9d87a83ca4e520cdda6 Mon Sep 17 00:00:00 2001 From: mikec Date: Sat, 14 Feb 2009 15:07:54 +0000 Subject: [PATCH] Added paraxip patch for 1.2 and renamed the patch to 1.2 git-svn-id: svn://192.168.202.10@1059 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../vicidial_paraxip_chan_sip-1.2.patch | 36 +++++++++++++++++++ ...ch => vicidial_paraxip_chan_sip-1.4.patch} | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.2.patch rename agc_2-X/trunk/extras/{vicidial_paraxip_chan_sip.patch => vicidial_paraxip_chan_sip-1.4.patch} (95%) diff --git a/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.2.patch b/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.2.patch new file mode 100644 index 00000000..342cfcee --- /dev/null +++ b/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.2.patch @@ -0,0 +1,36 @@ +--- chan_sip.c.old 2009-02-03 12:02:35.000000000 -0500 ++++ chan_sip.c 2009-02-03 11:58:47.000000000 -0500 +@@ -4969,6 +4969,7 @@ + char *l = NULL, *n = NULL; + int x; + char urioptions[256]=""; ++ char *paraxipcpd = ";cpd=on"; + + if (ast_test_flag(p, SIP_USEREQPHONE)) { + char onlydigits = 1; +@@ -5059,8 +5060,13 @@ + if (p->options && p->options->uri_options) + ast_build_string(&invite, &invite_max, ";%s", p->options->uri_options); + ++ /* Tell ParaXip to enable CPD */ ++ ast_build_string(&invite, &invite_max, "%s", paraxipcpd); ++ + ast_copy_string(p->uri, invite_buf, sizeof(p->uri)); + ++ ++ + if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) { + /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */ + snprintf(to, sizeof(to), ";tag=%s", p->uri, p->theirtag); +@@ -9831,6 +9837,11 @@ + process_sdp(p, req); + } + ++ /* See what ParaXip had to say */ ++ char cpd_result[512]; ++ ast_copy_string(cpd_result, get_header(req, "CPD-Result"), sizeof(cpd_result)); ++ manager_event(EVENT_FLAG_SYSTEM, "CPD-Result", "ChannelDriver: SIP\r\nChannel: %s\r\nCallerIDName: %s\r\nUniqueid: %s\r\nResult: %s\r\n", p->owner->name, p->owner->cid.cid_name, p->owner->uniqueid, cpd_result); ++ + /* Parse contact header for continued conversation */ + /* When we get 200 OK, we know which device (and IP) to contact for this call */ + /* This is important when we have a SIP proxy between us and the phone */ diff --git a/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip.patch b/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.4.patch similarity index 95% rename from agc_2-X/trunk/extras/vicidial_paraxip_chan_sip.patch rename to agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.4.patch index 2109d383..d7e301ab 100644 --- a/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip.patch +++ b/agc_2-X/trunk/extras/vicidial_paraxip_chan_sip-1.4.patch @@ -1,4 +1,4 @@ ---- ./channels/chan_sip.c 2008-12-23 11:33:09.000000000 -0500 +--- ./channels/chan_sip.c.old 2008-12-23 11:33:09.000000000 -0500 +++ ./channels/chan_sip.c 2009-02-02 03:43:48.000000000 -0500 @@ -6964,6 +6964,7 @@ char tmp2[SIPBUFSIZE/2];