Alex, you are correct!
-----Original Message-----
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, September 11, 2018 8:49 AM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Record Routes
I think you are treading into dangerous territory that stems from a lack of understanding
of SIP. You can't just go changing stuff to look like something else.
BYEs are in-dialog requests and their Route: sets are constructed from Record-Route sets
set up during the initial INVITE transaction that formed the dialog. They need to be left
alone.
On Tue, Sep 11, 2018 at 12:37:56PM +0000, Wilkins, Steve wrote:
Thank you,
I am doing this just as a test, because I cannot get a soft-phone to hang up when the
'BYE' is initiated by a WebRTC client (although, some provider soft-phones do work
,Hang up that is).
I have pcap logs of the one that works, so I am trying to get the SIP
message to match that one. The only difference between the one that works and the one
that does not, is that the Route's: are different.
I must be misunderstanding the SIP Conversation because, the 'BYE' request is
getting to the soft-phone provider, but the provider is sending back '404 Not
Here'. My confusion is that since the Request is making it to the provider, why does
the Request Route matter at this point.
-Steve
-----Original Message-----
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Alex
Balashov
Sent: Tuesday, September 11, 2018 7:25 AM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Record Routes
On Tue, Sep 11, 2018 at 11:22:26AM +0000, Wilkins, Steve wrote:
Can a Route: be removed?, if so, how?
if(is_present_hf("Route"))
remove_hf("Route");
Some may view the if-statement as redundant, given that remove_hf() will simply have zero
effect if the header is not present, without complaint.
But unless you are doing this in the context of an initial request, you need to carefully
ask yourself about your motivations.
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org