stavros wrote:
Sam wrote:
Shouldnt the call_back_all not ask for a pin number if it reconizes the caller?
No, all-callback will never authenticate by CID; that's what cid-callback is for.
[cidcallback]
exten => _X.,1,MYSQL(Connect connid 209.40.000.000 a2billinguser dxxxx a2b)
exten => _X.,2,MYSQL(Query resultid ${connid} SELECT\ cc_callerid.cid\ FROM\ cc_callerid\ WHERE\ cc_callerid.cid = ${CALLERID(number)})
;exten => _X.,3,Noop(${resultid})
exten => _X.,3,MYSQL(Fetch fetchid ${resultid} callernumber)
exten => _X.,4,Noop(${callernumber})
exten => _X.,5,MYSQL(Clear ${resultid})
exten => _X.,6,MYSQL(Disconnect ${connid})
exten => _X.,7,GotoIf($[${CALLERID(number)} = ${callernumber}]?8:9)
exten => _X.,8,GoTo(custom-a2billing-cid-callback,${EXTEN},1)
exten => _X.,9,GoTo(custom-a2billing-all-callback,${EXTEN},1)
exten => _X.,10,Noop(${DIALEDPEERNUMBER})
exten => _X.,11,Hangup
Hi Stavros
I got the promblem fixed I was having. With the Dialplan above when caller calls in it will check the cc_callerid.cid and see if thier CID is in the cc_callerid.cid table and if its not they will be routed to the CallB_ACK_all EXT. But if found it will call them back and not prompt for a a pin.
SAM