RE: [Asterisk-Users] AGI Pascal

2004-06-01 Thread Andy Powell

On 28/05/2004 at 19:58 usedcanon wrote:

Hi Andy,

I am most certainly interested. If you have some example code using a DB
(MySQL maybe) that would be extremelly helpful.

BTW, I am new to fpc(Turbo pascal, Delphi and now Kylix), does it have a
linux command line IDE like the DOS version

Thanks for your help

Umar


Sorry umar,

I missed your reply in the influx of messages...just spotted it...I'll tar it up
and put it on my site. I've also got an example which connects to a mysql
db (which I'll include)

Yes there is an ide for linux... but e..


Andy


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] AGI Pascal

2004-06-01 Thread Umar Sear
Hi Andy, 

Once again thanks. This should make things a lot
easier for me. I am greatful.

btw what is the command line to execute the freepascal
ide, also do you have any other recomendations.

Thanks

Umar.

 --- Andy Powell [EMAIL PROTECTED] wrote:
 
 On 28/05/2004 at 19:58 usedcanon wrote:
 
 Hi Andy,
 
 I am most certainly interested. If you have some
 example code using a DB
 (MySQL maybe) that would be extremelly helpful.
 
 BTW, I am new to fpc(Turbo pascal, Delphi and now
 Kylix), does it have a
 linux command line IDE like the DOS version
 
 Thanks for your help
 
 Umar
 
 
 Sorry umar,
 
 I missed your reply in the influx of messages...just
 spotted it...I'll tar it up
 and put it on my site. I've also got an example
 which connects to a mysql
 db (which I'll include)
 
 Yes there is an ide for linux... but e..
 
 
 Andy
 
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]

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






Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] AGI Pascal

2004-06-01 Thread Andy Powell

On 01/06/2004 at 11:00 Umar Sear wrote:

Hi Andy,

Once again thanks. This should make things a lot
easier for me. I am greatful.

btw what is the command line to execute the freepascal
ide, also do you have any other recomendations.

Thanks

Umar.


No problem, I hope it comes in handy :D

I don't actually use the IDE myself, I stick to vi and just use the command line for 
fpc compiles...


It's worth noting that you can't compile the IDE yourself, it relies on Borland libs - 
which is annoying

try this one:

ftp://ftp.freepascal.org/pub/fpc/snapshot/linux/fp.gz

http://www.freepascal.org/onechap.pdf

It's not that regularly updated.. but should work


HTH

Andy


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AGI Pascal

2004-05-28 Thread Peter Corlett
usedcanon [EMAIL PROTECTED] wrote:
 Thanks, suddenly makes sense now. I guessed that is the case however
 was not sure. Any opinion on what is more/most efficient, using a
 scripting language like perl or a compile app in C/pascal.

Define efficient.

A C program would normally be expected to be about ten times faster
than a Perl script. But when it's 10ms to execute instead of 100ms, it
probably doesn't matter.

If your time is not free, it may be more efficient to write a quick
script in Perl and buy a faster server than it is to spend ages
writing in C.

Either way, if you're spending anything bit a trivial amount of CPU
time executing AGI scripts (whatever the language), you've probably
misdesigned something. So the ultimate answer is that AGI scripts
should be written in whatever language you're most comfortable doing
them in.

-- 
Vice is its own reward. It is virtue which, if it is to be marketed with
consumer appeal, must carry Green Shield stamps.
- Quentin Crisp
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AGI Pascal

2004-05-28 Thread Umar Sear
hi Peter, 

Your feedback is greatly appreciated. Having not done
any AGI before I was not sure what to expect. My
requirements are very basic at the moment, and time as
you say is money. my best option is to find something
simmillar and customise it to my needs.

Umar.
 --- Peter Corlett [EMAIL PROTECTED] wrote: 
usedcanon [EMAIL PROTECTED] wrote:
  Thanks, suddenly makes sense now. I guessed that
 is the case however
  was not sure. Any opinion on what is more/most
 efficient, using a
  scripting language like perl or a compile app in
 C/pascal.
 
 Define efficient.
 
 A C program would normally be expected to be about
 ten times faster
 than a Perl script. But when it's 10ms to execute
 instead of 100ms, it
 probably doesn't matter.
 
 If your time is not free, it may be more efficient
 to write a quick
 script in Perl and buy a faster server than it is to
 spend ages
 writing in C.
 
 Either way, if you're spending anything bit a
 trivial amount of CPU
 time executing AGI scripts (whatever the language),
 you've probably
 misdesigned something. So the ultimate answer is
 that AGI scripts
 should be written in whatever language you're most
 comfortable doing
 them in.
 
 -- 
 Vice is its own reward. It is virtue which, if it is
 to be marketed with
 consumer appeal, must carry Green Shield stamps.
   - Quentin Crisp
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]

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






Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AGI Pascal

2004-05-28 Thread Andy Powell

On 27/05/2004 at 22:32 usedcanon wrote:

Hi,
Has anyone done any AGI scripting in pascal. I would appreciate help anyone
can offer. My understandin on AGI scripting is very flaky, I am assuming
whatever language is used the application needs to be compile and made
executable. So if I write a script in pascal, I would compile it with
something like freepascal and make it executable.

Thanks

Umar Sear

If you are still interested, I've done an FPC unit for AGI... it's freely available,...


Andy


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] AGI Pascal

2004-05-28 Thread usedcanon
Hi Andy,

I am most certainly interested. If you have some example code using a DB
(MySQL maybe) that would be extremelly helpful.

BTW, I am new to fpc(Turbo pascal, Delphi and now Kylix), does it have a
linux command line IDE like the DOS version

Thanks for your help

Umar

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andy Powell
Sent: 28 May 2004 19:32
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] AGI Pascal



On 27/05/2004 at 22:32 usedcanon wrote:

Hi,
Has anyone done any AGI scripting in pascal. I would appreciate help anyone
can offer. My understandin on AGI scripting is very flaky, I am assuming
whatever language is used the application needs to be compile and made
executable. So if I write a script in pascal, I would compile it with
something like freepascal and make it executable.

Thanks

Umar Sear

If you are still interested, I've done an FPC unit for AGI... it's freely
available,...


Andy


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] AGI Pascal

2004-05-27 Thread usedcanon
Hi Matteo,

Thanks, suddenly makes sense now. I guessed that is the case however was not
sure. Any opinion on what is more/most efficient, using a scripting language
like perl or a compile app in C/pascal.

What I am looking to do is some database access with in the script to rate a
call and set an absolute time out (sort of a prepaid application, but basic
with no prompts)

Thanks

Umar

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brancaleoni
Matteo
Sent: 27 May 2004 23:18
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] AGI Pascal


Hi

Il gio, 2004-05-27 alle 23:32, usedcanon ha scritto:
 Hi,
 Has anyone done any AGI scripting in pascal. I would appreciate help
anyone
 can offer. My understandin on AGI scripting is very flaky, I am assuming
 whatever language is used the application needs to be compile and made
 executable.

wrong wrong wrong
AGI is just an external application, written in whatever
language you want. if the language needs to be compiled
like C, pascal, whatever... yes, must be compiled to
make it work.
but you are free to use scripting languages that doesn't
need to be compiled... like php,perl,bash scripting,ruby,
whatever
AGI speaks with the app with stdout/stdin/stderr ...
so anything that supports this IO can be used :)

Matteo

--
Brancaleoni Matteo [EMAIL PROTECTED]
Espia - Emmegi Srl

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users