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
|