Goodmorning all of you.
Please sorry for my english he not good because I am french.
Ok, I with freepbx an i need to connect it with a2billing. I’ve try many how to on the web but nothing.
I’ve try to create two extensions and I’ve create one trunk and put the “Custom Dial string” to A2B/$OUTNUM$ after that a i’ve change the archive extensions.conf on the context “macro-dialout-trunk-predial-hook” and I’ve done that:
[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()
After a I’ve change a2billing.php like this:
if($agi->request[‘agi_context’] == “macro-dialout-trunk”) //Nuevo
$A2B->dnid = $the_num;
else
$A2B->dnid = $agi->request[‘agi_dnid’];
// Fin de las modificaciones
But nothing. My phones ring but, don’t pass by a2billing.
Help me please.