[Freeswitch-users] How to configure media bypass when using mod_callcenter

fieldpeak fieldpeak at gmail.com
Tue Apr 10 14:33:34 MSD 2012

Hi Maestros,

i'm using mod_callcenter to realize a simple senario, pstn user call to
media gw, then go to queue number 7000 of fs, then fs hunt a idel
agents(registered users) to accpet the call. it works fine.

however, i would like to make the media bypass the fs after the agent
answer the call, i.e. media-gw<->agent, however, from the trace,the media
still go via fs. from the trace, i saw when fs make the call to agent, the
fs initiate a new "INVITE"  with itself IP address as the connect ip
address in SDP, which caused the bypass failed. (in the attahed trace, .159
is the fs, .50 and .117 are two registered users).

i have configure below, and if two agent call for each other directly, the
media did bypass fs.

    <param name="inbound-bypass-media" value="true"/>
    <param name="inbound-proxy-media" value="false"/>

othe configuraton as following,

dial plan:

    <extension name="7000_Queue" >
   <condition field="destination_number" expression="^7000$">
       <action application="answer"/>
       <action application="playback"
       <action application="callcenter" data="7000_Queue at localhost"/>
       <action application="system" data="mkdir -p


<configuration name="callcenter.conf" description="CallCenter">
        <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->

        <queue name="7000_Queue at localhost">
            <param name="strategy" value="round-robin"/>
            <param name="moh-sound" value="$${hold_music}"/>
            <param name="time-base-score" value="queue"/>
            <param name="max-wait-time" value="0"/>
            <param name="max-wait-time-with-no-agent" value="0"/>
            <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="false"/>

<!-- WARNING: Configuration of XML Agents will be updated into the DB upon
restart. -->
<!-- WARNING: Configuration of XML Tiers will reset the level and position
if those were supplied. -->
<!-- WARNING: Agents and Tiers XML config shouldn't be used in a multi FS
shared DB setup (Not currently supported anyway) -->
                <agent name="agent1001 at localhost" type="callback"
contact="[call_timeout=10]user/1001@$${domain_name}" status="Available" />
                <agent name="agent1002 at localhost" type="callback"
contact="[call_timeout=10]user/1002@$${domain_name}" status="Available" />
                <agent name="agent1003 at localhost" type="callback"
contact="[call_timeout=10]user/1003@$${domain_name}" status="Available" />


<!-- If no level or position is provided, they will default to 1.  You
should do this to keep db value on restart. -->
        <tier agent="agent1001 at localhost" queue="7000_Queue at localhost"
level="1" position="1"/>
        <tier agent="agent1002 at localhost" queue="7000_Queue at localhost"
level="1" position="1"/>
        <tier agent="agent1003 at localhost" queue="7000_Queue at localhost"
level="1" position="1"/>



Could you please any one help, thanks a lot!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120410/aa6673b0/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: failed to media bypass2.pcap
Type: application/octet-stream
Size: 996573 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120410/aa6673b0/attachment-0001.obj 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list