[Freeswitch-users] deactivate nibblebill in dialplan

Meftah Tayeb tayeb.meftah at gmail.com
Sun Dec 26 19:29:52 MSK 2010


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 <mailto:Avi at aMarcus.com>
>     *To:* FreeSWITCH Users Help
>     <mailto:freeswitch-users at 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 at madovsky.org
>     <mailto:infos at 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 at lists.freeswitch.org
>         <mailto: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
>
>
>     ------------------------------------------------------------------------
>     _______________________________________________
>     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
>
>
> _______________________________________________
> 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
>    


-- 
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101226/e1e9374f/attachment-0001.html 


More information about the FreeSWITCH-users mailing list