[Asterisk-Users] Dialing analog extensions from SIP?

Francesco Peeters (Asterisk) francesco at fampeeters.com
Tue Dec 13 23:28:00 MST 2005


On Wed, December 14, 2005 3:33, Robert La Ferla said:
> Doug Lytle wrote:
>> I agree with Eric on this one.  On my Polycom IP501s, I had to change
>> the digit map to allow for # and * matching.  For testing, remove the
>> # and try again.
>
> Remove it from the phone's dial plan or all together?  Also, my phone
> has a local dial plan that is set to this: "X+#|XX+*"  I can't find any
> documentation on it and it doesn't seem to match up with the patterns in
> Asterisk.
>
> i.e.
>
> ;   X - any digit from 0-9
> ;   Z - any digit from 1-9
> ;   N - any digit from 2-9
> ;   [1235-9] - any digit in the brackets (in this example,
> 1,2,3,5,6,7,8,9)
> ;   . - wildcard, matches anything remaining (e.g. _9011. matches
> ;       anything starting with 9011 excluding 9011 itself)
> ;   ! - wildcard, causes the matching process to complete as soon as
> ;       it can unambiguously determine that no other matches are possible
>
> So what do "+" and "|" and "*" do?
>
>
>

+ means 'always add the part before the + if the part behind it matches'. ie:
0031+79NXXXXXX means if the number matches 79NXXXXXX (for instance
793456789) add 0031 (ie 00317934567890, which would be int'l format for
the Netherlands)
| means remove the part before if both the parts before and behind match. ie:
0031|79NXXXXXX means if the number matches 003179NXXXXXX (for instance
0031793456789) remove 0031 (ie 7934567890, which would be the national
part of an int'l format number for the Netherlands)
* means * (look on your phone's keypad <G>)

(PS: + and | are only valid in certain contexts, such as trunks and
outbound routes. Not everywhere | is valid, + will be valid as well, and
vice versa! IIRC + only works for trunks)

HTH

-- 
F Peeters
  PIII 450 - 1 GB - * 1.2 - BRIstuff 0.3.0 Pre 1 - Florz patch
  2 Sweex HFC-PCI modes=2 sync_slave=2 timer_card=0
    Cologne HFC-S pins #52, #54, #55 connected in parallel for synching.



More information about the asterisk-users mailing list