ok thanks,to unset nibble vars I need to set it to empty ?----- Original Message -----From: Avi MarcusSent: Sunday, December 26, 2010 9:24 AMSubject: 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 bridgefails 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, 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 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
-- Meftah Tayeb inum: +883510001288000 Phone: +13602276297 Fax: +12538020313