Hello all,
I installed asterisk 1.2 and a2billing with php5 and psql.... I try make calls over it. In web interface I can managed everything an I thing this is without problems. When I leave in var/lib/asterisk/agi-bin/a2billing.php a line #!usr/bin/php I hear nothing. If I rewrite the line to #!usr/bin/php5 I hear only AUTHENTICATION FAILED and I have gotten messages from
a2billing.php:
Code:
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:[TRY : callingcard_ivr_authenticate]
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:[AUTHENTICATION FAILED (cia_res:-2)]
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:exit
This is my
additional_sip.conf:
Code:
[martin]
type=friend
username=martin
accountcode=martin
callerid=101
amaflags=billing
secret=martin
nat=no
dtmfmode=auto
qualify=yes
canreinvite=yes
disallow=all
allow=g729
allow=ulaw
allow=gsm
host=dynamic
context=a2billing
regseconds=0
cancallforward=yes
extensions.conf:
Code:
[a2billing]
; CallingCard application
exten=>_XXX,1,Answer()
exten=>_XXX,n,Wait,2
exten=>_XXX,n,DeadAGI(a2billing.php|agi-conf1)
exten=>_XXX,n,Wait,2
exten=>_XXX,n,Hangup()
Could you help me with this please?
I have other problem with AGI. In my directory agi-bin I have a few files. Every files are executable. But if i try them I got nothing:
asterisk:/var/lib/asterisk/agi-bin # ./agi-test.agi
this is still running and it never finish.
Could you help me with this also please?
Thank you
Martin