Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Alex Balashov

When passing arguments to applications you must use parentheses.

Try:

  exten = _X.,3,DeadAGI(a2billing.php)

You can omit parentheses when calling applications with no arguments,  
e.g.


   exten = s,1,Answer

... but not when there are parameters.

--
Sent from mobile device

On Jan 1, 2010, at 7:01 AM, Saeed Akhtar saeedakhtar@gmail.com  
wrote:



hi all,

I have a little problem. I'm trying to configure a2billing  
(asterisk2billing) with asterisk. Everything done successfully but  
when I try to call following error occur
   WARNING[9690]: pbx.c:3170 pbx_extension_helper: No application  
'DeadAGI,a2billing.php' for extension (a2billing, 456,3)
and it hang ups the call. Can someone please tell me why this error  
occuring. My extension.conf script is as following.


[a2billing]
; CallingCard application
exten = _X.,1,Answer
exten = _X.,2,Wait,2
exten = _X.,3,DeadAGI,a2billing.php
exten = _X.,4,Wait,2
exten = _X.,5,Hangup

[did]
; CallingCard application
exten = _X.,1,DeadAGI(a2billing.php|1|did)
while a2billing.php is places in asterisk dir/agi-bin/a2billing.php


Regards,

Saeed Akhtar

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Warren Selby
Also, shouldn't the .php script be located in /var/lib/asterisk/agi-bin?

On Fri, Jan 1, 2010 at 7:31 AM, Alex Balashov abalas...@evaristesys.comwrote:

 When passing arguments to applications you must use parentheses.

 Try:

   exten = _X.,3,DeadAGI(a2billing.php)

 You can omit parentheses when calling applications with no arguments, e.g.

exten = s,1,Answer

 ... but not when there are parameters.

 --
 Sent from mobile device

 On Jan 1, 2010, at 7:01 AM, Saeed Akhtar saeedakhtar@gmail.com
 wrote:

 hi all,

 I have a little problem. I'm trying to configure a2billing
 (asterisk2billing) with asterisk. Everything done successfully but when I
 try to call following error occur
WARNING[9690]: pbx.c:3170 pbx_extension_helper: No application
 'DeadAGI,a2billing.php' for extension (a2billing, 456,3)
 and it hang ups the call. Can someone please tell me why this error
 occuring. My extension.conf script is as following.

 [a2billing]
 ; CallingCard application
 exten = _X.,1,Answer
 exten = _X.,2,Wait,2
 exten = _X.,3,DeadAGI,a2billing.php
 exten = _X.,4,Wait,2
 exten = _X.,5,Hangup

 [did]
 ; CallingCard application
 exten = _X.,1,DeadAGI(a2billing.php|1|did)

 while a2billing.php is places in asterisk dir/agi-bin/a2billing.php


 Regards,

 Saeed Akhtar

  ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Thanks,
--Warren Selby
http://www.selbytech.com
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Alex Balashov
Fact.

On 01/01/2010 01:06 PM, Warren Selby wrote:

 Also, shouldn't the .php script be located in /var/lib/asterisk/agi-bin?

 On Fri, Jan 1, 2010 at 7:31 AM, Alex Balashov abalas...@evaristesys.com
 mailto:abalas...@evaristesys.com wrote:

 When passing arguments to applications you must use parentheses.

 Try:

exten = _X.,3,DeadAGI(a2billing.php)

 You can omit parentheses when calling applications with no
 arguments, e.g.

 exten = s,1,Answer

 ... but not when there are parameters.

 --
 Sent from mobile device

 On Jan 1, 2010, at 7:01 AM, Saeed Akhtar saeedakhtar@gmail.com
 mailto:saeedakhtar@gmail.com wrote:

 hi all,

 I have a little problem. I'm trying to configure a2billing
 (asterisk2billing) with asterisk. Everything done successfully but
 when I try to call following error occur
 WARNING[9690]: pbx.c:3170 pbx_extension_helper: No application
 'DeadAGI,a2billing.php' for extension (a2billing, 456,3)
 and it hang ups the call. Can someone please tell me why this
 error occuring. My extension.conf script is as following.
 [a2billing]
 ; CallingCard application
 exten =  _X.,1,Answer
 exten =  _X.,2,Wait,2
 exten =  _X.,3,DeadAGI,a2billing.php
 exten =  _X.,4,Wait,2
 exten =  _X.,5,Hangup

 [did]
 ; CallingCard application
 exten =  _X.,1,DeadAGI(a2billing.php|1|did)
 while a2billing.php is places in asterisk dir/agi-bin/a2billing.php


 Regards,

 Saeed Akhtar

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
 
 http://lists.digium.com/mailman/listinfo/asterisk-usershttp://lists.digium.com/mailman/listinfo/asterisk-users

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users




 --
 Thanks,
 --Warren Selby
 http://www.selbytech.com



 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Gergo Csibra
Friday, January 1, 2010, 7:12:54 PM, Alex wrote:

 On 01/01/2010 01:06 PM, Warren Selby wrote:

 Also, shouldn't the .php script be located in /var/lib/asterisk/agi-bin?

 Fact.

And on a live channel must use AGI instead of DeadAGI.

And man should not topposting on a maillist...

-- 
Best regards,
 Gergomailto:csi...@gmail.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Shariq Khan
Better to post your problem on Asterisk2Billing Forum
http://forum.asterisk2billing.org/

http://forum.asterisk2billing.org/Warren Selby mentioned right that your
agi is missing.

And dont change DeadAGI and ignore this error, as the script is still not
updated to use AGI for local channels.

Shariq Khan

On Fri, Jan 1, 2010 at 11:41 PM, Gergo Csibra csi...@gmail.com wrote:

 Friday, January 1, 2010, 7:12:54 PM, Alex wrote:

  On 01/01/2010 01:06 PM, Warren Selby wrote:

  Also, shouldn't the .php script be located in
 /var/lib/asterisk/agi-bin?

  Fact.

 And on a live channel must use AGI instead of DeadAGI.

 And man should not topposting on a maillist...

 --
 Best regards,
  Gergomailto:csi...@gmail.com


 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PBX Extension Help

2010-01-01 Thread Steve Edwards
Un-top-posting...

 On 01/01/2010 01:06 PM, Warren Selby wrote:

 Also, shouldn't the .php script be located in 
 /var/lib/asterisk/agi-bin?

On Fri, 1 Jan 2010, Alex Balashov wrote:

 Fact.

To be more specific, unless the full path (starts with a slash) is 
specified, the specified path is relative to the value of astagidir set in 
asterisk.conf.

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users