[Freeswitch-users] Playing on hold music for certain inbound numbers

Tom Angle tangle70 at gmail.com
Sat Oct 4 00:40:56 MSD 2014


In plain english. I want an incoming SIP call to user 4000 to go 
directly to hold and play a wav file. Also I want to assign different 
wav file to different incoming numbers. This was a customer can choose 
what on hold music their clients will hear.

I posted the cli output in pastebin under Tom Angle. Thanks

Tom

On 10/3/2014 3:17 PM, Michael Collins wrote:
> Welcome to FreeSWITCH!
>
> The folks around here will be happy to help. In this case I believe 
> they/we just need some additional information. I recommend that you 
> get a console debug log and drop it into pastebin.freeswitch.org 
> <http://pastebin.freeswitch.org> and set the syntax highlight to 
> "FreeSWITCH Log".
>
> Also, it would probably help if you gave us a plain language 
> description of what you are trying to do with that dialplan snippet. I 
> see a lot of anti-actions which may or may not be what you need. Maybe 
> a brief description would help, something like: "When caller id 1005 
> calls in, play file1.wav and then hangup."
>
> Lastly I recommend reviewing this wiki page: 
> https://confluence.freeswitch.org/display/FREESWITCH/Troubleshooting+Debugging
>
> It will get you on the right path for figuring out what information to 
> collect for the troubleshooting process.
>
> -Michael
>
> On Fri, Oct 3, 2014 at 8:47 AM, Tom Angle <tangle70 at gmail.com 
> <mailto:tangle70 at gmail.com>> wrote:
>
>     I am new to Freeswitch.
>
>     I am trying to create a MOH server for our Metaswitch. Currently I
>     have
>     it working, but it will only play on audio file. I would like to
>     set it
>     up to play a particular audio depending on the inbound phone
>     number. The
>     below code is in my dialplan/default.xml and does not work. Could
>     someone tell me what I am doing wrong? Thanks for any help.
>
>
>          <extension name="4000_hold_music">
>            <condition field="effective_caller_id_number"
>     expression="^(1000)$">
>              <action application="answer"/>
>              <action application="execute_extension" data="is_secure XML
>     features"/>
>              <action application="playback" data="$${hold_music}"/>
>              <anti-action application="set"
>     data="zrtp_secure_media=true"/>
>              <anti-action application="answer"/>
>              <anti-action application="execute_extension"
>     data="is_zrtp_secure XML features"/>
>              <anti-action application="playback"
>     data="/music/music1.wav"/>
>            </condition>
>
>            <condition field="effective_caller_id_number"
>     expression="^(1005)$">
>              <action application="answer"/>
>              <action application="execute_extension" data="is_secure XML
>     features"/>
>              <action application="playback" data="$${hold_music}"/>
>              <anti-action application="set"
>     data="zrtp_secure_media=true"/>
>              <anti-action application="answer"/>
>              <anti-action application="execute_extension"
>     data="is_zrtp_secure XML features"/>
>              <anti-action application="playback"
>     data="/music/music4.wav"/>
>            </condition>
>          </extension>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://confluence.freeswitch.org
>     http://www.cluecon.com
>
>     
>     
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 
> 
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141003/943a3f47/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list