Hello,<br><br>I am using SER as a redirect server.<br>Recently I came across an issue where the 302 sent back by SER is<br>not liked by a soft switch. Particularly , the format of the CONTACT <br>field according to the softswitch..
<br><br>Here is an excerpt of the 302 reply send back ...<br><br><span class="299421721-21032007"><font color="#0000ff" face="Tahoma" size="2">Session
Initiation Protocol<br> Status-Line: SIP/2.0 302 MovedTemporarily<br>
Status-Code: 302<br> Resent Packet: True<br> Suspected resend of
frame: 73<br> Message Header<br> To:
<<a href="mailto:sip:12345@172.20.20.46">sip:12345@172.20.20.46</a>>;tag=b27e1a1d33761e85846fc98f5f3a7e58.dfa5<br>
SIP to address: <a href="mailto:sip:12345@172.20.20.46">sip:12345@172.20.20.46</a><br> SIP tag:
b27e1a1d33761e85846fc98f5f3a7e58.dfa5<br> From:
<a href="http://172.20.20.46">172.20.20.46</a><<a href="mailto:sip:12345@172.20.20.46">sip:12345@172.20.20.46</a>>;tag=161dda6e<br> SIP
Display info: <a href="http://172.20.20.46">172.20.20.46</a><br> SIP from address:
<a href="mailto:sip:12345@172.20.20.46">sip:12345@172.20.20.46</a><br> SIP tag: 161dda6e<br> Via:
SIP/2.0/UDP
<a href="http://10.99.99.140:9585">10.99.99.140:9585</a>;branch=z9hG4bK-d87543-730866470-1--d87543-;rport=9585<br>
Call-ID: 95239a63f0347c53<br> CSeq: 1 INVITE<br><font color="#ff0000"><strong> Contact:
sip:12345@172.20.20.37:5060<br></strong></font> Server: Sip EXpress
router (0.8.14 (i386/linux))<br> Content-Length: 0<br> Warning:
392 <a href="http://172.20.20.46:5060">172.20.20.46:5060</a> "Noisy feedback tells: pid=9550 req_src_ip=<a href="http://10.99.99.140">10.99.99.140</a>
req_src_port=9585 in_uri=<a href="mailto:sip:12345@172.20.20.46">sip:12345@172.20.20.46</a>
out_uri=sip:12345@172.20.20.37:5060 via_cnt==1<br><br><span style="color: rgb(0, 0, 0);">the softswitch is wanting the contact field with <sip:xxxx@xxx.xxx.xxx.xxx:5060> like a FROM or TO URI.</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Here is ser.cfg part that does the sl_send_reply();</span><br style="color: rgb(0, 0, 0);"><br> # do a stateless redirect, if return code is correct<br>
if (method=="INVITE")<br> {<br> xlog("L_INFO", "SourceIP <%is> \n");<br> xlog("L_INFO", "From-uri<%fu>, r-uri <%ru> \n");<br> if (!gl_redirect())
<br> {<br> sl_send_reply("480", "TemporarilyUnavailable");<br> xlog("L_WARN", "Sending a 480 response with r-uri <%ru>\n");<br> break;<br>
}<br> else<br> {<br> sl_send_reply("302", "MovedTemporarily");<br> xlog("L_DBG", "Sending a 302 response with r-uri <%ru>\n");<br> break;
<br> }<br> };<br><br><span style="color: rgb(0, 0, 0);">Any help is appreciated.</span></font></span><span style="color: rgb(0, 0, 0);" class="299421721-21032007"><font face="Tahoma" size="2"><strong></strong></font>
</span><br style="color: rgb(0, 0, 0);"><span class="299421721-21032007"><font color="#0000ff" face="Tahoma" size="2"><br><br clear="all"></font></span>thanks,<br>-- <br>Jignesh Gandhi<br><a href="mailto:jigpgandhi@gmail.com">
jigpgandhi@gmail.com</a>