Now I put the folder common in :
/usr/share/asterisk
If I put the command it shows me the exit:
root@ubuntu:~# yes "" | php /usr/share/asterisk/agi-bin/a2billing.php 1
GET VARIABLE IDCONF
ANSWER
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
HANGUP
But when you send the call to a branch, he tells me the output:
Parsing '/etc/asterisk/sip_notify.conf': Found
[Jul 6 12:12:52] NOTICE[2535]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 36309
-- Executing [85344@a2billing:1] Answer("SIP/36309-097a0bf8", "") in new stack
-- Executing [85344@a2billing:2] Wait("SIP/36309-097a0bf8", "2") in new stack
[Jul 6 12:12:53] NOTICE[2535]: chan_sip.c:12669 handle_response_peerpoke: Peer '5529' is now Reachable. (47ms / 2000ms)
-- Executing [85344@a2billing:3] AGI("SIP/36309-097a0bf8", "a2billing.php") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
== Spawn extension (a2billing, 85344, 3) exited non-zero on 'SIP/36309-097a0bf8'
And do not call the local extension.
stavros wrote:
pedromuniz8 wrote:
I tried both ways and not achieve what may be happening?
You could read your PHP log file (or perhaps syslog) to see what errors occurred.