[Freeswitch-users] intercept in fifo queue

Vladimir Elizarov xengelpublicx at gmail.com
Mon Mar 15 13:21:07 PDT 2010


Hello.

How can I intercept a fifo? I tried to use the example of intecept
default dialplan, but in no fifo dialed_extension.

    <extension name="operators">
      <condition field="destination_number" expression="^operators$">
            <action application="bind_meta_app" data="2 b s
record_session::/opt/freeswitch/storage/record/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
            <action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
            <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
            <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/>
            <action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
            <action application="answer"/>
            <action application="playback"
data="ivr/ivrvoice/razgovor-mozhet-byt-zapisan.wav"/>
            <action application="playback"
data="ivr/ivr-hold_connect_call.wav"/>
            <action application="set" data="fifo_music=$${hold_music}"/>
            <action application="fifo" data="operators@$${domain} in undef"/>
      </condition>
    </extension>

    <fifo name="operators@$${domain}" importance="0">
      <member timeout="15" simo="1"
lag="20">{fifo_caller_exit_key=9,fifo_consumer_exit_key=9}user/100@$${domain}</member>
    </fifo>
  </fifos>
-- 
Best regards, Vladimir Elizarov




More information about the FreeSWITCH-users mailing list