[Freeswitch-users] Transfer A-Leg in a callcenter queue bridged to an agent to another queue
Mimiko
vbvbrj at gmail.com
Wed Sep 18 14:06:14 MSD 2013
On 18.09.2013 10:09, Vincent Xia wrote:
> hi Mimiko, could you post your queue configuration and the dialplan that
> does the transfer, if possible?
>
Its rather simple:
callcenter.conf:
<queue name="que1@$${domain}">
<param name="strategy" value="longest-idle-agent"/>
<param name="moh-sound" value="$${hold_music}"/>
<param name="record-template"
value="$${recordings_dir}/${strftime(%Y-%m)}/${strftime(%Y-%m-%d)}/${strftime(%Y-%m-%d-%H-%M-%S)}.${caller_id_number}.to.${cc_agent}.mp3"/>
<param name="time-base-score" value="system"/>
<param name="max-wait-time" value="0"/>
<param name="max-wait-time-with-no-agent" value="1"/>
<param name="max-wait-time-with-no-agent-time-reached" value="5"/>
<param name="tier-rules-apply" value="false"/>
<param name="tier-rule-wait-second" value="300"/>
<param name="tier-rule-wait-multiply-level" value="true"/>
<param name="tier-rule-no-agent-no-wait" value="false"/>
<param name="discard-abandoned-after" value="60"/>
<param name="abandoned-resume-allowed" value="true"/>
</queue>
Dialplan:
<extension name="que1">
<condition field="destination_number" expression="^111$" break="on-false">
<action application="set" data="playback_terminators=#"/>
<action application="playback" data="phrase:intro"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="record_sample_rate=8000"/>
<action application="bind_meta_app" data="1 b s execute_extension::dx
XML features"/>
<action application="callcenter" data="qu1@$${domain}"/>
<action application="set" data="playback_terminators=#"/>
<action application="playback" data="phrase:no_agents_leave_message"/>
<action application="answer"/>
<action application="set" data="skip_greeting=true"/>
<action application="set" data="skip_instructions=true"/>
<action application="voicemail" data="default ${domain_name} que1"/>
<action application="hangup"/>
</condition>
</extension>
<extension name="dx">
<condition field="destination_number" expression="^dx$">
<action application="answer"/>
<action application="read" data="11 11
'tone_stream://%(10000,0,350,440)' digits 5000 #"/>
<action application="execute_extension" data="is_transfer XML features"/>
</condition>
</extension>
<extension name="att_xfer">
<condition field="destination_number" expression="^att_xfer$">
<action application="read" data="3 4
'tone_stream://%(10000,0,350,440)' digits 30000 #"/>
<action application="set" data="origination_cancel_key=#"/>
<action application="att_xfer" data="user/${digits}@$${domain}"/>
</condition>
</extension>
<extension name="is_transfer">
<condition field="destination_number" expression="^is_transfer$"/>
<condition field="${digits}" expression="^(\d+)$">
<action application="transfer" data="-bleg ${digits} XML default"/>
<anti-action application="eval" data="cancel transfer"/>
</condition>
</extension>
--
Mimiko desu.
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list