Set nibblebill variables on B-leg
Hi All, I want to use mod_nibblebill for billing outgoing calls. My problem is billing begins before other paty answers the call. The WiKi tells: "You need to set the billing variables on your outbound calling leg and NOT on your A-Leg." How i can set nibblebill variables when B-leg connects?
Put them on the dialstring: application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah...." On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
Hi All,
I want to use mod_nibblebill for billing outgoing calls.
My problem is billing begins before other paty answers the call.
The WiKi tells: "You need to set the billing variables on your outbound calling leg and NOT on your A-Leg."
How i can set nibblebill variables when B-leg connects?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa
or use export vs set. /b On May 13, 2009, at 8:46 AM, Rupa Schomaker wrote:
Put them on the dialstring:
application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/ blah...."
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
Thanks for answer, i try to <action application="info"/> <action application="bridge" data="[nibble_rate=1]sofia/gateway/ProviderGW/$num"/> but it not resolve my problem. Billing still begins on A-leg before the B-leg answered. So, bill time include ringback time. Here is some debug output: EXECUTE ............... info() ... Unique-ID: [9441ad16-3fce-11de-baaf-f74f6eef9491] ... ... [DEBUG] switch_ivr_originate.c:1708 switch_ivr_originate() Play Ringback File [local_stream://rb_music1] [DEBUG] mod_local_stream.c:346 local_stream_file_open() Opening Stream [rb_music1] 8000hz [DEBUG] mod_nibblebill.c:459 event_handler() Received request via SESSION_HEARTBEAT! [DEBUG] mod_nibblebill.c:345 do_billing() Attempting to bill at $6.00000 per minute to account 3 [INFO] mod_nibblebill.c:387 do_billing() Beginning new billing on 9441ad16-3fce-11de-baaf-f74f6eef9491 [DEBUG] mod_nibblebill.c:395 do_billing() 0 seconds passed since last bill time of 2009-05-13 17:58:55 [DEBUG] mod_nibblebill.c:402 do_billing() Billing $0.036643 to 3 (Call: 9441ad16-3fce-11de-baaf-f74f6eef9491 / 0.000000 so far) On Wednesday 13 May 2009 16:46:37 Rupa Schomaker wrote:
Put them on the dialstring:
application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah...."
On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
Hi All,
I want to use mod_nibblebill for billing outgoing calls.
My problem is billing begins before other paty answers the call.
The WiKi tells: "You need to set the billing variables on your outbound calling leg and NOT on your A-Leg."
How i can set nibblebill variables when B-leg connects?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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} From: Yuriy Ivzhenko <yivzhenko@mksat.net> Organization: WildPark Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Thu, 14 May 2009 10:19:01 +0300 To: <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Set nibblebill variables on B-leg Thanks for answer, i try to <action application="info"/> <action application="bridge" data="[nibble_rate=1]sofia/gateway/ProviderGW/$num"/> but it not resolve my problem. Billing still begins on A-leg before the B-leg answered. So, bill time include ringback time. Here is some debug output: EXECUTE ............... info() ... Unique-ID: [9441ad16-3fce-11de-baaf-f74f6eef9491] ... ... [DEBUG] switch_ivr_originate.c:1708 switch_ivr_originate() Play Ringback File [local_stream://rb_music1] [DEBUG] mod_local_stream.c:346 local_stream_file_open() Opening Stream [rb_music1] 8000hz [DEBUG] mod_nibblebill.c:459 event_handler() Received request via SESSION_HEARTBEAT! [DEBUG] mod_nibblebill.c:345 do_billing() Attempting to bill at $6.00000 per minute to account 3 [INFO] mod_nibblebill.c:387 do_billing() Beginning new billing on 9441ad16-3fce-11de-baaf-f74f6eef9491 [DEBUG] mod_nibblebill.c:395 do_billing() 0 seconds passed since last bill time of 2009-05-13 17:58:55 [DEBUG] mod_nibblebill.c:402 do_billing() Billing $0.036643 to 3 (Call: 9441ad16-3fce-11de-baaf-f74f6eef9491 / 0.000000 so far) On Wednesday 13 May 2009 16:46:37 Rupa Schomaker wrote:
Put them on the dialstring:
application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah...."
On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
Hi All,
I want to use mod_nibblebill for billing outgoing calls.
My problem is billing begins before other paty answers the call.
The WiKi tells: "You need to set the billing variables on your outbound
calling leg and NOT on your A-Leg."
How i can set nibblebill variables when B-leg connects?
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Brian West
-
Ken Rice
-
Rupa Schomaker
-
Yuriy Ivzhenko