Hi, I have an application, script.exe, written under mono framework and for execute them in my linux box I must write in console: mono script.exe The problem is that when I call this application in dialplan with command: exten => 500,1,System(mono script.exe) the application not run! Somebody can help me to find the problem? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060316/874efc9e/attachment.htm
Try it with qoutes "mono script.exe" ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nello Gaudino Sent: Thursday, March 16, 2006 2:08 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Problem with System() command. Hi, I have an application, script.exe, written under mono framework and for execute them in my linux box I must write in console: mono script.exe The problem is that when I call this application in dialplan with command: exten => 500,1,System(mono script.exe) the application not run! Somebody can help me to find the problem? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060316/9e4017c3/attachment.htm
Also be aware Asterisk is probably runing in it's own, non-root account. It needs execute access to the program, and you need to specify full path. At least that's what worked for me :-) - dialing 500 on my box does System(/sbin/reboot) ! _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nello Gaudino Sent: Thursday, March 16, 2006 9:08 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Problem with System() command. Hi, I have an application, script.exe, written under mono framework and for execute them in my linux box I must write in console: mono script.exe The problem is that when I call this application in dialplan with command: exten => 500,1,System(mono script.exe) the application not run! Somebody can help me to find the problem? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060316/daca6288/attachment.htm