asterisk2billing.org
http://forum.asterisk2billing.org/

A2billing outbount setup
http://forum.asterisk2billing.org/viewtopic.php?f=33&t=11356
Page 1 of 1

Author:  edindananovi [ Wed Apr 15, 2015 8:48 am ]
Post subject:  A2billing outbount setup

Hello,

I am pretty new to a2billing and I am trying to setup it with Freepbx outound. I have created trunk in freepbx and the same trunk in a2billing, but I am having problems that a2billing is not showing any calls made on this trunk. Also I have created a customer, which I would like to authenticate only with caller id, and also it does not show any calls.

Can you please advise what to look.

Br

**A2billing version 2.1.0, FreePBX version 2.11.0.43

Author:  abhijeetsamant [ Mon Apr 20, 2015 12:05 pm ]
Post subject:  Re: A2billing outbount setup

What context are you using and how is it set up can you please post


Regards
Abhi

Author:  edindananovi [ Fri Apr 24, 2015 9:40 am ]
Post subject:  Re: A2billing outbount setup

Hello,

well I am using smartphone application which does callback. I have setup it correctly so that one call leg is getting billed, but the one which is done over local channel is not, call is setup correctly and is running, but a2billing stops when it is passed to local channel.

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

[out]
exten => _X.,1,NoOp(Mobility module outgoing call ${CALLERID(num)} exten: ${EXTEN})
exten => _X.,n,Goto(from-internal,${EXTEN},1)

[callback-a]
exten => _X.,1,NoOp(call back A caller ID ${CALLERID(num)} exten: ${EXTEN})
exten => _X.,n,Set(CALLERID(num)=${CALLERID(num)})
exten => _X.,n,Goto(out,${EXTEN},1)

; Second call that starts after the first call is answered
[callback-b]
exten => _X.,1,NoOp(to PBX calls ${CALLERID(num)} exten: ${EXTEN})
exten => _X.,n,Set(CALLERID(num)=${CALLERID(num)})
exten => _X.,n,Goto(out,${EXTEN},1)

Second call is not getting billed.

Is there any way to solve this?

BR

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/