[Asterisk-Users] dial rule / prefix with #

Ben Dinnerville bdinnerv at gmail.com
Sun Sep 4 05:14:28 MST 2005


HI All,

Have searched a bit for this one, but cant seem to find any indication
of how you might use a dial prefix with the hash / pound sign as part
fo the prefix.

I have a gsm pod set up on asterisk which all works fine, but i want
to disable cli on the outbound calls over this particular trunk. The
network that the pod is on allows blocking of sending CLI by prefixing
your dialed number with #31#. I have tried putting a rule into
localprefixes to use this as a prefix, but if i have the # sybols in
there, the rule doesnt seem to get a match. If i leave the # symbols
out and just have the 31 as a prefix, the match works, but dialing the
number with just 31 prefixed ends up with a invalid phone number and
no call being connected.

The rules i have tried are - 
[trunk-2]
rule1=#31#+04.

[trunk-2]
rule1="#31#"+04.

[trunk-2]
rule1=_#31_#+04.

and 
[trunk-2]
rule1=31+04.


none of which work as desired. Is there some way of indicating a hash
/ pound symbol for this use or some way of escaping it so that the
rule will work?

Cheers,

Ben



More information about the asterisk-users mailing list