<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 &lt;<a href="mailto:shahzad.bhatti@g-r-v.com">shahzad.bhatti@g-r-v.com</a>&gt;<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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;</div>
<div>
&lt;document type=&quot;freeswitch/xml&quot;&gt;</div><div>   &lt;section name=&quot;dialplan&quot; description=&quot;Dial Plan For FreeSwitch&quot;&gt;</div><div>        &lt;context name=&quot;default&quot;&gt;</div><div>

            &lt;extension name=&quot;Bridge Call to Destination&quot;&gt;</div><div>                &lt;condition field=&quot;destination_number&quot; expression=&quot;^1004$&quot;&gt;<br></div><div>                        &lt;action application=&quot;set&quot; data=&quot;process_cdr=b_only&quot;/&gt;</div>

<div>                        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div>                        &lt;action application=&quot;set&quot; data=&quot;nibble_account=1&quot;/&gt;</div>

<div>                        &lt;action application=&quot;set&quot; data=&quot;nibble_rate=0&quot;/&gt;</div><div>                        &lt;action application=&quot;export&quot; data=&quot;nolocal:nibble_account=1&quot;/&gt;</div>

<div>                        &lt;action application=&quot;export&quot; data=&quot;nolocal:nibble_rate=0.034155&quot;/&gt;<br></div><div>                        &lt;action application=&quot;answer&quot; /&gt;<br></div><div>

                        &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/1004%192.168.0.100&quot;/&gt;</div><div>                        &lt;action application=&quot;hangup&quot;/&gt;</div><div>                &lt;/condition&gt;</div>

<div>            &lt;/extension&gt;</div><div>            &lt;extension name=&quot;hangup&quot;&gt;</div><div>                &lt;condition field=&quot;destination_number&quot; expression=&quot;^(hangup)$&quot;&gt;</div>
<div>
                        &lt;action application=&quot;respond&quot; data=&quot;503&quot;/&gt;</div><div>                        &lt;action application=&quot;hangup&quot;/&gt;</div><div>                &lt;/condition&gt;</div>

<div>            &lt;/extension&gt;</div><div>        &lt;/context&gt;<br></div><div>   &lt;/section&gt;</div><div>&lt;/document&gt;</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 &lt;<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<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>