Re: [OpenSIPS-Users] Packets loop

2010-06-22 Thread Bogdan-Andrei Iancu
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  > 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
> mailto:wesleyvol...@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:1603551199895...@113.105.152.32
>  SIP/2.0.
> Record-Route: .
> Record-Route:
> .
> Record-Route:
> .
> Record-Route:
> .
> Record-Route:
> .
> 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:  >.
> To: "1551199895348" >.
> From: "1000" >;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: wesleyvol...@gmail.com 
> Messenger: vol...@live.com 
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
>
> ___
> Users mailing list
> Users@lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
> -- 
> Wesley Volcov
> Email: wesleyvol...@gmail.com 
> Messenger: vol...@live.com 
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
> 
>
> ___

Re: [OpenSIPS-Users] Packets loop

2010-06-21 Thread Wesley Volcov
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  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 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:1603551199895...@113.105.152.32SIP/2.0.
>> Record-Route: .
>> Record-Route: .
>> Record-Route: .
>> Record-Route: .
>> Record-Route: .
>> 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: .
>> To: 
>> "1551199895348"
>> >.
>> From: 
>> "1000"
>> >;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: wesleyvol...@gmail.com
>> Messenger: vol...@live.com
>> Mobile: +55 11 9989-5348
>> Website: http://volcov.blogspot.com
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>


-- 
Wesley Volcov
Email: wesleyvol...@gmail.com
Messenger: vol...@live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Packets loop

2010-06-21 Thread Brett Nemeroff
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 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:1603551199895...@113.105.152.32SIP/2.0.
> Record-Route: .
> Record-Route: .
> Record-Route: .
> Record-Route: .
> Record-Route: .
> 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: .
> To: 
> "1551199895348"
> >.
> From: 
> "1000"
> >;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: wesleyvol...@gmail.com
> Messenger: vol...@live.com
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Packets loop

2010-06-21 Thread Wesley Volcov
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:1603551199895...@113.105.152.32SIP/2.0.
Record-Route: .
Record-Route: .
Record-Route: .
Record-Route: .
Record-Route: .
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: .
To: 
"1551199895348"
>.
From: "1000"
>;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: wesleyvol...@gmail.com
Messenger: vol...@live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users