Dispatcher issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Dispatcher issue

michel freiha
Hi all,

I'm using dispatcher module...When trying to make a call, the attempt is successfully sent to the SIP proxy defined in the database but I got the following error:

When trying to make a call I got ERROR:tm:w_t_reply: failed to send a t_reply to a message for which no transaction-state has been established

Regards



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

Bogdan-Andrei Iancu
Hi Michel,

The error means you try to send a statefull reply from script (via
t_reply) but there is no transaction already created (via t_newtran) -
check in your  request ruting section where you use t_reply and be sure
you create the transaction before.

Regards,
Bogdan

michel freiha wrote:

> Hi all,
>
> I'm using dispatcher module...When trying to make a call, the attempt
> is successfully sent to the SIP proxy defined in the database but I
> got the following error:
>
> When trying to make a call I got ERROR:tm:w_t_reply: failed to send a
> t_reply to a message for which no transaction-state has been established
>
> Regards
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

Geoffrey Mina
Bogdan,
Can you speak a bit on the t_newtran call and it's use as it
corresponds to the dispatcher module?  Currently I am doing something
similar to:

(greatly simplified for this email)

route{
  if(is_method("INVITE")){
        ds_select_domain("1","4");
        t_on_reply("1");
        t_on_failure("1");
        t_relay();
  }
}

Am I missing a required call to t_newtran() in there?

Thanks,
Geoff

On Sat, Jan 24, 2009 at 1:47 PM, Bogdan-Andrei Iancu
<[hidden email]> wrote:

> Hi Michel,
>
> The error means you try to send a statefull reply from script (via
> t_reply) but there is no transaction already created (via t_newtran) -
> check in your  request ruting section where you use t_reply and be sure
> you create the transaction before.
>
> Regards,
> Bogdan
>
> michel freiha wrote:
>> Hi all,
>>
>> I'm using dispatcher module...When trying to make a call, the attempt
>> is successfully sent to the SIP proxy defined in the database but I
>> got the following error:
>>
>> When trying to make a call I got ERROR:tm:w_t_reply: failed to send a
>> t_reply to a message for which no transaction-state has been established
>>
>> Regards
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

Bogdan-Andrei Iancu
Hi Geoffrey,

in combination with t_relay(), you do not need to do  anything special
for creating the transaction, as it will be automatically created
internally by t_relay(). But there is not the same behaviour for
t_reply() function - this function do expects to find the transaction
already created from the script (via t_newtran)....Probably all this
needs to be align to a unified and simplified behaviour.

Regards,
Bogdan

Geoffrey Mina wrote:

> Bogdan,
> Can you speak a bit on the t_newtran call and it's use as it
> corresponds to the dispatcher module?  Currently I am doing something
> similar to:
>
> (greatly simplified for this email)
>
> route{
>   if(is_method("INVITE")){
>         ds_select_domain("1","4");
>         t_on_reply("1");
>         t_on_failure("1");
>         t_relay();
>   }
> }
>
> Am I missing a required call to t_newtran() in there?
>
> Thanks,
> Geoff
>
> On Sat, Jan 24, 2009 at 1:47 PM, Bogdan-Andrei Iancu
> <[hidden email]> wrote:
>  
>> Hi Michel,
>>
>> The error means you try to send a statefull reply from script (via
>> t_reply) but there is no transaction already created (via t_newtran) -
>> check in your  request ruting section where you use t_reply and be sure
>> you create the transaction before.
>>
>> Regards,
>> Bogdan
>>
>> michel freiha wrote:
>>    
>>> Hi all,
>>>
>>> I'm using dispatcher module...When trying to make a call, the attempt
>>> is successfully sent to the SIP proxy defined in the database but I
>>> got the following error:
>>>
>>> When trying to make a call I got ERROR:tm:w_t_reply: failed to send a
>>> t_reply to a message for which no transaction-state has been established
>>>
>>> Regards
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>      
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>    
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

michel freiha
In reply to this post by Bogdan-Andrei Iancu
Dear Bogdan,

I changed my mind and need to use carrierroute instead of dispatcher because I'm sure that carrierroute will accomplish what i need to do...

I added the following function to opensips.cfg:


    if(!cr_route("default", "0", "$rU", "$rU", "call_id")){

       sl_send_reply("403", "Not allowed");
     } else {
         # In cas of failure, re-route the request
          t_on_failure("1");
          # Relay the request to the gateway
           t_relay();
   }

