<div dir="ltr">Thanks Avi and <span style="font-family:arial,sans-serif;font-size:13px">Andrew it works.</span><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Regards</font></div><div>
<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Shahzad Bhatti<br></font><div class="gmail_extra"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
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 17:30:42 +0000<br>Subject: Re: [Freeswitch-users] Apply Connection Charges on LegB<br><div dir="ltr">Ah, sorry! I read &quot;<span style="font-family:arial,sans-serif;font-size:12.666666984558105px">apply connection charges&quot; as &quot;when the call connects&quot; and figured I understood.</span><div>
<font face="arial, sans-serif"><span style="font-size:12.666666984558105px"><br>

</span></font></div><div><font face="arial, sans-serif"><span style="font-size:12.666666984558105px">OK, so I presume you want to export:nolocal an execute_on_answer or api_on_answer that calls something that charges the 5cents</span></font></div>


<div><a href="http://wiki.freeswitch.org/wiki/Variable_execute_on_answer" target="_blank">http://wiki.freeswitch.org/wiki/Variable_execute_on_answer</a><font face="arial, sans-serif"><span style="font-size:12.666666984558105px"><br>


</span></font></div><div><a href="http://wiki.freeswitch.org/wiki/Variable_api_on_answer" target="_blank">http://wiki.freeswitch.org/wiki/Variable_api_on_answer</a><font face="arial, sans-serif"><span style="font-size:12.666666984558105px"><br>


</span></font></div><div><br></div><div>It seems nibblebill supports this directly: </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<span>Adding/Deducting funds<br></span>Inserting this in your dialplan:<br>&lt;action application=&quot;nibblebill&quot; data=&quot;adjust 5.00&quot;/&gt;<br><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">... Use negative numbers to deduct from an account.</span></blockquote>


<div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">... you&#39;d of course want to make sure this ends up in your logs somewhere so you have an audit trail!</span><br></div>

<div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">Seemingly this would be an execute_on_answer.</span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif"><br>


</span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">Hope that helps!</span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">-Avi</span></div>

<div><br></div><div><div class="gmail_extra">

<div class="gmail_quote">On Thu, Nov 28, 2013 at 7:03 PM, Andrew Cassidy <span dir="ltr">&lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr">Avi, he wants to apply an additional charge to the call that is per call and not per minute, as well as the per minute rate.</div><div class="gmail_extra"><br></div></blockquote></div></div></div></div></blockquote>
</div></div></div></div>