[SR-Users] SIP Trunk

Daniel Tryba daniel at pocos.nl
Thu Aug 21 09:53:35 CEST 2014


On Thursday 21 August 2014 05:56:46 Satish Patel wrote:
>                 if ( $rU =~ "sip:1[0-9]@*") {

Try $ru instead, $rU only contains the dialled "number". So
$ru =~ "sip:1[0-9]@*"
or
$rU =~ "1[0-9]"

But note the regexp, that only matches the exact numbers 10 to 19, if you are 
trying to match prefixes you are doing it wrong (tm).



More information about the sr-users mailing list