[Freeswitch-users] limit app problem with loopback channels

Jose Fco. Irles Durá josefu at gmail.com
Sun Jun 3 19:47:39 MSD 2012


Hello,

I'm trying to limit calls to one user with limit application, all
works fine when a user dials to the number user (the caller is
transfered to limit_exceeded extension)

But when a caller dials to the 2000 extensions (a "ring group" to
loopback channels) and one of the users (for example 1001) answer the
call, the limit app removes the limit count for this channel when the
loopback channel disappears (when the direct bridge occurs between the
caller channel and callee channel).

Where is the problem? How can I avoid that the limit app removes the
limit for this loopback channel?

There is the fragmet of my dialplan (is the vainilla dialplan from git
with the limit action added)
<context name="default">
...
 <extension name="Local_Extension">
      <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="export" data="dialed_extension=$1"/>
        <action application="set" data="ringback=${us-ring}"/>
        <action application="set" data="transfer_ringback=$${hold_music}"/>
        <action application="set" data="call_timeout=30"/>
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="set" data="continue_on_fail=true"/>
       <action application="limit" data="hash callwaiting
${dialed_extension} 1"/>
        <action application="bridge"
data="user/${dialed_extension}@${domain_name}"/>
        <action application="answer"/>
        <action application="sleep" data="1000"/>
        <action application="bridge"
data="loopback/app=voicemail:default ${domain_name}
${dialed_extension}"/>
      </condition>
    </extension>

    <extension name="group_dial_sales">
      <condition field="destination_number" expression="^2000$">
        <action application="bridge"
data="loopback/1000/default,loopback/1001/default"/>
      </condition>
    </extension>

...
</context>

-- 
Jose Fco. Irles Durá



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