[OpenSIPS-Users] DRouting do_routing()

Anil M Pannikode anilpannikode at hotmail.com
Thu Jan 26 20:26:26 CET 2012


Currently if in the opensips configuration, if I make a call to do_routing()
without any parameters it will automatically query dr_groups table to
determine the group. If it cannot find a group corresponding to the caller ,
it fails do_routing and the calls fails.

 

Is there a way to specify a default group for any callers , who do not have
an entry in dr_groups ?

 

I wanted to implement specific routing for certain callers without need to
add an entry for each and every caller in dr_groups table.

 

I can always do something like 

 

If(!do_routing())

{

                // failed try default group

                If(!do_routing("0"))

{

                ...

}

}

 

Is that the way to implement this or is there a better way ?

 

Anil

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120126/f6c6c17e/attachment.htm>


More information about the Users mailing list