<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Set nibblebill variables on B-leg</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
That&#8217;s because on your bridge line if that&#8217;s exactly what you have in your dialplan its wrong... You don&#8217;t use square brackets but the curly braces... {variable=123}<BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Yuriy Ivzhenko &lt;yivzhenko@mksat.net&gt;<BR>
<B>Organization: </B>WildPark<BR>
<B>Reply-To: </B>&lt;freeswitch-users@lists.freeswitch.org&gt;<BR>
<B>Date: </B>Thu, 14 May 2009 10:19:01 +0300<BR>
<B>To: </B>&lt;freeswitch-users@lists.freeswitch.org&gt;<BR>
<B>Subject: </B>Re: [Freeswitch-users] Set nibblebill variables on B-leg<BR>
<BR>
</SPAN><SPAN STYLE='font-size:10pt'>Thanks for answer, i try to <BR>
<BR>
&lt;action application=&quot;info&quot;/&gt;<BR>
<BR>
&nbsp;&lt;action application=&quot;bridge&quot; data=&quot;[nibble_rate=1]sofia/gateway/ProviderGW/$num&quot;/&gt;<BR>
<BR>
but it not resolve my problem.<BR>
<BR>
Billing still begins on A-leg before the B-leg answered. So, bill time include ringback time.<BR>
<BR>
Here is some debug output:<BR>
<BR>
EXECUTE ............... info() &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
...<BR>
<BR>
Unique-ID: [9441ad16-3fce-11de-baaf-f74f6eef9491] &nbsp;&nbsp;<BR>
<BR>
...<BR>
<BR>
...<BR>
<BR>
&nbsp;[DEBUG] switch_ivr_originate.c:1708 switch_ivr_originate() Play Ringback File [local_stream://rb_music1] &nbsp;<BR>
<BR>
&nbsp;[DEBUG] mod_local_stream.c:346 local_stream_file_open() Opening Stream [rb_music1] 8000hz &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;[DEBUG] mod_nibblebill.c:459 event_handler() Received request via SESSION_HEARTBEAT! &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;[DEBUG] mod_nibblebill.c:345 do_billing() Attempting to bill at $6.00000 per minute to account 3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;[INFO] mod_nibblebill.c:387 do_billing() Beginning new billing on 9441ad16-3fce-11de-baaf-f74f6eef9491 &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;[DEBUG] mod_nibblebill.c:395 do_billing() 0 seconds passed since last bill time of 2009-05-13 17:58:55 &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;[DEBUG] mod_nibblebill.c:402 do_billing() Billing $0.036643 to 3 (Call: 9441ad16-3fce-11de-baaf-f74f6eef9491 / 0.000000 so far) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
On Wednesday 13 May 2009 16:46:37 Rupa Schomaker wrote:<BR>
<BR>
&gt; Put them on the dialstring:<BR>
<BR>
&gt;<BR>
<BR>
&gt; application=&quot;bridge&quot; data=&quot;{nibblevar1=val1,nibblevar2=val2}sofia/blah....&quot;<BR>
<BR>
&gt;<BR>
<BR>
&gt; On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko &lt;yivzhenko@mksat.net&gt; wrote:<BR>
<BR>
&gt; &gt; &nbsp;Hi All,<BR>
<BR>
&gt; &gt;<BR>
<BR>
&gt; &gt; I want to use mod_nibblebill for billing outgoing calls.<BR>
<BR>
&gt; &gt;<BR>
<BR>
&gt; &gt; My problem is billing begins before other paty answers the call.<BR>
<BR>
&gt; &gt;<BR>
<BR>
&gt; &gt; The WiKi tells: &quot;You need to set the billing variables on your outbound<BR>
<BR>
&gt; &gt; calling leg and NOT on your A-Leg.&quot;<BR>
<BR>
&gt; &gt;<BR>
<BR>
&gt; &gt; How i can set nibblebill variables when B-leg connects?<BR>
<BR>
&gt; &gt;<BR>
<BR>
&gt; &gt; _______________________________________________<BR>
<BR>
&gt; &gt; Freeswitch-users mailing list<BR>
<BR>
&gt; &gt; Freeswitch-users@lists.freeswitch.org<BR>
<BR>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
<BR>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<BR>
&gt; &gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><SPAN STYLE='font-size:10pt'><FONT FACE="Consolas, Courier New, Courier">_______________________________________________<BR>
Freeswitch-users mailing list<BR>
Freeswitch-users@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>