VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
sjmudd at pobox.com Guest
|
Posted: Tue Oct 13, 2009 6:29 pm Post subject: [Freeswitch-users] Preannouncing a message before making a c |
|
|
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 |
|
Back to top |
|
|
nandy1925 at gmail.com Guest
|
Posted: Wed Oct 14, 2009 5:55 am Post subject: [Freeswitch-users] Preannouncing a message before making a c |
|
|
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 (sjmudd@pobox.com)> wrote:
Quote: | 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 (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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|