[Freeswitch-users] limit app problem with loopback channels

Dave R. Kompel drk at drkngs.net
Mon Jun 4 03:47:51 MSD 2012


Change that to "execute_on_originate". On answer will blow the call off if it's over limits when the user answers.  
   
--Dave
      _____  

  From: Michael Collins [mailto:msc at freeswitch.org]
To: FreeSWITCH Users Help [mailto:freeswitch-users at lists.freeswitch.org]
Sent: Sun, 03 Jun 2012 13:54:08 -0700
Subject: Re: [Freeswitch-users] limit app problem with loopback channels

You can solve this issue by avoiding loopback. Don't use loopback unless there is absolutely no other alternative. Try replacing the loopback calls in the group definition to "user/xxx" instead:

   <extension name="group_dial_sales">
     <condition field="destination_number" expression="^2000$">
       <action application="bridge"
data="[execute_on_answer='limit hash callwaiting 1000 1']user/1000, [execute_on_answer='limit hash callwaiting
1001 1']user/1001"/>
     </condition>
   </extension>
  
 This is just off the top of my head, so please do the usual testing and tinkering before you report back that it does not work. :)

-MC

  
On Sun, Jun 3, 2012 at 8:47 AM, Jose Fco. Irles Durá <josefu at gmail.com> wrote:
  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á


      
   
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120603/60c4605e/attachment.html 


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