<div dir="ltr"><div>thanks Avi for the reply!</div><div><br></div>nibblebill is working fine but i want to apply connection charges on leg B when it is answered;<div>i want to apply extra charges as connection charges on legB answer like if </div>
<div><div>call duration is 60 sec </div><div>rate is 30cents </div><div>connection charges is 5 cents </div><div>then call charged as 35 cents </div><div>30cent for call duration and 5cents as connection charges</div><div>
i hope that will give idea what i want to say</div><div><br></div><div>Regards</div><div><br></div><div>Shahzad Bhatti</div><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br>---------- Forwarded message ----------<br>From: Shahzad Bhatti <<a href="mailto:shahzad.bhatti@g-r-v.com">shahzad.bhatti@g-r-v.com</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Cc: <br>Date: Thu, 28 Nov 2013 21:05:45 +0500<br>Subject: [Freeswitch-users] Apply Connection Charges on LegB<br><div dir="ltr">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?<div>
any suggestion will be appreciated</div><div><br></div><div>here is sample of my xml_dialplan</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="no"?></div>
<div>
<document type="freeswitch/xml"></div><div> <section name="dialplan" description="Dial Plan For FreeSwitch"></div><div> <context name="default"></div><div>
<extension name="Bridge Call to Destination"></div><div> <condition field="destination_number" expression="^1004$"><br></div><div> <action application="set" data="process_cdr=b_only"/></div>
<div> <action application="set" data="hangup_after_bridge=true"/></div><div> <action application="set" data="nibble_account=1"/></div>
<div> <action application="set" data="nibble_rate=0"/></div><div> <action application="export" data="nolocal:nibble_account=1"/></div>
<div> <action application="export" data="nolocal:nibble_rate=0.034155"/><br></div><div> <action application="answer" /><br></div><div>
<action application="bridge" data="sofia/external/1004%192.168.0.100"/></div><div> <action application="hangup"/></div><div> </condition></div>
<div> </extension></div><div> <extension name="hangup"></div><div> <condition field="destination_number" expression="^(hangup)$"></div>
<div>
<action application="respond" data="503"/></div><div> <action application="hangup"/></div><div> </condition></div>
<div> </extension></div><div> </context><br></div><div> </section></div><div></document></div></div><div><br></div><div><br></div><div>Regards</div><div><br></div><div>Shahzad Bhatti</div>
</div>
<br><br>---------- Forwarded message ----------<br>From: Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>Date: Thu, 28 Nov 2013 16:21:06 +0000<br>Subject: Re: [Freeswitch-users] Apply Connection Charges on LegB<br><div dir="ltr">Since nibblebill only charges for answered calls, that looks like it should work.<div>Is it not working as expected?</div>
<div>-Avi</div></div>
<br></blockquote></div></div></div></div></div>