hi simon, implementation is almost the same. here's my dialplan:<br><br><extension name="say_destination_info"><br> <condition field="destination_number" expression="^0044(\d)$"><br>
<action application="answer"/><br> <action application="playback" data="misc/dialing.wav"/><font size="2"><br> <action application="say" data="en name_spelled iterated $1"/></font><br>
... add more files to play here ...<br> <action application="playback" data="misc/gateway.wav"/><br> <action application="bridge" data="sofia/gateway/$1/><br> </condition><br>
</extension><br><br>warning: i have not tested this. i'm just showing for illustration purposes.<br><br>-nandy<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 4:51 AM, Simon J Mudd <span dir="ltr"><<a href="mailto:sjmudd@pobox.com">sjmudd@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm looking to migrate to Freeswitch from Asterisk (SOHO usage).<br>
One thing I have configured at the moment which I'm unsure how to do in<br>
FreeSwitch is the following.<br>
<br>
When the call's dial pattern is recognised I've been getting Asterisk<br>
to say: "Dialing <destination> via <gateway>" where <destination> might<br>
be a country, or area and <gateway> may be the name of one of several<br>
SIP gateways I have configured. Each phrase has been a prerecorded wav<br>
file played in sequence.<br>
<br>
[macro-XXXXX]<br>
exten => s,1,Playback(/etc/asterisk/wav/dialing)<br>
exten => s,2,Playback(/etc/asterisk/wav/${ARG2}) # Name of destination<br>
exten => s,3,Playback(/etc/asterisk/wav/via)<br>
exten => s,4,Playback(/etc/asterisk/wav/XXXXX) # Gateway name<br>
exten => s,5,Dial(SIP/XXXXX/${ARG1},60,tT) # ARG1 = Destination number<br>
<br>
<br>
# actual usage<br>
exten => _0044.,1,Macro(XXXXX,${EXTEN},touk)<br>
<br>
How would I approach doing something like this in FreeSwtich?<br>
<br>
Thanks for any pointers.<br>
<br>
Simon<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>