[Freeswitch-users] Apply Connection Charges on LegB

Andrew Cassidy andrew at cassidywebservices.co.uk
Thu Nov 28 19:22:23 MSK 2013


Same question from me, although perhaps we could use
http://wiki.freeswitch.org/wiki/Mod_nibblebill#Adding.2FDeducting_funds but
it doesn't say if that affects the nibble_total_billed variable.


On 28 November 2013 16:05, Shahzad Bhatti <shahzad.bhatti at g-r-v.com> wrote:

> Hi all, i am using mod_xml_curl to bridge call to legB and charge call
> using mod_nibblebill and it works fine, but now i want to apply connection
> charges to that bridge call when legB is answered but want to know how?
> any suggestion will be appreciated
>
> here is sample of my xml_dialplan
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
>    <section name="dialplan" description="Dial Plan For FreeSwitch">
>         <context name="default">
>             <extension name="Bridge Call to Destination">
>                 <condition field="destination_number" expression="^1004$">
>                         <action application="set"
> data="process_cdr=b_only"/>
>                         <action application="set"
> data="hangup_after_bridge=true"/>
>                         <action application="set" data="nibble_account=1"/>
>                         <action application="set" data="nibble_rate=0"/>
>                         <action application="export"
> data="nolocal:nibble_account=1"/>
>                         <action application="export"
> data="nolocal:nibble_rate=0.034155"/>
>                         <action application="answer" />
>                         <action application="bridge"
> data="sofia/external/1004%192.168.0.100"/>
>                         <action application="hangup"/>
>                 </condition>
>             </extension>
>             <extension name="hangup">
>                 <condition field="destination_number"
> expression="^(hangup)$">
>                         <action application="respond" data="503"/>
>                         <action application="hangup"/>
>                 </condition>
>             </extension>
>         </context>
>    </section>
> </document>
>
>
> Regards
>
> Shahzad Bhatti
>
> _________________________________________________________________________
> 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
>
>


-- 
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director


*T <info at cassidywebservices.co.uk> *03300 100 960  *F
<info at cassidywebservices.co.uk> *03300 100 961
*E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
*W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131128/9f048ea4/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list