<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’s because on your bridge line if that’s exactly what you have in your dialplan its wrong... You don’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 <yivzhenko@mksat.net><BR>
<B>Organization: </B>WildPark<BR>
<B>Reply-To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Date: </B>Thu, 14 May 2009 10:19:01 +0300<BR>
<B>To: </B><freeswitch-users@lists.freeswitch.org><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>
<action application="info"/><BR>
<BR>
<action application="bridge" data="[nibble_rate=1]sofia/gateway/ProviderGW/$num"/><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() <BR>
<BR>
...<BR>
<BR>
Unique-ID: [9441ad16-3fce-11de-baaf-f74f6eef9491] <BR>
<BR>
...<BR>
<BR>
...<BR>
<BR>
[DEBUG] switch_ivr_originate.c:1708 switch_ivr_originate() Play Ringback File [local_stream://rb_music1] <BR>
<BR>
[DEBUG] mod_local_stream.c:346 local_stream_file_open() Opening Stream [rb_music1] 8000hz <BR>
<BR>
[DEBUG] mod_nibblebill.c:459 event_handler() Received request via SESSION_HEARTBEAT! <BR>
<BR>
[DEBUG] mod_nibblebill.c:345 do_billing() Attempting to bill at $6.00000 per minute to account 3 <BR>
<BR>
[INFO] mod_nibblebill.c:387 do_billing() Beginning new billing on 9441ad16-3fce-11de-baaf-f74f6eef9491 <BR>
<BR>
[DEBUG] mod_nibblebill.c:395 do_billing() 0 seconds passed since last bill time of 2009-05-13 17:58:55 <BR>
<BR>
[DEBUG] mod_nibblebill.c:402 do_billing() Billing $0.036643 to 3 (Call: 9441ad16-3fce-11de-baaf-f74f6eef9491 / 0.000000 so far) <BR>
<BR>
On Wednesday 13 May 2009 16:46:37 Rupa Schomaker wrote:<BR>
<BR>
> Put them on the dialstring:<BR>
<BR>
><BR>
<BR>
> application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah...."<BR>
<BR>
><BR>
<BR>
> On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:<BR>
<BR>
> > Hi All,<BR>
<BR>
> ><BR>
<BR>
> > I want to use mod_nibblebill for billing outgoing calls.<BR>
<BR>
> ><BR>
<BR>
> > My problem is billing begins before other paty answers the call.<BR>
<BR>
> ><BR>
<BR>
> > The WiKi tells: "You need to set the billing variables on your outbound<BR>
<BR>
> > calling leg and NOT on your A-Leg."<BR>
<BR>
> ><BR>
<BR>
> > How i can set nibblebill variables when B-leg connects?<BR>
<BR>
> ><BR>
<BR>
> > _______________________________________________<BR>
<BR>
> > Freeswitch-users mailing list<BR>
<BR>
> > Freeswitch-users@lists.freeswitch.org<BR>
<BR>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
<BR>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<BR>
> > <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>