Re: [asterisk-users] AGI Script not working

2013-12-02 Thread Gopalakrishnan N
Library is Asterisk Perl library and module DBI. The same script working in
different machine with same Asterisk version and same Perl version. Am able
to see Tx and Rx from script.




On Mon, Dec 2, 2013 at 8:08 AM, Eric Wieling ewiel...@nyigc.com wrote:

 Sounds like you are violating the AGI protocol.   Which Perl AGI library
 are you using?


 -Original Message-
 From: asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] On Behalf Of Gopalakrishnan N
 Sent: Saturday, November 30, 2013 1:27 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [asterisk-users] AGI Script not working

 I have a Perl AGI script updating some values to database like recorded
 file path, unique ID and callerid. When I run the script with test
 dialplan, its not updating to database.

 Whereas database connection is fine, when I run agi debug I see only Tx
 packets not Rx packets, firewall is also OFF.

 Any other specific reason why there is no Rx.

 The same script working in one more Asterisk machine.

 Regards

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] AGI Script not working

2013-12-02 Thread Gopalakrishnan N
Thanks... I got it working actually I found with this command /usr/bin/perl
-d agi file name from this I got to know that my library is missing and
installed Asterisk-perl module and now its fine.

Once again thank you.


On Mon, Dec 2, 2013 at 3:05 PM, Gopalakrishnan N 
gopalakrishnan...@gmail.com wrote:

 Library is Asterisk Perl library and module DBI. The same script working
 in different machine with same Asterisk version and same Perl version. Am
 able to see Tx and Rx from script.




 On Mon, Dec 2, 2013 at 8:08 AM, Eric Wieling ewiel...@nyigc.com wrote:

 Sounds like you are violating the AGI protocol.   Which Perl AGI library
 are you using?


 -Original Message-
 From: asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] On Behalf Of Gopalakrishnan N
 Sent: Saturday, November 30, 2013 1:27 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [asterisk-users] AGI Script not working

 I have a Perl AGI script updating some values to database like recorded
 file path, unique ID and callerid. When I run the script with test
 dialplan, its not updating to database.

 Whereas database connection is fine, when I run agi debug I see only Tx
 packets not Rx packets, firewall is also OFF.

 Any other specific reason why there is no Rx.

 The same script working in one more Asterisk machine.

 Regards

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] AGI Script not working

2013-12-01 Thread Eric Wieling
Sounds like you are violating the AGI protocol.   Which Perl AGI library are 
you using? 


-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gopalakrishnan N
Sent: Saturday, November 30, 2013 1:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] AGI Script not working

I have a Perl AGI script updating some values to database like recorded file 
path, unique ID and callerid. When I run the script with test dialplan, its not 
updating to database.

Whereas database connection is fine, when I run agi debug I see only Tx packets 
not Rx packets, firewall is also OFF. 

Any other specific reason why there is no Rx. 

The same script working in one more Asterisk machine. 

Regards

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] AGI Script not working

2013-11-29 Thread Gopalakrishnan N
I have a Perl AGI script updating some values to database like recorded
file path, unique ID and callerid. When I run the script with test
dialplan, its not updating to database.

Whereas database connection is fine, when I run agi debug I see only Tx
packets not Rx packets, firewall is also OFF.

Any other specific reason why there is no Rx.

The same script working in one more Asterisk machine.

Regards
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Agi script for working hours PBX

2011-06-27 Thread mahesh katta
Hi ,

can you any buddy provide agi script in perl or php for,
only working hours incomming calls forward to his cellno., and after working
hours should be play one playback msg then forward voicemail to his
extension.
working hours(sun - thu, 9:00 to 19:00)

ex: dialplan
exten = 4578901,2,AGI(agi://127.0.0.1:4577/call_log)
exten =
4578901,3,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
exten = 4578901,4,Dial(SIP/5001,30,tTo)
exten = 4578901,5,Set(CALLERID(all)=044578901)
exten = 4578901,6,Dial(Zap/g0/0554721368,,tTo)
exten = 4578901,7,Hangup

Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Agi script for working hours PBX

2011-06-27 Thread Alex Balashov

On 06/27/2011 05:30 AM, mahesh katta wrote:


can you any buddy provide agi script in perl or php for,
only working hours incomming calls forward to his cellno., and after
working hours should be play one playback msg then forward voicemail to
his extension.
working hours(sun - thu, 9:00 to 19:00)


Have you considered using the GotoIfTime() dial plan application?

--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] Agi script for working hours PBX

2011-06-27 Thread Satish Barot
Wasn't that helpful?
http://lists.digium.com/pipermail/asterisk-users/2011-June/264082.html
Use GotoIfTime in agi of your choice with condition part being calculated
dynamically as per your requirement.

But I really don't see any usefulness of AGI if your working hours are fixed
i.e. Mon - Thu, 9:00 to 19:00.
[SATISH]
Mumbai, India.

On Mon, Jun 27, 2011 at 3:00 PM, mahesh katta maheshka...@flexydial.comwrote:

 Hi ,

 can you any buddy provide agi script in perl or php for,
 only working hours incomming calls forward to his cellno., and after
 working hours should be play one playback msg then forward voicemail to his
 extension.
 working hours(sun - thu, 9:00 to 19:00)

 ex: dialplan
 exten = 4578901,2,AGI(agi://127.0.0.1:4577/call_log)
 exten =
 4578901,3,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
 exten = 4578901,4,Dial(SIP/5001,30,tTo)
 exten = 4578901,5,Set(CALLERID(all)=044578901)
 exten = 4578901,6,Dial(Zap/g0/0554721368,,tTo)
 exten = 4578901,7,Hangup

 Best Regards,

 Mahesh Katta
 *BUZZ**WORKS* Business Services Private Limited
 BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
 201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri
 (E) Mumbai 400069
 GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
 Web http://www.buzzworks.com


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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