Contact header, when using sofia gateways
Im hitting an inter-op issue with a specific carrier ( running a Nortel CS2000 ) When I Send a call to this carrier using "Scenario A" everything works fine.. If I send them a call with "Scenario B" the call is rejected with a "502 bad gateway". the carrier has said that the contact header in "Scenario B" is "Too Long". Im not sure its the length specifically... but I wonder if the transport or gw variables are causing their switch to do something odd.. problem is, I cant seem to strip these with any combination of contact variables from the wiki or even after trawling /mod/endpoints/mod_sofia/* . it seems that gateway->register_contact is used for invites also. and the flow of parse_gateways in sofia.c suggests that there is no code flow that would avoid appending the gw= data. can someone confirm if there is a way avoid adding this extra data on calls out a gateway, or if im going to have to raise a request with the dev guys. *Scenario A )* I make an outbound call with this syntax : <action application="bridge" data="sofia/upstream/${bridge_dest}@xx.xx.xx.xx "/> I See a SIP Contact of : <sip:mod_sofia@xx.xx.xx.xx:5060> *Scenario B )* I try and use gateways ( for the added functionality of monitoring the far ends reachability ) with this bridge string : <action application="bridge" data="sofia/gateway/upstream_xx.xx.xx.xx/${bridge_dest}" /> I See a SIP Contact of : <sip:blah@xx.xx.xx.xx:5060;transport=udp;gw=upstream_xx.xx.xx.xx> -- Sincerely Jay Binks
No way to turn it off right now. If you want some quick hacking to confirm, check out in stable sofia.c around line 3156 if (! zstr(contact_params)) { the code in that if block sets the contact params. would be trivial enough to add some options to tweak that behavior but probably best to figure out what the real issue is first. Mike On May 8, 2013, at 1:49 AM, jay binks <jaybinks@gmail.com> wrote:
Im hitting an inter-op issue with a specific carrier ( running a Nortel CS2000 )
When I Send a call to this carrier using "Scenario A" everything works fine..
If I send them a call with "Scenario B" the call is rejected with a "502 bad gateway". the carrier has said that the contact header in "Scenario B" is "Too Long". Im not sure its the length specifically... but I wonder if the transport or gw variables are causing their switch to do something odd..
problem is, I cant seem to strip these with any combination of contact variables from the wiki or even after trawling /mod/endpoints/mod_sofia/* .
it seems that gateway->register_contact is used for invites also. and the flow of parse_gateways in sofia.c suggests that there is no code flow that would avoid appending the gw= data.
can someone confirm if there is a way avoid adding this extra data on calls out a gateway, or if im going to have to raise a request with the dev guys.
Scenario A ) I make an outbound call with this syntax : <action application="bridge" data="sofia/upstream/${bridge_dest}@xx.xx.xx.xx"/>
I See a SIP Contact of : <sip:mod_sofia@xx.xx.xx.xx:5060>
Scenario B ) I try and use gateways ( for the added functionality of monitoring the far ends reachability ) with this bridge string : <action application="bridge" data="sofia/gateway/upstream_xx.xx.xx.xx/${bridge_dest}" />
I See a SIP Contact of : <sip:blah@xx.xx.xx.xx:5060;transport=udp;gw=upstream_xx.xx.xx.xx>
-- Sincerely
Jay Binks _________________________________________________________________________
participants (2)
-
jay binks
-
Michael Jerris