[Users] substr in uri

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Nov 14 15:45:57 CET 2005



On 11/14/05 16:20, Iqbal wrote:
> if ((uri=~"^sip:0[1-9].*@.*")
>
> now once done, will this also match
>
> if (uri=~"^sip:00.*@.*") below
I should, if you do the proper subst. If you just want to add a '0', 
then better use prefix() instead of subst(), is much faster.

Cheers,
Daniel

>
> 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