Hey everyone,
When I'm doing sequential forking I'm seeing that for each gateway that doesn't answer and I move forward in the list of available gateways to forward the INVITE to, openser adds an "a=nortpproxy:yes" into the SDP so what happens is that the final gateway which is alive receives the sip header with multiple lines of "a=nortpproxy:yes" repeating themselves in the SDP and throws away the packet.
From my browsing in nathelper's code I see the only place that writes a
"a=nortpproxy:yes" string to the SDP is the fix_nated_sdp function, and I'm actually not using it in my cfg but rather using fix_nated_register and fix_nated_contact which from what the README says are not handling the SDP part.
And so I'm asking, where could it be coming from? And also, it would be easier if I can insert a piece of code that can do some regular expression miracles with the SIP header and remove any duplicate lines of the "nortpproxy" string.
I'm running on openser 1.1.1
Thanks, Lir.
Hi,
that SDP line is added when you do force_rtp_proxy().
Regards, Bogdan
liran tal wrote:
Hey everyone,
When I'm doing sequential forking I'm seeing that for each gateway that doesn't answer and I move forward in the list of available gateways to forward the INVITE to, openser adds an "a=nortpproxy:yes" into the SDP so what happens is that the final gateway which is alive receives the sip header with multiple lines of "a=nortpproxy:yes" repeating themselves in the SDP and throws away the packet.
From my browsing in nathelper's code I see the only place that writes a "a=nortpproxy:yes" string to the SDP is the fix_nated_sdp function, and I'm actually not using it in my cfg but rather using fix_nated_register and fix_nated_contact which from what the README says are not handling the SDP part.
And so I'm asking, where could it be coming from? And also, it would be easier if I can insert a piece of code that can do some regular expression miracles with the SIP header and remove any duplicate lines of the "nortpproxy" string.
I'm running on openser 1.1.1
Thanks, Lir.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Thanks for that notice Bogdan, I've literally grepped for that "a=nortpproxy:yes" string in the source directory of openser and couldn't find any mentioning for it except in the nathelper module directory.
I will look further into that, thanks. Can you tell me in the future how could I trace such problem? Even with debugging turned fully on I couldn't deduce which function or module are inserting that string...
Regards, Liran.
On 8/8/07, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
Hi,
that SDP line is added when you do force_rtp_proxy().
Regards, Bogdan
liran tal wrote:
Hey everyone,
When I'm doing sequential forking I'm seeing that for each gateway that doesn't answer and I move forward in the list of available gateways to forward the INVITE to, openser adds an "a=nortpproxy:yes" into the SDP so what happens is that the final gateway which is alive receives the sip header with multiple lines of "a=nortpproxy:yes" repeating themselves in the SDP and throws away the packet.
From my browsing in nathelper's code I see the only place that writes a "a=nortpproxy:yes" string to the SDP is the fix_nated_sdp function, and I'm actually not using it in my cfg but rather using fix_nated_register and fix_nated_contact which from what the README says are not handling the SDP part.
And so I'm asking, where could it be coming from? And also, it would be easier if I can insert a piece of code that can do some regular expression miracles with the SIP header and remove any duplicate lines of the "nortpproxy" string.
I'm running on openser 1.1.1
Thanks, Lir.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users