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