[Users] substr in uri

Iqbal iqbal at gigo.co.uk
Mon Nov 14 15:20:52 CET 2005


if ((uri=~"^sip:0[1-9].*@.*")

now once done, will this also match

 if (uri=~"^sip:00.*@.*") below

Iqbal

Daniel-Constantin Mierla wrote:

> Hello,
> the (correct) uri starts all the time with "sip:", maybe here is the 
> mistake you do. Since the syntax you put in your mail is invalid I 
> cannot spot a clear error.
>
> Cheers,
> Daniel
>
> On 11/14/05 15:39, Iqbal wrote:
>
>> Hi
>>
>> I am doing the following and for some reason it doesn't seem to work 
>> (please ignore syntax)
>>
>> if (uri=0[1-9] { substr/^0/00/}
>>
>> and then
>>
>> if {uri=00)
>> Now should the second if statement now match, or not, it my config it 
>> doesn't seem to.
>>
>> iqbal
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>
>
> .
>




More information about the sr-users mailing list