David Saint wrote:
>> Dave,
>> As far as I understand, 6,7 should work... Did you move your
>> rule before the "voicemail" rule? (or just the first in the dial plan)
>>
>> And in addition I can tell, that I tried a bit more
>> complicated prefixes...
>> I don't know if regular expressions in prefixes are really
>> supported, but I tried 0[1-4] as prefix, and it work as
>> expected, i.e. matches 01,02,03,04.
>> Try [6,7] or [6-7] as prefix...
>>
>> Can somebody tell me to which extent are regexp's supported?
>>
>> Thanks and regards,
>> Nikolay.
>>
>
> Hi Nikolay,
>
> It seems to have problems in some specific dial plan scenerios, e.g.
> Dial Number:
> Prefix = 9[3-4] and 6 digits
> Resulting call:
> Dial = 63 and matched suffix
> Call to 93932738 fails "Not found" (expect it to call 63932738)
>
> The authrules.xml shows:
> <userPattern>63[3-4]xxxxxx</userPattern>
> which doesn't seem right, I would have expected 6[3-4]xxxxxx.
>
> Dave
I looked at your *rules files.
What's easy to forget is that if you use expressions like [3-4] they become
a part of "Variable part of the dialed number" a.k.a. {vdigits}.
>
> In the attached rules:
> Ottawa:
> Dial Number:
> Prefix = 9[3-4] and 6 digits
> Resulting call:
> Dial = 63 and matched suffix
> Call to 93932738 fails "Not found" (expect it to call 63932738)
Your 'Ottawa' rule looks like this:
<!--Ottawa-->
<userPattern>9[3-4]xxxxxx</userPattern>
<transform>
<user>63{vdigits}</user>
<host>XXX.XXX.XXX.XXX</host>
<headerparams>expires=60</headerparams>
<fieldparams>q=0.9</fieldparams>
</transform>
Which means that dialing 93932738 will give you 633932738 - note that you
have 3 as a part of 63 prefix *and* as a part of "variable digits".
This is why the call fails.
>
> iptel:
> Dial Number:
> Prefix = [6,7] and 6 digits
> Resulting call:
> Dial = matched suffix
> Call to 6101575 fails "Forbidden" (expect it to call 101575)
>
> Thanks...
> Dave.
<!--iptel-->
<userPattern>[6,7]xxxxxx</userPattern>
<transform>
<user>{vdigits}</user>
<host>iptel.org</host>
<headerparams>route=XXX.XXX.XXX.XXX:5090</headerparams>
<headerparams>expires=60</headerparams>
<fieldparams>q=0.9</fieldparams>
</transform>
Similar story: Dialing 6101575 results in 6101575
D.
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev