Re: [SR-Users] How to rewrite tu in CANCEL message ?
Hello, We solved problems by disabling double rr in rr module. Now this works well! :) Thank all of you, Julia. _ From: Julia [mailto:juli...@gmail.com] Sent: Monday, February 04, 2013 3:17 PM To: 'mico...@gmail.com'; 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing List' Subject: RE: [SR-Users] How to rewrite tu in CANCEL message ? Hello Daniel, We tested in version 3.3.0 and got some problems: 1) Modified To header sent in CANCEL only when we add msg_apply_changes() after uac_replace_to()command in INVITE set out. 2) When we add msg_apply_changes(),INVITE is being sent out with additional Record-route header (without IP): S:E@FINVITE sip:039988002@172.16.60.6 mailto:sip%3A039988002@172.16.60.6 ;user=phone SIP/2.0 Record-Route: sip:;r2=on;lr;ftag=02e3a8c0-5ffc5d-t-2;vst=AHQAAAwLAQkICnABBXIfCAQABwYW GAlHRktAB0VYWV5edXNlcj1waG9uZQ-- Record-Route: sip:172.16.60.70;r2=on;lr;ftag=02e3a8c0-5ffc5d-t-2;vst=AHQAAAwLAQkICnAB BXIfCAQABwYWGAlHRktAB0VYWV5edXNlcj1waG9uZQ-- Via: SIP/2.0/UDP 172.16.60.70;branch=z9hG4bK5653.9713646.0 Via: SIP/2.0/UDP 192.168.225.2:50602;branch=z9hG4bK005ffc5d511f5cf933dcd0456cb2ffe587 4d2a08 Max-Forwards: 68 From: 39936646 39936646 sip:39936646;cpc=ordinary@192.168.225.2:5060;user=phone;tag=02e3a8c0-5ffc5 d-t-2 To: sip:039988002@172.16.60.6 mailto:sip%3A039988002@172.16.60.6 ;user=phone Call-ID: 1bf13574-02e3a8c0-00010c35@192.168.225.2 CSeq: 2 INVITE Contact: sip:39936646@192.168.225.2:50602 User-Agent: NetCentrex CCS Softswitch/7.11.2 Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, INFO, PRACK, UPDATE, NOTIFY Supported: 100rel P-Asserted-Identity: 39936646 39936646 sip:39936646;cpc=ordinary@192.168.225.2:5060;user=phone Privacy: none Content-Type: application/sdp Content-Length: 163 X-Ncx-Service-Info: h450-info=0x000210043a000154010010043b00015503408000;ncx-info=0x407100330801 C016653136343A303030303030393732333939333636343601B0020C00010011333939333636 3436203339393336363436 v=0 o=10.203.22.10 14111 2 IN IP4 10.203.22.10 s=SIP Call c=IN IP4 10.203.22.10 t=0 0 a=sendrecv m=audio 8368 RTP/AVP 8 a=rtpmap:8 PCMA/8000/1 a=ptime:20 3) If TOPOH module is used, mask IP address (10.1.1.10) is sent in the second Record-route (instead of local host IP). J5INVITE sip:039988002@172.16.60.6 mailto:sip%3A039988002@172.16.60.6 ;user=phone SIP/2.0 Record-Route: sip:;r2=on;lr;ftag=02e3a8c0-5ff136-t-2;vst=AHQAAAwLAQkICnABBXIfCAQABwYW GAlHRktAB0VYWV5edXNlcj1waG9uZQ-- Record-Route: sip:10.1.1.10;line=sr-N6IAzBFwMJZfWJZ6MGZwMx1LMBu5oB1dNB1EpSthH.yLg.WrzSMAO .KEgBFlWJu4O.VXphW4Hjt0Pjt0mtt0Pjtw.FtaC4IxoqtGPIregqW0jjtGpuI9a4tdmtenpFtGM tggKu3ugRa3.EfBCBtw3jNspKYaOm4* Via: SIP/2.0/UDP 172.16.60.70;branch=z9hG4bK7bff.5c4d0c12.0 Via: SIP/2.0/UDP 10.1.1.10;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.qLOBF6zGZLMBj7MBvuMx3AMB1jmxuqC 93X3heroEWvH9vsCFN43qdAMxyAMxyAMxyAWRgEM.M63EMAzR3u3lpq3RV4MxprWRjuzRaBg.cw3 RMAz.PLzSM* Max-Forwards: 68 From: 39936646 39936646 sip:39936646;cpc=ordinary@192.168.225.2:5060;user=phone;tag=02e3a8c0-5ff13 6-t-2 To: sip:039988002@172.16.60.6 mailto:sip%3A039988002@172.16.60.6 ;user=phone Call-ID: 3fe92128-02e3a8c0-00010c15@192.168.225.2 CSeq: 2 INVITE Contact: sip:10.1.1.10;line=sr-N6IAzBMsz.M6WBP6PxFsMJZfWBc7MBVuOBV-W.y6MxV* User-Agent: NetCentrex CCS Softswitch/7.11.2 Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, INFO, PRACK, UPDATE, NOTIFY Supported: 100rel P-Asserted-Identity: 39936646 39936646 sip:39936646;cpc=ordinary@192.168.225.2:5060;user=phone Privacy: none Content-Type: application/sdp Content-Length: 163 X-Ncx-Service-Info: h450-info=0x0002100434000154010010043500015503408000;ncx-info=0x407100330801 C016653136343A303030303030393732333939333636343601B0020C00010011333939333636 3436203339393336363436 v=0 o=10.203.22.10 14090 2 IN IP Thank you, Julia -Original Message- From: Julia [mailto:juli...@gmail.com] Sent: Thursday, January 31, 2013 2:03 PM To: 'mico...@gmail.com'; 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing List' Subject: RE: [SR-Users] How to rewrite tu in CANCEL message ? Thank you, we will try to test it. -Original Message- From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Thursday, January 31, 2013 1:57 PM To: Julia; 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing List' Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? I checked the sources and found that building CANCEL with From/To headers used in the INVITE sent out is done when using uac functions for changing their value. Some internal flags are set by those functions. So a patch should be done for remove_hf()/insert_hf() case or alternatively export a function to explicitely set these internal flags from config (do be used by the script writer when knowing the from/to headers where changed in some way). Without a patch, the uac module functions have to be used
Re: [SR-Users] How to rewrite tu in CANCEL message ?
I had the same problem with CANCEL requests for transactions created by an INVITE that was rewritten in a branch_route. I sent a small patch to dev list in October and didn't receive any comment. You can try to find it in sr-dev archive for October 2012. Yes, we know it's wrong. But if we really need it, is there a way to do it? -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, January 30, 2013 4:36 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? On 01/30/2013 09:31 AM, Julia wrote: We need some number manipulation for outgoing calls to PSTN GW. The same manipulations must be in ru and tu, because our PSTN GW adds redirection when tu ≠ ru. When we used INVITE re-parsing for CANCEL, modified tu is not included. I would say your PSTN GW is doing it wrong. No routing should ever be done on To. It is a purely cosmetic commentary on the intended logical destination of the call. Only the RURI should be used for that. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Unless you rewrote the To-URI in the INVITE, you really should not try to change a CANCEL. It needs to be almost a copy of the matching INVITE. /O 30 jan 2013 kl. 14:40 skrev Carsten Bock cars...@ng-voice.com: Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite “tu” in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE’s “tu” modification before t_relay. It works fine, but it doesn’t work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
OK, but a problem is in partially re-parsing of CANCEL. ru = modified ru; tu = original tu; fu = original fu. In this case 481 received from GW. INVITE -- Kam INVIRE -- ru=a ru=c tu=a tu=c fu=b fu=d ---100--- 100 ---180---180 CANCEL -- CANCEL -- ru=aru=c tu=atu=a fu=bfu=b --481 Call/Transaction does not exist Thank you, -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Olle E. Johansson Sent: Thursday, January 31, 2013 10:52 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Unless you rewrote the To-URI in the INVITE, you really should not try to change a CANCEL. It needs to be almost a copy of the matching INVITE. /O 30 jan 2013 kl. 14:40 skrev Carsten Bock cars...@ng-voice.com: Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite tu in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITEs tu modification before t_relay. It works fine, but it doesnt work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Hello, have you changed the value for tm parameter 'reparse_invite': http://kamailio.org/docs/modules/stable/modules/tm.html#reparse_invite Cheers, Daniel On 1/31/13 12:02 PM, Julia wrote: OK, but a problem is in partially re-parsing of CANCEL. ru = modified ru; tu = original tu; fu = original fu. In this case 481 received from GW. INVITE -- Kam INVIRE -- ru=a ru=c tu=a tu=c fu=b fu=d ---100--- 100 ---180---180 CANCEL -- CANCEL -- ru=aru=c tu=atu=a fu=bfu=b --481 Call/Transaction does not exist Thank you, -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Olle E. Johansson Sent: Thursday, January 31, 2013 10:52 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Unless you rewrote the To-URI in the INVITE, you really should not try to change a CANCEL. It needs to be almost a copy of the matching INVITE. /O 30 jan 2013 kl. 14:40 skrev Carsten Bock cars...@ng-voice.com: Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite “tu” in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE’s “tu” modification before t_relay. It works fine, but it doesn’t work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
I checked the sources and found that building CANCEL with From/To headers used in the INVITE sent out is done when using uac functions for changing their value. Some internal flags are set by those functions. So a patch should be done for remove_hf()/insert_hf() case or alternatively export a function to explicitely set these internal flags from config (do be used by the script writer when knowing the from/to headers where changed in some way). Without a patch, the uac module functions have to be used. Cheers, Daniel On 1/31/13 12:29 PM, Julia wrote: We get the same result with modparam(tm, reparse_invite, 1) and modparam(tm, reparse_invite, 0) -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, January 31, 2013 1:24 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Hello, have you changed the value for tm parameter 'reparse_invite': http://kamailio.org/docs/modules/stable/modules/tm.html#reparse_invite Cheers, Daniel On 1/31/13 12:02 PM, Julia wrote: OK, but a problem is in partially re-parsing of CANCEL. ru = modified ru; tu = original tu; fu = original fu. In this case 481 received from GW. INVITE -- Kam INVIRE -- ru=a ru=c tu=a tu=c fu=b fu=d ---100--- 100 ---180---180 CANCEL -- CANCEL -- ru=aru=c tu=atu=a fu=bfu=b --481 Call/Transaction does not exist Thank you, -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Olle E. Johansson Sent: Thursday, January 31, 2013 10:52 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Unless you rewrote the To-URI in the INVITE, you really should not try to change a CANCEL. It needs to be almost a copy of the matching INVITE. /O 30 jan 2013 kl. 14:40 skrev Carsten Bock cars...@ng-voice.com: Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite “tu” in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE’s “tu” modification before t_relay. It works fine, but it doesn’t work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Thank you, we will try to test it. -Original Message- From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Thursday, January 31, 2013 1:57 PM To: Julia; 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing List' Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? I checked the sources and found that building CANCEL with From/To headers used in the INVITE sent out is done when using uac functions for changing their value. Some internal flags are set by those functions. So a patch should be done for remove_hf()/insert_hf() case or alternatively export a function to explicitely set these internal flags from config (do be used by the script writer when knowing the from/to headers where changed in some way). Without a patch, the uac module functions have to be used. Cheers, Daniel On 1/31/13 12:29 PM, Julia wrote: We get the same result with modparam(tm, reparse_invite, 1) and modparam(tm, reparse_invite, 0) -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, January 31, 2013 1:24 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Hello, have you changed the value for tm parameter 'reparse_invite': http://kamailio.org/docs/modules/stable/modules/tm.html#reparse_invite Cheers, Daniel On 1/31/13 12:02 PM, Julia wrote: OK, but a problem is in partially re-parsing of CANCEL. ru = modified ru; tu = original tu; fu = original fu. In this case 481 received from GW. INVITE -- Kam INVIRE -- ru=aru=c tu=atu=c fu=bfu=d ---100--- 100 ---180---180 CANCEL -- CANCEL -- ru=aru=c tu=atu=a fu=bfu=b --481 Call/Transaction does not exist Thank you, -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Olle E. Johansson Sent: Thursday, January 31, 2013 10:52 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? Unless you rewrote the To-URI in the INVITE, you really should not try to change a CANCEL. It needs to be almost a copy of the matching INVITE. /O 30 jan 2013 kl. 14:40 skrev Carsten Bock cars...@ng-voice.com: Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite tu in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITEs tu modification before t_relay. It works fine, but it doesnt work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] How to rewrite tu in CANCEL message ?
Hello all, Is there any way to rewrite tu in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE's tu modification before t_relay. It works fine, but it doesn't work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Hi, probably the best way is to simply use the uac_replace_to-method from the uac module: http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2494560 (tested with 3.3) Kind regards, Carsten 2013/1/30 Julia juli...@gmail.com: Hello all, Is there any way to rewrite “tu” in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE’s “tu” modification before t_relay. It works fine, but it doesn’t work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Hello Julia, There is a very real question that should probably be asked: why would you want to do that? Kamailio provides many capabilities, but just because you can, doesn't mean you should. :-) With that in mind, I don't know of any SIP scenario in which altering the To header in a CANCEL message to something other than what it was in the INVITE transaction to which it corresponds is appropriate, either as a UA or as a proxy. But, perhaps it is my ignorance or lack of imagination at fault. -- Alex Julia juli...@gmail.com wrote: Hello all, Is there any way to rewrite tu in CANCEL message in 3.2.1? We use remove_hf / insert_hf for INVITE's tu modification before t_relay. It works fine, but it doesn't work for CANCEL (INVITE re-parsing is disabled). Ths, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Sent from my mobile, and thus lacking in the refinement one might expect from a fully-fledged keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] How to rewrite tu in CANCEL message ?
Yes, we know it's wrong. But if we really need it, is there a way to do it? -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, January 30, 2013 4:36 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] How to rewrite tu in CANCEL message ? On 01/30/2013 09:31 AM, Julia wrote: We need some number manipulation for outgoing calls to PSTN GW. The same manipulations must be in ru and tu, because our PSTN GW adds redirection when tu ≠ ru. When we used INVITE re-parsing for CANCEL, modified tu is not included. I would say your PSTN GW is doing it wrong. No routing should ever be done on To. It is a purely cosmetic commentary on the intended logical destination of the call. Only the RURI should be used for that. -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users