[Asterisk-Users] using a billing system

Joao Pereira joao.pereira at fccn.pt
Tue May 30 12:22:34 MST 2006


I think Asterisk2Billing is trying to play some audio file to make the 
callers put a PIN number.
But can I use it without the PIN, and configure Asterisk2billing to 
check the database to see if the user exists?
Thanks
Joao Pereira


Vahan Yerkanian wrote:

> Greetings,
>
> pcntl is a required module for a2billing. It is vital for ensuring the 
> call is registered if it's terminated/hungup not by normal needs.
>
> What is the output from when you execute 
> /var/lib/asterisk/agi-bin/a2billing.php?
>
> If it's saying not found, then you need to edit the php binary 
> location in the 1st line of it. Otherwise, pressing enter continuously 
> after running the a2billing.php from command line should start giving 
> you the debug info.
>
> HTH,
> Vahan
>
> Joao Pereira wrote:
>
>> yes, a2billing.php is in agi-bin:
>>
>> [root at asterisk]# locate a2billing.php
>> /usr/src/a2billing/Chameleon/A2Billing_AGI/a2billing.php
>> /var/lib/asterisk/agi-bin/a2billing.php
>>
>> Could be because of the missing pcntl php extension?
>>
>> [root at asterisk]# rpm -qa | grep php
>> php-mysql-4.3.9-3
>> php-ldap-4.3.9-3
>> php-odbc-4.3.9-3
>> php-pgsql-4.3.9-3
>> php-4.3.9-3
>> php-pear-4.3.9-3
>>
>>
>> Thanks
>> Joao Pereira
>>
>>
>>
>> Vahan Yerkanian wrote:
>>
>>>>     exten => _2XXXXXXXX,1,Answer
>>>>     exten => _2XXXXXXXX,2,Wait,2
>>>>     exten => _2XXXXXXXX,3,DeadAGI, a2billing.php
>>>>     exten => _2XXXXXXXX,4,Wait,2
>>>>     exten => _2XXXXXXXX,5,Hangup
>>>>
>>>>     I tried it and the call is answered bu Asterisk and never dials 
>>>> the
>>>>     destination. :(
>>>
>>>
>>>
>>> Yes that's the correct way to launch A2B script. Are you 
>>> a2billing.php is in your agi-bin directory? Also, you can see if the 
>>> script runs without error by executing it from shell(you'll need php 
>>> cli compiled and installed) and keep pressing enter key to see the 
>>> script output.
>>>
>>> Perhaps you have your php binary in the wrong path or a missing php 
>>> extension. Make sure you have pcntl php extension installed too.
>>>
>>> HTH,
>>> Vahan
>>>
>>> _______________________________________________
>>> --Bandwidth and Colocation provided by Easynews.com --
>>>
>>> Asterisk-Users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>
>>




More information about the asterisk-users mailing list