[Freeswitch-users] Limit usage not decreased after attended transfer

Stanislav Sinyagin ssinyagin at yahoo.com
Sun Jun 30 03:23:15 MSD 2013


fixed it with

        <action application="export" data="nolocal:execute_on_answer=limit hash ${domain} ${availability_username} -1"/>
for incoming calls, and checking the limit before that.








>________________________________
> From: Stanislav Sinyagin <ssinyagin at yahoo.com>
>To: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org> 
>Sent: Friday, June 28, 2013 5:53 PM
>Subject: [Freeswitch-users] Limit usage not decreased after attended transfer
> 
>
>
>hi,
>
>
>My user wants to have only one incoming call on a number of his SIP accounts, and no concurrent calls.
>
>
>
>So, on incoming calls I do
>        <action application="limit" data="hash ${domain} ${availability_username} 1"/>
>
>
>and on outgoing calls I do 
>
>        <action application="limit" data="hash ${domain_name} ${availability_username} -1"/>
>
>
>
>
>
>Problem:
> when an inbound call arrives, and the user transfers it to another PSTN number and hangs up, limit_usage still shows 1 active conversation, until the transferred call ends. That means, the user already hung up, but he cannot accept new calls until the original call finishes.
>
>
>Any idea how to eliminate this situation and free up the limit counts after transfer?
>
>
>
>
>thanks
>stanislav
>
>
>
>
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130629/4f887ae0/attachment.html 


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