If you set nibble_rate to 0, it still runs and issues db queries. Maybe it even cuts them off at nobal, even. Rather, unset the nibble_account. -Avi On Sun, Dec 26, 2010 at 6:29 PM, Meftah Tayeb <tayeb.meftah@gmail.com>wrote:
set nibble_rate to 0 Le 26/12/2010 15:48, Madovsky a écrit :
ok thanks, to unset nibble vars I need to set it to empty ?
----- Original Message ----- *From:* Avi Marcus <Avi@aMarcus.com> *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Sent:* Sunday, December 26, 2010 9:24 AM *Subject:* Re: [Freeswitch-users] deactivate nibblebill in dialplan
I *suppose* it's a 2 step process. You need to set the nobal to transfer them to an extension that checks if it's relevant to send them to voicemail, else, it send them to a "Empty balance" error message. Then, on the voicemail part, you simple unset nibble_account and mod_nibblebill ignores the channel. No account = no billing.
-Avi Marcus
On Sun, Dec 26, 2010 at 4:08 PM, Madovsky <infos@madovsky.org> wrote:
Is it possilbe to deactivate nibblebill in dialplan ? I'd like to allow the caller to reach the voice machine of the callee in case of the bridge fails and if his balance is under the nobal value in nibblebill.conf.xml
<extension name="inbound"> <condition field="${sip_to_uri}" expression="^([2-9]\d{10,15})@$${domain}$"> <action application="set" data="hangup_after_bridge=true"/> <action inline="true" application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,SUBSCRIBER_ABSENT,CALL_REJECTED,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/> <action application="set" data="instant_ringback=true"/> <action application="ring_ready"/> <action inline="true" application="lcr" data="$1 default"/> <action inline="true" application="set" data="nibble_rate=0.01"/> <action application="export" data="originate_timeout=19"/> <action application="bridge" data="sofia/gateway/$1"/> <!-- how to deactivate nibblebill here or allow user to continue even if his balance is to 0 ? --> <action application="sleep" data="3000"/> <action application="answer"/> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/> </condition> </extension>
Thanks
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Meftah Tayeb inum: +883510001288000 Phone: +13602276297 Fax: +12538020313
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org