Marcio,

the group must be an integer value, not a string, so try:

$avp(dr_group_id)= 5;

 xlog( "L_DBG", "TRACE: [R120] will do_routing( '$avp(dr_group_id)')");
  if ( !do_routing( "$avp(dr_group_id)") )
  {
    xlog( "L_DBG",  "TRACE: [R120] No Rules matching the URI.  GroupID: 
'$avp(dr_group_id)'  From-Uri: $fu To-URI: $tu R-URI: $ru");
  ......

Regards,
Bogdan

On 05/08/2012 06:31 PM, Marcio Veloso Antunes wrote:
Bogdan,

   I have found an error message (error level, not debug) that says:

ERROR:drouting:do_routing: failed to get group id

   But i am calling do_routing, passing the string "05" through 
$avp(dr_group_id) as you can see in the script section below:

...
   xlog( "L_DBG", "TRACE: [R120] will do_routing( '$avp(dr_group_id)')");
   if ( !do_routing( "$avp(dr_group_id)") )
   {
     xlog( "L_DBG",  "TRACE: [R120] No Rules matching the URI.  GroupID: 
'$avp(dr_group_id)'  From-Uri: $fu To-URI: $tu R-URI: $ru");
...

The log generated confirms that:

TRACE: [R120] will do_routing( '05')
TRACE: [R120] No Rules matching the URI.  GroupID: '05'  From-Uri: 
sip:[email protected] To-URI:
sip:[email protected]:5061;user=phone R-URI:
sip:[email protected]:5061;user=phone

Am i doing something wrong or it is really odd?

Marcio Veloso


Em terça-feira. 08/maio/2012, às 10:14:09, Marcio Veloso Antunes escreveu:
Bogdan,

   The only messages i have in the log that have 'do_routing' are listed
below. I am sure the function is being called.

May  5 12:04:11 perseu opensips: DBG:core:find_cmd_export_t: found
<do_routing>(1) in module drouting
[/usr/local/opensips/lib/opensips/modules/]
May  5 12:04:11 perseu opensips: DBG:core:fix_actions: fixing do_routing,
line 1145 May  5 12:07:48 perseu opensips: TRACE: [R120] will do_routing(
'05') May  5 12:08:10 perseu opensips: TRACE: [R120] will do_routing(
'05')

   Do you think i should downgrade from 1.7.2 to some other version?

   Thanks,
   Marcio

Em terça-feira. 08/maio/2012, às 08:47:13, Bogdan-Andrei Iancu escreveu:
Marcio,

debug=4 should do it . Search for "do_routing:" string in the logs. And
be sure you are calling the function :)

Regards,
Bogdan

On 05/07/2012 03:58 PM, Marcio Veloso Antunes wrote:
Bogdan,

    What level of debug is necessary to show do_routing function debug?
    I am

using level 7 but i could not find any debug at all. I was the first
thing i've looked for.

Thanks again,

Em segunda-feira. 07/maio/2012, às 08:55:45, Bogdan-Andrei Iancu escreveu:


--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


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

Reply via email to