[SR-Users] Use of asterisk * in Kamailio routing

Daniel Tryba daniel at pocos.nl
Wed Jun 18 10:58:02 CEST 2014


On Tuesday 17 June 2014 14:41:03 Joel White wrote:
> case /"^\*\*[0-9]{5}$":
> 
> break;


Switch/case works with regexps? My guess would be you are matching literal 
"^\*\*[0-9]{5}$" when using it withing a switch($rU) block. Try 
if($rU=~"\*\*[0-9]{5}$")
{
}
else if($rU=~)
{
}
...
else
{
}
instead.

-- 

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024



More information about the sr-users mailing list