Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 7:59 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Call duration when using local channels
PostPosted: Sun Oct 18, 2009 1:17 pm 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
Hello guys,

First of all, a huge congratulation to you, you've done incredible improvements since the last time I tried the interface.
I am back on stage to try A2Billing for a project and for now everything is going pretty well. Except a minor issue:
When I call A2Billing with a local channel in a ring group, the call duration is always 0 second and nothing is billed.
I use local channels for multidevices ringing e.g.: SIP/user1&Local/user1@a2billing, where user1@a2billing executes a macro where the callerid is set properly and a2billing.php is called with the right extension parameters.
The call goes through, and it shows in the call history of the user, but the duration is 0 seconds and the type is ANSWERED.

Any idea on how I could correct this?

Cheers,
Emrah


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Sun Oct 18, 2009 5:59 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Is this with FreePBX?

Joe


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Sun Oct 18, 2009 8:48 pm 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
jroper wrote:
Is this with FreePBX?

Joe


Nop, Asterisk v1.6.

Regards,
Emrah


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Sun Oct 18, 2009 8:49 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
We've experienced this in FreePBX, where effectively there are two dial commands going on.

You really need to do a goto, rather than a dial.

Joe


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Mon Oct 19, 2009 9:30 am 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
Hi,

How may I proceed when I need to ring multiple extensions where some of them must be billed through a2billing?
Code:
exten => s,1,Dial(SIP/user1"AND"SIP/user2"AND"Local/user3@a2billing-user3,,)
[a2billing-user3]
exten => user3,1,Set(CALLERID(num)=something-known-by-a2b)
exten => user3,2,Goto(a2billing,0044123456789,1)


I hope you understood me ;) I don't know how to explain it otherwise.

Cheers,
Emrah


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Mon Oct 19, 2009 9:45 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

You can set the accountcode instead of the callerID, and A2Billing will authenticate on that.

The problem you are experiencing is described with reference to FreePBX here: viewtopic.php?f=4&t=2127&start=30

Note the code used to pass a call from Asterisk to FreePBX, and see if that gives you any clues how to proceed.

Code:
macro-dialout-trunk-predial-hook]
exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
exten => s,2,MacroExit

[custom-freepbx-a2billing]
exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})
exten => _X.,n,Hangup()


Joe


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Mon Oct 19, 2009 9:55 am 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
Hello!

Thanks a lot for your prompt responses. I don't understand how to use this code to accomplish what I would like to do?
How may I place an extension that goes through a2b within a list of other devices to ring simultaneously without using chan_local?

Cheers,
Emrah


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Sat Nov 07, 2009 11:51 am 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
Any idea?
At the moment, the call goes through, is authenticated with the accountcode, is shown in the user's cdrs but the duration is constantly 0 sec. This happens when I call a2billing from within a list of dev I simultaneously ring, like exten => 1,1,Dial(SIP/ext1"and"SIP/ext2"and"Local/123456789@a2billing,,)

Cheers,
Emrah


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Sat Nov 14, 2009 3:43 pm 
Offline

Joined: Sun Oct 18, 2009 12:19 pm
Posts: 6
Up up? :)


Top
 Profile  
 
 Post subject: Re: Call duration when using local channels
PostPosted: Fri Dec 25, 2009 7:26 pm 
Offline
User avatar

Joined: Sun Mar 19, 2006 3:13 pm
Posts: 123
Location: English Indiana, USA
emrah wrote:
Hello guys,

When I call A2Billing with a local channel in a ring group, the call duration is always 0 second and nothing is
The call goes through, and it shows in the call history of the user, but the duration is 0 seconds and the type is ANSWERED.

Any idea on how I could correct this?

Cheers,
Emrah


Had the Same issue as you are having.
Instead of using
Dial(local/18125551212@a2billing,60,L(3590000))
I had to use
exten => _.,n,Goto(${at2billing},${EXTEN:0:50},1)

whenever the Dial(local command is used anywhere on a call before going to A2billing, a2billing well termination itself soon as the call is answered and your clients gets a free call. That is why its logging duration is 0 seconds.


If there are another way besides using the Dial(local command try using it.


Sam

PS,
I tested without Freepbx. Soon as the call came in from DID company routed it directly to EXT

which then cdialed the a2billing EXT using

Dial(local/18125551212@a2billing,60,L(3590000))

[a2billing] ; CallingCard application
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,AGI(a2billing.php)
exten => _X.,n,Hangup



And got same results.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group