When restarting opensips i got the following error:

 25 22:51:48 [25007] ERROR:core:pv_parse_spec: bad parameters
Jan 25 22:51:48 [25007] INFO:carrierroute:carrier_fixup: carrier tree default has id 3
Jan 25 22:51:48 [25007] ERROR:core:pv_parse_spec: bad parameters
Jan 25 22:51:48 [25007] DBG:core:fix_actions: fixing sl_send_reply, line 388

Can you please help in that?

I tried to use:
if(!cr_route("default", "0", "$rU", "$rU", "call_id", "crc32")){

But still getting the same problem

Regards

On Sat, Jan 24, 2009 at 8:47 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Michel,

The error means you try to send a statefull reply from script (via t_reply) but there is no transaction already created (via t_newtran) - check in your  request ruting section where you use t_reply and be sure you create the transaction before.

Regards,
Bogdan

michel freiha wrote:
Hi all,

I'm using dispatcher module...When trying to make a call, the attempt is successfully sent to the SIP proxy defined in the database but I got the following error:

When trying to make a call I got ERROR:tm:w_t_reply: failed to send a t_reply to a message for which no transaction-state has been established

Regards


------------------------------------------------------------------------

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

michel freiha
Dear Bogdan,

When trying to make a call I got now the following error:

Jan 25 23:17:14 [25302] ERROR:core:validate_msg: Message has no Call-ID header
Jan 25 23:17:14 [25302] ERROR:carrierroute:rewrite_on_rule: could not hash message with CRC32Jan 25 23:17:14 [25302] INFO:carrierroute:cr_do_route: rewrite_uri_recursor doesn't complete, uri 009613089187, carrier 3, domain

Regards

On Sun, Jan 25, 2009 at 11:02 PM, michel freiha <[hidden email]> wrote:
Dear Bogdan,

I changed my mind and need to use carrierroute instead of dispatcher because I'm sure that carrierroute will accomplish what i need to do...

I added the following function to opensips.cfg:


    if(!cr_route("default", "0", "$rU", "$rU", "call_id")){

       sl_send_reply("403", "Not allowed");
     } else {
         # In cas of failure, re-route the request
          t_on_failure("1");
          # Relay the request to the gateway
           t_relay();
   }

When restarting opensips i got the following error:

 25 22:51:48 [25007] ERROR:core:pv_parse_spec: bad parameters
Jan 25 22:51:48 [25007] INFO:carrierroute:carrier_fixup: carrier tree default has id 3
Jan 25 22:51:48 [25007] ERROR:core:pv_parse_spec: bad parameters
Jan 25 22:51:48 [25007] DBG:core:fix_actions: fixing sl_send_reply, line 388

Can you please help in that?

I tried to use:
if(!cr_route("default", "0", "$rU", "$rU", "call_id", "crc32")){

But still getting the same problem

Regards

On Sat, Jan 24, 2009 at 8:47 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Michel,

The error means you try to send a statefull reply from script (via t_reply) but there is no transaction already created (via t_newtran) - check in your  request ruting section where you use t_reply and be sure you create the transaction before.

Regards,
Bogdan

michel freiha wrote:
Hi all,

I'm using dispatcher module...When trying to make a call, the attempt is successfully sent to the SIP proxy defined in the database but I got the following error:

When trying to make a call I got ERROR:tm:w_t_reply: failed to send a t_reply to a message for which no transaction-state has been established

Regards


------------------------------------------------------------------------

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Dispatcher issue

michel freiha
In reply to this post by Bogdan-Andrei Iancu
Dear Bogdan,

The issue has been solved

Thanks

On Sat, Jan 24, 2009 at 8:47 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Michel,

The error means you try to send a statefull reply from script (via t_reply) but there is no transaction already created (via t_newtran) - check in your  request ruting section where you use t_reply and be sure you create the transaction before.

Regards,
Bogdan

michel freiha wrote:
Hi all,

I'm using dispatcher module...When trying to make a call, the attempt is successfully sent to the SIP proxy defined in the database but I got the following error:

When trying to make a call I got ERROR:tm:w_t_reply: failed to send a t_reply to a message for which no transaction-state has been established

Regards


------------------------------------------------------------------------

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users