I mean the use of all-callback context does not use ALL options
in the agi-confX section. I think when all-callback context has been
called, the script read the file but doest not matter for the some
option and specially for CallerID section ...
I do not understand why CallerID authentication works when calling
a2billing.php|1| (does not callback, of course) and a2billing.php|1|all-callback
always asks for PIN -without modification of a2billing.conf-
Added after 1 hours 52 minutes: I found the solution i perform some tests and it runs well.
Using all-callback the server can perform CallerID authentication
and asks for PIN if CallerID unknown
To do this i change this code is a2billing.php script :
Line 638 :
Change : $callerid = $A2B -> config["callback"]['callerid'];
To : $callerid = $A2B -> CallerID;
Line 730 :
Change : $A2B->agiconfig['cid_enable'] =0;
To : $A2B->agiconfig['cid_enable'] =1;
First, i change line 730 and i see the server try to authenticate 123456
CallerID, i just modify then the CallerID in ALL-CALLBACK section in
order tu use the CallerID from Phone number and not from agi
configuration. I perform tests for billing and both legs bill correctly.
I'happy to find this fine tuning and i hope this helps some other people !