Hi
Here is part of my extensions.conf
exten => 8661231234,1,agi,dtmf.php
When I dial this number, this is what I see in my asterisk console:
-- Accepting AUTHENTICATED call from 198.22.67.70:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (gsm|ilbc|speex),
> priority = mine
-- Executing AGI("IAX2/NuFone@198.22.67.70:4569-2",
"dtmf.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dtmf.php
-- AGI Script dtmf.php completed, returning 0
-- Hungup 'IAX2/NuFone@198.22.67.70:4569-2'
When I dial, this does not do anything, and just disconnects.
But if I dont use the phpagi.php, I am able to run a simple php agi script well.
Wonder what I am doing wrong.
Any help is highly appreciated
Thanks
Hariom
First off.. Just do a: exten => 12345,1,AGI(dtmf)
And try running your php from the console and see if you get debug
issues.
.o-------------------------------------------------------o.
Brian Fertig
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Hariharan
Gopalan
Sent: Tuesday, 24 May, 2005 16:54
To: Asterisk-Users@lists.digium.com
Subject: [Asterisk-Users] PHPAGI problems
Hi
Here is part of my extensions.conf
exten => 8661231234,1,agi,dtmf.php
When I dial this number, this is what I see in my asterisk console:
-- Accepting AUTHENTICATED call from 198.22.67.70:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (gsm|ilbc|speex),
> priority = mine
-- Executing AGI("IAX2/NuFone@198.22.67.70:4569-2",
"dtmf.php") in
new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dtmf.php
-- AGI Script dtmf.php completed, returning 0
-- Hungup 'IAX2/NuFone@198.22.67.70:4569-2'
When I dial, this does not do anything, and just disconnects.
But if I dont use the phpagi.php, I am able to run a simple php agi
script well.
Wonder what I am doing wrong.
Any help is highly appreciated
Thanks
Hariom
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
This email was scanned by: Mcafee GroupShield
Try to run the script from the command line -- it should be hash-banged, so you should be able to run it from the shell. When you run it like that, you should see error messages.> -----Original Message----- > From: Hariharan Gopalan [mailto:hariom100@gmail.com] > Sent: Tuesday, May 24, 2005 3:54 PM > To: Asterisk-Users@lists.digium.com > Subject: [Asterisk-Users] PHPAGI problems > > > Hi > Here is part of my extensions.conf > > exten => 8661231234,1,agi,dtmf.php > > When I dial this number, this is what I see in my asterisk console: > > -- Accepting AUTHENTICATED call from 198.22.67.70: > > requested format = gsm, > > requested prefs = (), > > actual format = gsm, > > host prefs = (gsm|ilbc|speex), > > priority = mine > -- Executing AGI("IAX2/NuFone@198.22.67.70:4569-2", > "dtmf.php") in new stack > -- Launched AGI Script /var/lib/asterisk/agi-bin/dtmf.php > -- AGI Script dtmf.php completed, returning 0 > -- Hungup 'IAX2/NuFone@198.22.67.70:4569-2' > > When I dial, this does not do anything, and just disconnects. > > But if I dont use the phpagi.php, I am able to run a simple > php agi script well. > > Wonder what I am doing wrong. > > Any help is highly appreciated > > Thanks > Hariom > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/aster> isk-users > To > UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users
Try exten => 8661231234,1,agi,/some/directory/dtmf.php Kyle Hariharan Gopalan wrote:>Hi >Here is part of my extensions.conf > >exten => 8661231234,1,agi,dtmf.php > >When I dial this number, this is what I see in my asterisk console: > > -- Accepting AUTHENTICATED call from 198.22.67.70: > > requested format = gsm, > > requested prefs = (), > > actual format = gsm, > > host prefs = (gsm|ilbc|speex), > > priority = mine > -- Executing AGI("IAX2/NuFone@198.22.67.70:4569-2", "dtmf.php") in new stack > -- Launched AGI Script /var/lib/asterisk/agi-bin/dtmf.php > -- AGI Script dtmf.php completed, returning 0 > -- Hungup 'IAX2/NuFone@198.22.67.70:4569-2' > >When I dial, this does not do anything, and just disconnects. > >But if I dont use the phpagi.php, I am able to run a simple php agi script well. > >Wonder what I am doing wrong. > >Any help is highly appreciated > >Thanks >Hariom >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >