Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Set nibblebill variables on B-leg


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
yivzhenko at mksat.net
Guest





PostPosted: Wed May 13, 2009 5:36 am    Post subject: [Freeswitch-users] Set nibblebill variables on B-leg Reply with quote

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?
Back to top
rupa at rupa.com
Guest





PostPosted: Wed May 13, 2009 8:48 am    Post subject: [Freeswitch-users] Set nibblebill variables on B-leg Reply with quote

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 (yivzhenko@mksat.net)> wrote:
Quote:

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 (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed May 13, 2009 9:11 am    Post subject: [Freeswitch-users] Set nibblebill variables on B-leg Reply with quote

or use export vs set.

/b

On May 13, 2009, at 8:46 AM, Rupa Schomaker wrote:
Quote:
Put them on the dialstring:

application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah...."


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
yivzhenko at mksat.net
Guest





PostPosted: Thu May 14, 2009 2:20 am    Post subject: [Freeswitch-users] Set nibblebill variables on B-leg Reply with quote

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:
Quote:
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:
Quote:
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
Back to top
krice at freeswitch.org
Guest





PostPosted: Thu May 14, 2009 3:08 am    Post subject: [Freeswitch-users] Set nibblebill variables on B-leg Reply with quote

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 > > http://www.freeswitch.org _______________________________________________ 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services