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 <[email protected]>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:[email protected]<sip%[email protected]>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:[email protected]:22106>. > To: > "1551199895348"<sip:[email protected]<sip%[email protected]> > >. > From: > "1000"<sip:[email protected]<sip%[email protected]> > >;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", > "subscriber")) { > www_challenge("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: [email protected] > Messenger: [email protected] > Mobile: +55 11 9989-5348 > Website: http://volcov.blogspot.com > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
