<div dir="ltr">I <i>suppose</i> it's a 2 step process.<div>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.</div>
<div>Then, on the voicemail part, you simple unset nibble_account and mod_nibblebill ignores the channel. No account = no billing.</div><div><br></div><div>-Avi Marcus<br><br><div class="gmail_quote">On Sun, Dec 26, 2010 at 4:08 PM, Madovsky <span dir="ltr"><<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Is it possilbe to deactivate nibblebill in dialplan
?</font></div>
<div><font size="2">I'd like to allow the caller to reach the voice machine of the
callee in case of the bridge</font></div>
<div><font size="2">fails and if his balance is under the nobal value in
nibblebill.conf.xml</font></div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
<div><font size="2"> <extension
name="inbound"><br>
<condition field="${sip_to_uri}"
expression="^([2-9]\d{10,15})@$${domain}$"><br>
<action application="set"
data="hangup_after_bridge=true"/><br>
<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"/><br>
<action application="set"
data="instant_ringback=true"/><br>
<action
application="ring_ready"/><br>
<action inline="true" application="lcr" data="$1
default"/><br>
<action inline="true" application="set"
data="nibble_rate=0.01"/><br>
<action application="export"
data="originate_timeout=19"/><br>
<action application="bridge" data="sofia/gateway/$1"/></font></div>
<div><font size="2">
<!-- how to
deactivate nibblebill here or allow user to continue even if his balance is to 0
?
--><br>
<action application="sleep"
data="3000"/><br>
<action
application="answer"/><br>
<action application="voicemail" data="default ${domain_name}
${dialed_extension}"/><br>
</condition><br>
</extension><br></font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks</font></div><br><font color="#888888">--
<br>This message has been scanned for viruses and
<br>dangerous content by
<a href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>, and is
<br>believed to be clean.
</font></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>