Hi
I'm a newbie so please forgive me if this is obvious but I cannot seem to find an answer anywhere.
I have a customer set-up in A2Billing (yep, just the one!!). I have an Asterisk server that appears to be working perfectly. I wish for a particular type of call to be charged to the customer.
So, my Asterisk dial plan looks like this:
Code:
exten => _90Z.,n,Set(CALLERID(num)=441123456789)
exten => _90Z.,n,Set(CDR(accountcode)=1234567890)
exten => _90Z.,n,Set(agi_dnid=44${EXTEN:2})
exten => _90Z.,n,Set(agi_extension=44${EXTEN:2})
exten => _90Z.,n,DeadAGI(a2billing.php,1)
I have use_dnid=Yes in agi_conf1
A2Billing attempts to dial the dialled extension instead of the DNID. So I get a message like:
Code:
AGI Script Executing Application: (DIAL) Options: (SIP/provider-out/901987654321,60,HL(0:61000:30000))
What I really want to see is a message like:
Code:
AGI Script Executing Application: (DIAL) Options: (SIP/provider-out/441987654321,60,HL(0:61000:30000))
The 90 should really have been changed to a 44.
Anyway because the number being dialled is not what I had intended, the call fails.
What am I doing wrong? It appears that dispite my best efforts, A2Billing is ignoring DNID in favour of what I can only describe as ${EXTEN}!
Many thanks.