[SR-Users] syntax error with kamailio

Laszlo laszlo at voipfreak.net
Tue Apr 13 15:04:29 CEST 2010


failure_route[FAIL_ONE] { is closed before your "if ( $rU =~ "^9[0- ....."

2010/4/13 alexis heron <alexis.heron at crihan.fr>

> Daniel-Constantin Mierla wrote:
>
>>
>>
>> On 4/13/10 11:59 AM, alexis heron wrote:
>>
>>> Daniel-Constantin Mierla wrote:
>>>
>>>>
>>>>
>>>> On 4/13/10 11:49 AM, alexis heron wrote:
>>>>
>>>>> Iñaki Baz Castillo wrote:
>>>>>
>>>>>> 2010/4/13 alexis heron <alexis.heron at crihan.fr>:
>>>>>>
>>>>>>> As a suggestion, if you are interested in matching just the RURI
>>>>>>>> username part then I strongly recommend you doing so as follows:
>>>>>>>>
>>>>>>>>  if ( $rU =~ "^9[0-9][0-9]$" ) {
>>>>>>>>            log(1, "Matched Cisco Call Manager");
>>>>>>>>            route(4);
>>>>>>>>  }
>>>>>>>>
>>>>>>>>
>>>>>>>> I have always the same error
>>>>>>>>
>>>>>>>
>>>>>> Also using my suggestion?
>>>>>> Try removing the "log" line.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> yes also usingg your suggestion and same in try removing the "log" line
>>>>>
>>>>> In fact, the error is just before the "if" but before "if" it's empty
>>>>>
>>>> the error is somewhere above. Maybe you haven't closed some open
>>>> pharentesis, quotes, etc ... the 'if' you pointed is ok. you have to provide
>>>> more of your config to be able to spot something.
>>>>
>>>> Try to put a xlog (or other action) before the 'if' just to see if the
>>>> error changes the line.
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>> always the same error
>>>
>>
>> comment from the actions above until you spot it. if you don't provide
>> your config, cannot help here.
>>
>> Daniel
>>
>>
> please help me
> thank you
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100413/a0502b71/attachment.htm>


More information about the sr-users mailing list