<div dir="ltr"><div style>Im hitting an inter-op issue with a specific carrier ( running a Nortel CS2000 )</div><div><br></div><div style>When I Send a call to this carrier using &quot;Scenario A&quot; everything works fine..</div>

<div style><br></div><div style>If I send them a call with &quot;Scenario B&quot; the call is rejected with a &quot;502 bad gateway&quot;.</div><div style>the carrier has said that the contact header in &quot;Scenario B&quot; is &quot;Too Long&quot;.  Im not sure its the length specifically...  but I wonder if the transport or gw variables are causing their switch to do something odd..</div>

<div style><br></div><div style>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/* .</div><div style><br></div><div style>it seems that gateway-&gt;register_contact is used for invites also.</div>

<div style>and the flow of parse_gateways in sofia.c suggests that there is no code flow that would avoid appending the gw= data.</div><div style><br></div><div style>can someone confirm if there is a way avoid adding this extra data on calls out a gateway,<br>

or if im going to have to raise a request with the dev guys.</div><div style><br></div><div style><b>Scenario A )</b></div>I make an outbound call with this syntax :<div><div>&lt;action application=&quot;bridge&quot; data=&quot;sofia/upstream/${bridge_dest}@xx.xx.xx.xx&quot;/&gt;</div>

<div><br></div><div style>I See a SIP Contact of :</div><div style>&lt;sip:mod_sofia@xx.xx.xx.xx:5060&gt;<br></div><div style><br></div><div style><br></div><div style><b>Scenario B )</b></div><div style>I try and use gateways ( for the added functionality of monitoring the far ends reachability )</div>

<div style>with this bridge string :</div><div style>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/upstream_xx.xx.xx.xx/${bridge_dest}&quot; /&gt; <br></div><div style><br></div><div style>I See a SIP Contact of :<br>

</div><div style>&lt;sip:blah@xx.xx.xx.xx:5060;transport=udp;gw=upstream_xx.xx.xx.xx&gt;<br></div><div style><br></div><div style>-- <br></div><div>Sincerely<br><br>Jay Binks</div></div></div>