Its almost done....
but now Im failing to authenticate with my Telco's gateway, because the
registration information is in sip.conf:
[my-telco]
type=friend
host=mytelco.com
disallow=all
allow=ulaw
allow=alaw
username=username
fromuser=username
secret=password
and I used to make SIP calls like this:
exten => _XXXXXXXXXXXX,1,Dial(SIP/[EMAIL PROTECTED])
Now, with the code you gave me, Asterisk is consulting Asterisk2Billing:
exten => _XXXXXXXXXXXX,1,Answer
exten => _XXXXXXXXXXXX,2,Wait,2
exten => _XXXXXXXXXXXX,3,DeadAGI,a2billing.php
exten => _XXXXXXXXXXXX,4,Wait,2
exten => _XXXXXXXXXXXX,5,Hangup
but when I place the call, he fails to authenticate with my-telco
:(
How can I use the registration information that is in sip.conf and
continue to use Asterisk2Billing ?
Thanks
Joao Pereira
William Piper wrote:
You need to specify which context to use in the a2billing.conf.
Your extensions.conf should look like this:
exten => _2XXXXXXXX.,1,Answer
exten => _2XXXXXXXX.,2,Wait,2
exten => _2XXXXXXXX.,3,DeadAGI(a2billing.php|2)
exten => _2XXXXXXXX.,4,Wait,2
exten => _2XXXXXXXX.,5,Hangup
Also, check out http://forum.asterisk2billing.org/ for more help.
bp
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joao Pereira
Sent: Tuesday, May 30, 2006 2:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion;
[EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] using a billing system
yes, a2billing.php is in agi-bin:
[EMAIL PROTECTED] 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?
[EMAIL PROTECTED] 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
_______________________________________________
--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
__________ NOD32 1.1443 (20060314) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
_______________________________________________
--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