Koozali.org: home of the SME Server

Custom apps in ibay ?

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Custom apps in ibay ?
« 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 ?
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Custom apps in ibay ?
« Reply #1 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

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Custom apps in ibay ?
« Reply #2 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.
Sophie from Montréal