My opensips is forwarding the INVITE without to tag, but I don't know why. Would drouting must do it ?<br>follor my drounting.<br> if(!do_routing("1")){<br> sl_send_reply("503", "Unable to find a gateway");<br>
exit;<br> }<br><br> t_on_failure("1") ;<br>}<br><br><br><div class="gmail_quote">On 21 June 2010 13:46, Brett Nemeroff <span dir="ltr"><<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You need to change the RURI. Else you are just forwarding the call to yourself..<div><br></div>
<div>I dont' see anything in your code that modifies the RURI.</div><div>-Brett</div><div><br><br><div class="gmail_quote"><div><div></div><div class="h5">
On Mon, Jun 21, 2010 at 11:40 AM, Wesley Volcov <span dir="ltr"><<a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">
Hello Everybody!<br><br>I have a problem with my opensips.<br>When my opensis receives an INVITE request I see this invite in loop. The opensips forwards the packet to the destination, but it seds to itself too. <br>The $du variable is null.<br>
Someone had this problem ?<br>Follow the INVITE:<br><br>INVITE <a href="mailto:sip%3A1603551199895348@113.105.152.32" target="_blank">sip:1603551199895348@113.105.152.32</a> SIP/2.0.<br>Record-Route: <sip:187.63.32.75;lr=on;ftag=1b424d42>.<br>
Record-Route: <sip:187.63.32.75;lr=on;ftag=1b424d42;did=ce9.e0cffe26>.<br>Record-Route: <sip:187.63.32.75;lr=on;ftag=1b424d42;did=ce9.d0cffe26>.<br>Record-Route: <sip:187.63.32.75;lr=on;ftag=1b424d42;did=ce9.c0cffe26>.<br>
Record-Route: <sip:187.63.32.75;lr=on;ftag=1b424d42;did=ce9.b0cffe26>.<br>Via: SIP/2.0/UDP 187.63.32.75;branch=z9hG4bK32a7.f79bca05.3.<br>Via: SIP/2.0/UDP 187.63.32.75;branch=z9hG4bK32a7.e79bca05.0.<br>Via: SIP/2.0/UDP 187.63.32.75;branch=z9hG4bK32a7.d79bca05.0.<br>
Via: SIP/2.0/UDP 187.63.32.75;branch=z9hG4bK32a7.c79bca05.0.<br>Via: SIP/2.0/UDP 187.63.32.75;branch=z9hG4bK32a7.b79bca05.0.<br>Via: SIP/2.0/UDP 192.168.10.115:22106;received=200.170.196.78;branch=z9hG4bK-d8754z-39689860e3472677-1---d8754z-;rport=22106.<br>
Max-Forwards: 65.<br>Contact: <<a href="http://sip:1000@200.170.196.78:22106" target="_blank">sip:1000@200.170.196.78:22106</a>>.<br>To: "1551199895348"<<a href="mailto:sip%3A1551199895348@sip.dnsdinamico.com.br" target="_blank">sip:1551199895348@sip.dnsdinamico.com.br</a>>.<br>
From: "1000"<<a href="mailto:sip%3A1000@sip.dnsdinamico.com.br" target="_blank">sip:1000@sip.dnsdinamico.com.br</a>>;tag=1b424d42.<br>Call-ID: MDllZGQ4MWM1YWJiZWVjM2UyZjIyMWY4MzI0OWI1MmM..<br>CSeq: 1 INVITE.<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>
Content-Type: application/sdp.<br>User-Agent: eyeBeam release 1102q stamp 51689.<br>Content-Length: 319.<br>.<br>v=0.<br>o=- 4 2 IN IP4 192.168.10.115.<br>s=CounterPath eyeBeam 1.5.<br>c=IN IP4 192.168.10.115.<br>t=0 0.<br>
m=audio 29588 RTP/AVP 107 0 8 18 101.<br>a=alt:1 1 : PFKVP/Yo 4DIwVv1r 192.168.10.115 29588.<br>a=fmtp:18 annexb=yes.<br>a=fmtp<br><br>Follow my route[RELAY]:<br>route[ROUTE_RELAY] {<br><br> t_on_reply("ONREPLY");<br>
if (!t_relay()) {<br> sl_reply_error();<br> };<br><br> exit;<br>};<br><br><br>My main route:<br> if (!is_method("REGISTER")) {<br> record_route();<br><br> } else {<br>
if (!www_authorize("<a href="http://sip.dnsdinamico.com.br" target="_blank">sip.dnsdinamico.com.br</a>", "subscriber")) {<br> www_challenge("<a href="http://sip.dnsdinamico.com.br" target="_blank">sip.dnsdinamico.com.br</a>", "0");<br>
sl_send_reply("200", "OK");<br> exit;<br> };<br> save("location");<br> exit;<br> };<br><br> if (is_method("CANCEL")) {<br>
if (t_check_trans()) {<br> route(ROUTE_RELAY);<br> }<br> }<br> if (is_method("INVITE")) {<br> route(ROUTE_AUTHENTICATE);<br> route(ROUTE);<br>
}<br> route(ROUTE_RELAY);<br>}<br><br>Regards,<br><font color="#888888">-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com" target="_blank">volcov@live.com</a><br>
Mobile: +55 11 9989-5348<br>Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>
</font><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com">volcov@live.com</a><br>Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>