<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi Bogdan,<BR>
<BR>
In this case the 503 is being sent from a route block via sl_send_reply, then with a exit() after the sl_send_reply()<BR>
<BR>
The same behavior happens in both failure route and the standard route block.<BR>
<BR>
Im 100% sure ive done something wrong in the script :)<BR>
<BR>
<BR>
On Tue, 2010-08-24 at 17:46 +0300, Bogdan-Andrei Iancu wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Brad,</FONT>
<FONT COLOR="#000000">I guess you are doing something funny in the script like allowing the </FONT>
<FONT COLOR="#000000">302 reply to be relaid out, but having the 503 generated by opensips - </FONT>
<FONT COLOR="#000000">by chance, do you send the 503 in stateless mode ?</FONT>
<FONT COLOR="#000000">Regards,</FONT>
<FONT COLOR="#000000">Bogdan</FONT>
<FONT COLOR="#000000">Brad Bendy wrote:</FONT>
<FONT COLOR="#000000">> Hi Bogdan,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Here is a full trace, breakdown is like this</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> .2 INVITES to .164</FONT>
<FONT COLOR="#000000">> .164 INVITES TO .168</FONT>
<FONT COLOR="#000000">> .168 sends a 302 to .164</FONT>
<FONT COLOR="#000000">> .164 sends .2 a 503 followed by a 302</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> .2 should never know about the 302 at all, but it's still getting back </FONT>
<FONT COLOR="#000000">> to the originating proxy.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> We are not using get_redirects() to do anything with the 302 - from </FONT>
<FONT COLOR="#000000">> some Googling and such it appears that might be needed, just not sure </FONT>
<FONT COLOR="#000000">> how it would be used.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks for looking at this.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> 69.xxx.xxx.2:5060 -> 72.xxx.xxx.164:5060</FONT>
<FONT COLOR="#000000">> INVITE <A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A> SIP/2.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 69.xxx.xxx.2:5060;branch=z9hG4bK03578afa;rport.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>.</FONT>
<FONT COLOR="#000000">> Contact: <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> User-Agent: None.</FONT>
<FONT COLOR="#000000">> Max-Forwards: 70.</FONT>
<FONT COLOR="#000000">> Remote-Party-ID: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;privacy=off;screen=no.</FONT>
<FONT COLOR="#000000">> Date: Tue, 24 Aug 2010 12:01:35 GMT.</FONT>
<FONT COLOR="#000000">> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.</FONT>
<FONT COLOR="#000000">> Supported: replaces.</FONT>
<FONT COLOR="#000000">> Content-Type: application/sdp.</FONT>
<FONT COLOR="#000000">> Content-Length: 281.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">> v=0.</FONT>
<FONT COLOR="#000000">> o=root 2921 2921 IN IP4 69.xxx.xxx.2.</FONT>
<FONT COLOR="#000000">> s=session.</FONT>
<FONT COLOR="#000000">> c=IN IP4 69.xxx.xxx.2.</FONT>
<FONT COLOR="#000000">> t=0 0.</FONT>
<FONT COLOR="#000000">> m=audio 12570 RTP/AVP 18 0 101.</FONT>
<FONT COLOR="#000000">> a=rtpmap:18 G729/8000.</FONT>
<FONT COLOR="#000000">> a=fmtp:18 annexb=no.</FONT>
<FONT COLOR="#000000">> a=rtpmap:0 PCMU/8000.</FONT>
<FONT COLOR="#000000">> a=rtpmap:101 telephone-event/8000.</FONT>
<FONT COLOR="#000000">> a=fmtp:101 0-16.</FONT>
<FONT COLOR="#000000">> a=silenceSupp:off - - - -.</FONT>
<FONT COLOR="#000000">> a=ptime:20.</FONT>
<FONT COLOR="#000000">> a=sendrecv.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.164:5060 -> 69.xxx.xxx.2:5060</FONT>
<FONT COLOR="#000000">> SIP/2.0 100 Giving a try.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 69.xxx.xxx.2:5060;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> Server: OpenSIPS (1.6.2-notls (x86_64/freebsd)).</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.164:5060 -> 72.xxx.xxx.168:5060</FONT>
<FONT COLOR="#000000">> INVITE <A HREF="sip:6021112222@72.xxx.xxx.168">sip:6021112222@72.xxx.xxx.168</A> SIP/2.0.</FONT>
<FONT COLOR="#000000">> Record-Route: <<A HREF="sip:72.xxx.xxx.164">sip:72.xxx.xxx.164</A>;lr=on;ftag=as4f36ab60;did=36f.3f41d571>.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 72.xxx.xxx.164;branch=z9hG4bK23ef.2faf83c4.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP </FONT>
<FONT COLOR="#000000">> 69.xxx.xxx.2:5060;received=69.xxx.xxx.2;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>.</FONT>
<FONT COLOR="#000000">> Contact: <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> User-Agent: None.</FONT>
<FONT COLOR="#000000">> Max-Forwards: 69.</FONT>
<FONT COLOR="#000000">> Remote-Party-ID: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;privacy=off;screen=no.</FONT>
<FONT COLOR="#000000">> Date: Tue, 24 Aug 2010 12:01:35 GMT.</FONT>
<FONT COLOR="#000000">> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.</FONT>
<FONT COLOR="#000000">> Supported: replaces.</FONT>
<FONT COLOR="#000000">> Content-Type: application/sdp.</FONT>
<FONT COLOR="#000000">> Content-Length: 281.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">> v=0.</FONT>
<FONT COLOR="#000000">> o=root 2921 2921 IN IP4 69.xxx.xxx.2.</FONT>
<FONT COLOR="#000000">> s=session.</FONT>
<FONT COLOR="#000000">> c=IN IP4 69.xxx.xxx.2.</FONT>
<FONT COLOR="#000000">> t=0 0.</FONT>
<FONT COLOR="#000000">> m=audio 12570 RTP/AVP 18 0 101.</FONT>
<FONT COLOR="#000000">> a=rtpmap:18 G729/8000.</FONT>
<FONT COLOR="#000000">> a=fmtp:18 annexb=no.</FONT>
<FONT COLOR="#000000">> a=rtpmap:0 PCMU/8000.</FONT>
<FONT COLOR="#000000">> a=rtpmap:101 telephone-event/8000.</FONT>
<FONT COLOR="#000000">> a=fmtp:101 0-16.</FONT>
<FONT COLOR="#000000">> a=silenceSupp:off - - - -.</FONT>
<FONT COLOR="#000000">> a=ptime:20.</FONT>
<FONT COLOR="#000000">> a=sendrecv.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.168:5060 -> 72.xxx.xxx.164:5060</FONT>
<FONT COLOR="#000000">> SIP/2.0 100 Giving a try.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 72.xxx.xxx.164;branch=z9hG4bK23ef.2faf83c4.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP </FONT>
<FONT COLOR="#000000">> 69.xxx.xxx.2:5060;received=69.xxx.xxx.2;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> Server: OpenSIPS (1.6.2-notls (i386/freebsd)).</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.168:5060 -> 72.xxx.xxx.164:5060</FONT>
<FONT COLOR="#000000">> SIP/2.0 302 Moved Temporarily.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 72.xxx.xxx.164;branch=z9hG4bK23ef.2faf83c4.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP </FONT>
<FONT COLOR="#000000">> 69.xxx.xxx.2:5060;received=69.xxx.xxx.2;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=1235203116.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> Content-Type: application/csv.</FONT>
<FONT COLOR="#000000">> Contact: <A HREF="sip:rn">sip:rn</A>=6024810000;npdi;<A HREF="mailto:6021112222@72.xxx.xxx.168">6021112222@72.xxx.xxx.168</A>.</FONT>
<FONT COLOR="#000000">> User-Agent: eXosip/3.1.0.</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.164:5060 -> 72.xxx.xxx.168:5060</FONT>
<FONT COLOR="#000000">> ACK <A HREF="sip:6021112222@72.xxx.xxx.168">sip:6021112222@72.xxx.xxx.168</A> SIP/2.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 72.xxx.xxx.164;branch=z9hG4bK23ef.2faf83c4.0.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=1235203116.</FONT>
<FONT COLOR="#000000">> CSeq: 102 ACK.</FONT>
<FONT COLOR="#000000">> Max-Forwards: 70.</FONT>
<FONT COLOR="#000000">> User-Agent: OpenSIPS (1.6.2-notls (x86_64/freebsd)).</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.164:5060 -> 69.xxx.xxx.2:5060</FONT>
<FONT COLOR="#000000">> SIP/2.0 503 No more routes</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 69.xxx.xxx.2:5060;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: </FONT>
<FONT COLOR="#000000">> <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=f254695ad980185f5ba46cc313375d56.4b85.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> Server: OpenSIPS (1.6.2-notls (x86_64/freebsd)).</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 72.xxx.xxx.164:5060 -> 69.xxx.xxx.2:5060</FONT>
<FONT COLOR="#000000">> SIP/2.0 302 Moved Temporarily.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP </FONT>
<FONT COLOR="#000000">> 69.xxx.xxx.2:5060;received=69.xxx.xxx.2;branch=z9hG4bK03578afa;rport=5060.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=1235203116.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 INVITE.</FONT>
<FONT COLOR="#000000">> Content-Type: application/csv.</FONT>
<FONT COLOR="#000000">> Contact: <A HREF="sip:rn">sip:rn</A>=6024810000;npdi;<A HREF="mailto:6021112222@72.xxx.xxx.168">6021112222@72.xxx.xxx.168</A>.</FONT>
<FONT COLOR="#000000">> User-Agent: eXosip/3.1.0.</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 69.xxx.xxx.2:5060 -> 72.xxx.xxx.164:5060</FONT>
<FONT COLOR="#000000">> ACK <A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A> SIP/2.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 69.xxx.xxx.2:5060;branch=z9hG4bK03578afa;rport.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: </FONT>
<FONT COLOR="#000000">> <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=f254695ad980185f5ba46cc313375d56.4b85.</FONT>
<FONT COLOR="#000000">> Contact: <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 ACK.</FONT>
<FONT COLOR="#000000">> User-Agent: None.</FONT>
<FONT COLOR="#000000">> Max-Forwards: 70.</FONT>
<FONT COLOR="#000000">> Remote-Party-ID: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;privacy=off;screen=no.</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">> .</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> U 69.xxx.xxx.2:5060 -> 72.xxx.xxx.164:5060</FONT>
<FONT COLOR="#000000">> ACK <A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A> SIP/2.0.</FONT>
<FONT COLOR="#000000">> Via: SIP/2.0/UDP 69.xxx.xxx.2:5060;branch=z9hG4bK03578afa;rport.</FONT>
<FONT COLOR="#000000">> From: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;tag=as4f36ab60.</FONT>
<FONT COLOR="#000000">> To: <<A HREF="sip:6021112222@72.xxx.xxx.164">sip:6021112222@72.xxx.xxx.164</A>>;tag=1235203116.</FONT>
<FONT COLOR="#000000">> Contact: <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>.</FONT>
<FONT COLOR="#000000">> Call-ID: <A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>. </FONT>
<FONT COLOR="#000000">> <<A HREF="mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2">mailto:7b3d78d644ab1f7d52ced54236154da3@69.xxx.xxx.2</A>.></FONT>
<FONT COLOR="#000000">> CSeq: 102 ACK.</FONT>
<FONT COLOR="#000000">> User-Agent: None.</FONT>
<FONT COLOR="#000000">> Max-Forwards: 70.</FONT>
<FONT COLOR="#000000">> Remote-Party-ID: "Test" <<A HREF="sip:500@69.xxx.xxx.2">sip:500@69.xxx.xxx.2</A>>;privacy=off;screen=no.</FONT>
<FONT COLOR="#000000">> Content-Length: 0.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> On Tue, 2010-08-24 at 10:57 +0300, Bogdan-Andrei Iancu wrote:</FONT>
<FONT COLOR="#000000">>> Hi Brad,</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Maybe I do not fully understand your case, but opensips is not sending a </FONT>
<FONT COLOR="#000000">>> 302 after 200 OK...Maybe you can post the call flow (a SIP trace) from </FONT>
<FONT COLOR="#000000">>> the SIP server showing the entire scenario.</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Regards,</FONT>
<FONT COLOR="#000000">>> Bogdan</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Brad Bendy wrote:</FONT>
<FONT COLOR="#000000">>> > Hi,</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > Im having a heck of a time figuring this out:</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > INVITE comes to our switch, we send a INVITE to another proxy that </FONT>
<FONT COLOR="#000000">>> > responds with a 302, we parse that 302 in failure route then use a </FONT>
<FONT COLOR="#000000">>> > route() command to go to another route block which does some other </FONT>
<FONT COLOR="#000000">>> > processing (will send out more INVITE's, do certain things on failure, </FONT>
<FONT COLOR="#000000">>> > etc), if the original call does get canceled or completes successfully </FONT>
<FONT COLOR="#000000">>> > with a 200 OK the originating proxy receives the original 302 request </FONT>
<FONT COLOR="#000000">>> > plus what ever our final failure response code we want to send.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > The behavior does seem correct as openSIPs is just forwarding the </FONT>
<FONT COLOR="#000000">>> > 302, but in this case I want it to send only the final response code </FONT>
<FONT COLOR="#000000">>> > back to the originating client.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > The initital route block which sends the INVITE to get the 302 is very </FONT>
<FONT COLOR="#000000">>> > simple, we just write the rU and rd and send via t_relay, </FONT>
<FONT COLOR="#000000">>> > onreply_route does a little parsing then failure_route sends to a new </FONT>
<FONT COLOR="#000000">>> > block.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > Any help on this would be great, I think it's my logic in the switch </FONT>
<FONT COLOR="#000000">>> > that is wrong somewhere.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > Thanks!</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > ------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > _______________________________________________</FONT>
<FONT COLOR="#000000">>> > Users mailing list</FONT>
<FONT COLOR="#000000">>> > <A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A> <<A HREF="mailto:Users@lists.opensips.org">mailto:Users@lists.opensips.org</A>></FONT>
<FONT COLOR="#000000">>> > <A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT>
<FONT COLOR="#000000">>> > </FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> </FONT>
<FONT COLOR="#000000">> -- </FONT>
<FONT COLOR="#000000">> Brad Bendy</FONT>
<FONT COLOR="#000000">> Chief Technical Officer</FONT>
<FONT COLOR="#000000">> <A HREF="mailto:brad.bendy@benganetworks.com">brad.bendy@benganetworks.com</A> <<A HREF="mailto:brad.bendy@benganetworks.com">mailto:brad.bendy@benganetworks.com</A>></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Benga Networks, LLC.</FONT>
<FONT COLOR="#000000">> 10115 E. Bell Rd, Ste. 107-451</FONT>
<FONT COLOR="#000000">> Scottsdale, AZ 85260-2189</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Toll Free: 877-44-BENGA</FONT>
<FONT COLOR="#000000">> Local: 480-970-5200</FONT>
<FONT COLOR="#000000">> Cell: 602-550-4004</FONT>
<FONT COLOR="#000000">> Fax: 866-852-4468</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> ------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> _______________________________________________</FONT>
<FONT COLOR="#000000">> Users mailing list</FONT>
<FONT COLOR="#000000">> <A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A></FONT>
<FONT COLOR="#000000">> <A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT>
<FONT COLOR="#000000">> </FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Brad Bendy<BR>
Chief Technical Officer<BR>
<A HREF="mailto:brad.bendy@benganetworks.com">brad.bendy@benganetworks.com</A><BR>
<BR>
Benga Networks, LLC.<BR>
10115 E. Bell Rd, Ste. 107-451<BR>
Scottsdale, AZ 85260-2189<BR>
<BR>
Toll Free: 877-44-BENGA<BR>
Local: 480-970-5200<BR>
Cell: 602-550-4004<BR>
Fax: 866-852-4468
</TD>
</TR>
</TABLE>
</BODY>
</HTML>