LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2014, 04:30 PM   #1
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,759

Rep: Reputation: 78
Setting condition by inbound calls- Freeswitch


I am setting up a music on hold server and am having problems. In my default.xml I have a section that sends all calls to 4000 to hold, which plays music. The below code only plays /music/music1.wav when any incoming call answered. I would like to set the music file each inbound number.

Code:
    
<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>
Thanks for any help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check Negative egrep condition in an if condition novicunix Programming 5 02-02-2013 12:52 AM
error while installing freeswitch on Raspberry Pi nash_rack1 Linux - Software 3 09-05-2012 10:42 PM
Setting up netfilter/iptables to allow Apple FaceTime-enabled phone calls w/iPhone 4 TheOneKEA Linux - Networking 0 10-07-2011 06:58 PM
LXer: Setting Up Freeswitch On Debian 5 (Lenny) LXer Syndicated Linux News 0 01-13-2010 11:40 PM
Busy Signal calling asterisk inbound outbound calls AD123 Linux - Server 2 07-28-2009 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration