search for: systemstatus

Displaying 14 results from an estimated 14 matches for "systemstatus".

2010 Jul 12
0
Inconsistent Behavior in SYSTEMSTATUS After System() Call
...treme_Overflow_Local_Check] exten => s,1,Verbose(EXTENSION is: ${EXTEN}) exten => s,n,Verbose(DAVEDNIS is: ${DAVEDNIS}) exten => s,n,Set(OVERFLOW_PATH=/opt/FIVR/Overflow_Sounds/) exten => s,n,System(test -e ${OVERFLOW_PATH}${DAVEDNIS}.*) exten => s,n,Verbose(System call result was: ${SYSTEMSTATUS}) exten => s,n,ExecIf($[${SYSTEMSTATUS} = SUCCESS]?Playback(${OVERFLOW_PATH}${DAVEDNIS})) exten => s,n,ExecIf($[${SYSTEMSTATUS} = SUCCESS]?HangUp()) exten => s,n,Goto(FrontEnd_ASL_English,s,1) exten => h,1,HangUp We have a series of contexts that ultimately lead to this one (all of wh...
2007 Nov 21
1
[1.4 - Record] How to tell if user did leave a msg?
...xten => _[1-4],n,Set(CALLTIME=${STRFTIME(${EPOCH},,%d-%b-%Y-%Hh%M)}) ;check if left message : if nothing, script ends there! exten => _[1-4],n,Record(/tmp/${CALLTIME}.wav,3,30) exten => _[1-4],n,TrySystem(mv /tmp/${CALLTIME}.wav /srv/www/lighttpd/asterisk) exten => _[1-4],n,ExecIf($[${SYSTEMSTATUS}!= SUCCESS],Verbose,Failed moving WAV file) exten => _[1-4],n,TrySystem(/root/asterisk/send_call_notification.py "${CALLERIDNAME}" ${CALLERIDNUM} ${SOFTWARE} ${CALLTIME}.wav) exten => _[1-4],n,ExecIf($[${SYSTEMSTATUS} != SUCCESS],Verbose,Error sending e-mail) exten => _[1-4],n,...
2005 Sep 26
1
system() app changed drastically! How do I use it now?
...raced this to the System application completely changing the way it deals with success or failure of the program it calls. Previously, if the PIN was completely bogus, we exited with -1, which caused asterisk to jump to priority n + 101 and we told the caller to take a hike. Now, instead it sets $SYSTEMSTATUS to either "SUCCESS" or "FAILURE". But since (as far as I know, without using AEL) there is no conditional branching based on a variable, how am I supposed to use this? I'd appreciate any ideas. Thank you. Here's an example of our one-time PIN setup. exten => s,1,...
2005 Sep 26
0
system() app changed drastically! How do I useit now?
It would be prudent the test for success and continue rather than failure and drop. For example: exten => s,5,GotoIf($["${SYSTEMSTATUS}" != "SUCCESS"]?105:6) That way only the result that you know is good, Will continue a call.. > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Jim Gottlieb > Sent: Mond...
2010 Apr 08
3
long return times from System() calls with 1.6.2.6?
...booted, and the problem did not go away. I'm doing really, really innocent things, like: exten => s,1,Verbose(EXTENSION is: ${EXTEN}) exten => s,n,Set(MESSAGE_PATH=/path/to/message/) exten => s,n,System(test -e ${MESSAGE_PATH}${EXTEN}) exten => s,n,Verbose(System call result was ${SYSTEMSTATUS}) exten => s,n,ExecIf($[${SYSTEMSTATUS} = SUCCESS]?Playback(${OVERFLOW_GENERIC})) exten => s,n,ExecIf($[${SYSTEMSTATUS} = SUCCESS]?HangUp()) exten => s,n,Goto(Next_context,s,1) That runs lightning-fast on every system, but not on this one. There is a huge pause, like two seconds, waiting...
2006 Dec 22
2
System Application with java
...when I use the system() command in my extensions.conf it isn?t work, just a small file my-sd.wav is created. Here my extensions.conf configuration ;testing text2wav exten => 666,1,Answer exten => 666,2,system(/root/example2.sh >> /root/log.txt ) exten => 666,3,system(echo "${SYSTEMSTATUS}" >> /root/log.txt) exten => 666,4,wait(10) exten => 666,5,Playback(my-sd) exten => 666,6,Hangup And here the logging by Asterisk.. Connected to Asterisk 1.2.13 currently running on fedora (pid = 1951) Verbosity is at least 3 -- Remote UNIX connection -- Executing Answ...
2009 May 22
1
VOICEMAIL : I've tried a lot but mailing through Asterisk is just not working...
...asterisk/agi-bin/mail2.sh mutt -s "$1" -a "$2" jonas.kellens at telenet.be < /dev/null and this in my dialplan : exten => 3000,1,NoOp(test mailscript) exten => 3000,n,System(/var/lib/asterisk/agi-bin/mail2.sh test-email /etc/asterisk/iax.conf) exten => 3000,n,NoOp(systemstatus : ${SYSTEMSTATUS}) But this does not work according to the output on the CLI : -- Executing [3000 at TCS-personeel-zoiper:1] NoOp("IAX2/jonaskellens-10491", "test mailscript") in new stack -- Executing [3000 at TCS-personeel-zoiper:2] System("IAX2/jonaskellens-10...
2005 Sep 26
0
system() app changed drastically! How do I use itnow?
Try the following: exten => s,1,Answer exten => s,2,Wait(1) exten => s,3,Read(PIN,87) exten => s,4,System(/usr/local/bin/pin -c ${PIN}) ; check it exten => s,5,System(/usr/local/bin/pin -d ${PIN}) ; delete it Exten => s,6,GotoIf($[${SYSTEMSTATUS} = FAILURE]?105:7) exten => s,7,SetAccount(${PIN}) exten => s,8,Newt,pinout-config ; connect them exten => s,105,Playback(5021) ; tell them their PIN is invalid > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lis...
2010 Jun 15
1
Voicemail vm-intro played even when temp greeting is setup
Hi there, I am configuring a small voicemail server and I am facing the following problem. Executing this command: exten => 1234,1,VoiceMail(${NUMBER}@test) When a user does not have a customized temporary greeting vm-intro message is played asking for the message to the user but when the user has already a temporary greeting both the temporary greeting and vm-intro are played. Basically
2010 Aug 09
2
'System' application in asterisk
Hello, Is there any way to capture the output of the 'System' application in asterisk dialplan and evaluate it. For example, i would like to get the output of following System application and use its value in next line for decision making exten => 5000,n,System(command) -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Jun 17
1
block certain numbers
Hi. i would like to manually create a list of numbers to block. these numbers are from spammers (advertizers). is there an easy way to send these particular numbers to busy or even drop the call? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130617/aa95ba36/attachment.htm>
2007 Nov 10
2
Record() : How to get filename created with %d?
...t; _[1-4],n,Playback(/root/asterisk_sound_files/leave_msg) exten => _[1-4],n,Record(/tmp/msg%d.wav,3,30) ;move wav to lighttpd's htdocs ;How to get filename? exten => _[1-4],n,TrySystem(mv /tmp/msg%d.wav /var/www/asterisk/) ;ExecIf fails running Verbose() exten => _[1-4],n,ExecIf($[ ${SYSTEMSTATUS} != "SUCCESS" ],Verbose,Failed moving WAV file) exten => _[1-4],n,Playback(/root/asterisk_sound_files/bye_bye) exten => _[1-4],n,Hangup() =========== Any idea? Thank you.
2013 Jun 19
6
Mailing a fax with mutt does not succeed
Hello everyone, I'm trying to send a received fax with mutt, when I try it from the Linux shel it works, but when trying with Asterisk's System command it doesn't. Successful Linux command: echo | mutt -s "New fax" earohuanca at gmail.com -a /tmp/faxes/201306191111.tif Unsuccessful Asterisk Command: same => n,System(mutt -s "New fax" elder.arohuanca at
2015 Apr 08
1
Help debugging a possible SIP channel leak in 11.17.0, possible race condition
Have you tried Asterisk 13? The bridging mechanism has been completely rewritten on Asterisk 12, so there's no longer channel masquerading and zombie channels. Might be worth a try. 2015-04-07 20:33 GMT-03:00 Alex Villac??s Lasso <a_villacis at palosanto.com>: > El 07/04/15 a las 17:38, Alex Villac??s Lasso escribi?: > > I am trying to collect enough information about an