[OpenSIPS-Users] Packets loop

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jun 22 10:40:09 CEST 2010


Hi Wesley,

Are you sure it gets there ? put some xlogs to see the execution flow 
through your script (also print the RURI - $ru -  to seeif changed).

Regards,
Bogdan

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


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list