[Freeswitch-users] Dialplan variables
Nik Middleton
nik.middleton at noblesolutions.co.uk
Thu Feb 5 12:36:33 PST 2009
Hi Guys,
Simple question, tried asking on IRC but no joy, they're too busy
slating other systems.
I'm trying to dial out via a remote sip gateway via the dial plan
<extension name="dial_my_mobile">
<condition field="destination_number" expression="^0773400000$">
<action application="bridge"
data="sofia/${use_profile}/0773400000 at 21X.XXX.XXX/XXX"/>
</condition>
</extension>
This works fine, but I'd like to wild card the extension so it matches
on anything starting with a 0 the a number > 0
How do I pass the number dialed using a variable? In asterisk I would
put ${EXTEN}
Finally I also have the sip gateway registered
Mag gateway sip:xxx at hostname.net REGED
Is it possible to use the name of this gateway instead of the IP address
as in 21X.XXX.XXX/XXX ?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090205/997125ce/attachment-0002.html
More information about the FreeSWITCH-users
mailing list