I already installed pcntl but the billing isnt workin.
I followed the Asterisk2Billing wiki and putted this line in the end of
sip.conf:
#include additional_a2billing_sip.conf
but when I dial, Asterisk answers "407 Proxy Authentication Required"
If I do comment the line in sip.conf ( ; #include
additional_a2billing_sip.conf )
some errors appear in the Asterisk CLI:
a2billing.php: [ANSWER CALL]
a2billing.php: Requesting DTMF ::> Len-10
May 30 19:14:51 WARNING[27515]: file.c:475 ast_openstream: File
prepaid-enter-pin-number does not exist in any format
May 30 19:14:51 WARNING[27515]: file.c:787 ast_streamfile: Unable to
open prepaid-enter-pin-number (format gsm): No such file or directory
a2billing.php: RES DTMF : -1
a2billing.php: CARDNUMBER ::> -1
a2billing.php: PREPAID-INVALID-DIGITS
May 30 19:14:51 WARNING[27515]: file.c:475 ast_openstream: File
prepaid-invalid-digits does not exist in any format
a2billing.php: PREPAID-INVALID-DIGITS
a2billing.php: Requesting DTMF ::> Len-10
May 30 19:14:51 WARNING[27515]: file.c:475 ast_openstream: File
prepaid-enter-pin-number does not exist in any format
May 30 19:14:51 WARNING[27515]: file.c:787 ast_streamfile: Unable to
open prepaid-enter-pin-number (format gsm): No such file or directory
a2billing.php: RES DTMF : -1
a2billing.php: CARDNUMBER ::> -1
a2billing.php: PREPAID-INVALID-DIGITS
May 30 19:14:51 WARNING[27515]: file.c:475 ast_openstream: File
prepaid-invalid-digits does not exist in any format
a2billing.php: PREPAID-INVALID-DIGITS
a2billing.php: Requesting DTMF ::> Len-10
May 30 19:14:51 WARNING[27515]: file.c:475 ast_openstream: File
prepaid-enter-pin-number does not exist in any format
May 30 19:14:51 WARNING[27515]: file.c:787 ast_streamfile: Unable to
open prepaid-enter-pin-number (format gsm): No such file or directory
a2billing.php: RES DTMF : -1
a2billing.php: CARDNUMBER ::> -1
a2billing.php: PREPAID-INVALID-DIGITS
-- AGI Script a2billing.php completed, returning 0
I already have voicemail working, so the problem is not in the audio
files reader.
The "prepaid-enter-pin-numbers" and "prepaid-invalid-digits"
are already
in the /var/lib/asterisk/mohmp3/acc_* dirs
Can you give me a help to understand whats the problem?
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@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@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
>>
>>
>>
>>