[asterisk-dev] Using PreDial to modify destination number

Timo Teras timo.teras at iki.fi
Fri Sep 7 09:41:39 CDT 2012


Hi,

I just noticed the new cool PreDial feature in Asterisk 11 from
ASTERISK-19548.

I was thinking if I could use it to do target number mangling on
per-target channel basis.

The idea is that if I have multiple VoIP providers, one requires
national format destination number and others international format. I
could just in the sip.conf peer config block have something like
"setvar=number_format=national", and then use that channel variable to
define how a PreDial on callee channel would mangle the destination
number.

It would appear this is not (yet) possible. The question is if this a
good or bad idea?

-Timo



More information about the asterisk-dev mailing list