Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: soprom on October 12, 2009, 02:47:18 AM

Title: Custom apps in ibay ?
Post by: soprom on October 12, 2009, 02:47:18 AM

I would like a custom app to call php scripts located in an ibay (no internet access) like this:

Code: [Select]
[yapper3]
exten => s,1,AGI(/home/e-mith/files/ibays/yapper/html/checkgroup.php|${GROUP})

In this case, the ibay is controlled by a group named teleyappers. It cannot include user "asterisk" since sme-server does not know about it.

What would be a correct method to have asterisk execute outside its folder /var/lib/asterisk/agi-bin ?
Title: Re: Custom apps in ibay ?
Post by: SARK devs on October 12, 2009, 03:50:10 PM
If you just want to call a program then just go ahead and call it using the Asterisk system command.  It doesn't need to be an agi.  There is an example in the included utilities custom app...

Code: [Select]
;
; send daily CDRs to owner
;
exten => *903*,1,system(/etc/selintra/daycall ${CALLERIDNUM})
exten => *903*,2,GoTo(utilend,1)

It calls a routine (daycall) with the callerid as a parameter.

Best

S
Title: Re: Custom apps in ibay ?
Post by: soprom on October 12, 2009, 09:07:21 PM
On my first try, it complainded the file did not existed.
Now I test again, it works...
 :shock:

Thanks for your time.