similar to: AEL: how to check if variable is defined

Displaying 20 results from an estimated 5000 matches similar to: "AEL: how to check if variable is defined"

2009 Jan 08
4
AEL question: testing channel variables
Hi! I use the following condition: if (${FOOBAR}=YES) { ... } The problem is, that if FOOBAR is not defined at all Asterisk generates a warning: WARNING[11982]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: =YES Of course I could use the following code, but this bloats up the code: if (${EXISTS(${FOOBAR})}) {
2009 Jan 14
8
evaluate SIP response codes in dialplan
Hi! Is it somehow possible to evaluate the SIP response code inside the dialplan? I have an Asterisk server which forwards requests to various PSTN gateways with SIP. If the Dial() attempt is not successful I want to differ at least these 3 options: - called destination is busy (486): e.g. activate auto-redial - called destination does not exist, unassigned number (404) - gateway is broken,
2009 Jan 07
5
recommendation for German sound files
Hi! http://www.voip-info.org/tiki-index.php?page=Asterisk+sound+files+international#German lists a plenty of sound files for German. Can someone recommend one for Asterisk 1.4 (any maybe 1.6 soon). thanks klaus
2009 Mar 05
1
Snom Aler-info Ringtone
Have someone running fine Alert-Info with a Snom 370 ( System Information: Phone Type: snom370-SIP MAC-Address: 0004132661BD IP-Address: 192.168.10.170 Firmware-Version: snom370-SIP 7.3.14 14961) i've tried exten => 200,1,SIPAddHeader(Alert-Info:<http://www.notused.com>\;info=alert-external) exten => 200,n,Dial(SIP/${EXTEN},30) Can see into the phone SIP trace is
2009 Mar 04
5
AEL2: If-then-else not permitted in Switch-Case
I just want to confirm but it seems that if-then-else is not permitted in case structure. It was not really documented but it seems to be the case. Can anyone confirm? switch(${DIALSTATUS}) { case NOANSWER: { // if-then-else not permitted If (${ael-var} = 1) { Playback(beep);
2008 Jun 02
2
ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension!
On starting Asterisk (1.4) I get a whole bunch of WARNING[5858]: pbx_ael.c:4040 ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension! I find it a bit disturbing that this message has a level of WARNING (instead of NOTICE maybe) because the extensions in question are empty on purpose. The only reason they exist are the hints. hint(SIP/3000) 3000 => {}
2008 Dec 02
1
Using Dial M option from extensions.ael
Hi, How can you use Dial application M(x) option from extensions.ael ? (As a reminder, this M(x) executes macro x when Dial called party answers). It seems to me that asterisk keeps looking for this macro in extensions.conf and not in extensions.ael. I tried both (and variations of those with ^ instead of ,) : Dial(Local/${EXTEN:1},,M(mymacro(${EXTEN}));
2009 May 11
1
Support of /* */ comments in ael.vim
Hello, It seems /* */ comments are not supported in ael.vim (which brings AEL syntax-highlighting to vim). Is it hard to add this feature and have uploaded in vim extensions downloading site ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090511/18f33bab/attachment.htm
2008 Dec 23
2
AEL Variable Warning Messages
I have two offices sharing a phone system. They also share a common internal context because all of the employees of the second office also work for the first office. Each office has 4 outside lines and I have defined 2 channel groups in my zapata.conf. The second office needs all of their outgoing calls to go out over their lines so the people they call will have the correct callerID. I
2009 Jul 27
1
INVITE Privacy Information
Hello all, I would like to use Asterisk to add/modify SIP headers in the INVITE message, to include Privacy information, if the INVITE includes a *67 prefix (or another predefined prefix). That's an example of the INVITE I get: /INVITE sip:*6700112233445 at 192.168.1.100 SIP/2.0 From: "123456789"<sip:*123456789*@192.168.1.100>;tag=333333333 To: <sip:*6700112233445 at
2007 Mar 09
2
AEL #include file
Hi, Does anyone know how to include a file in AEL using the #include "filename" syntax in .conf files? Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B
2009 Jan 19
1
how to cancel new recorded message from voicemail menu?
Hi! If a user has recorded a new voicemail message (e.g. unavailable message) then it is prompted with 3 choices. 1. accept recording 2. listen to the recorded message 3. rerecord the message Isn't it possible to cancel the recording? thanks klaus
2009 Jan 26
2
German date format in voicemail emails
Hi! I want to configure voicemail to send emails with the date of the message in German/Austria, that means: "Montag, 26 J?nner 2009" instead of "Monday, 26 January 2009" voicemail.conf refers to "man strftime". This refers to the current locales. So, I tried export LANG=de export LC_ALL=de_DE before starting Asterisk. Unfortunately the date format is still
2009 Jan 08
1
is it possible to store vmsecrets outside of users.conf?
Hi! Currently I provision user account in users.conf. But I do not like that VoiceMail writes to users.conf when the voicemail password is changed. Is there a possibility to store the vmsecret in another place? (another file or DB)? thanks klaus
2008 Oct 19
1
Is there a way to specify the fromdomain from the dialplan?
Is there a way to override the fromdomain specified in the sip.conf and instead set the value from the dialplan? If we use: Set(CALLERID(num)=user at domain.com The SIP From header turns into: user at domain.com@10.10.10.10 We want user at domain.com, and we can't have an entry in sip.conf for every provider. -- Eric Chamberlain
2009 Feb 05
6
Newbie query: how to write priority n+101
Hi All, Asterisk 1.4.12 on CentOS 5 Sorry for a question that I'm guessing is obvious to most of you. I'm trying to revamp my dialplan. When I first created it, I had something like: exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}) exten => s,2,Dial(${rgMain},${RINGTIME},t) exten => s,3,VoiceMail(main at default) exten => s,103,VoiceMail(main at default)
2009 Jul 13
1
#exec in #include'd file
Hi, Is Asterisk supposed to evaluate #exec's in an #include'd file? Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
2009 Jan 08
3
AEL and };
Hi! All the AEL examples have a semicolon after the closing curly bracket, e.g: context test { 1 => Hangup(); }; but without ; it works fine too, e.g: context test { 1 => Hangup(); } So - what is the reason for the ; after the closing curly bracket? thanks klaus
2009 May 24
7
Asterisk, SQL Database Update
Is there any method in Asterisk to enable the updating process into another SQL database through entering IVR options during the call. Thanks a lot. _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
2007 Oct 27
2
Uniden UIP200 phones
I am trying to get distinctive ringing going again with these phones, depending on the outside line the call comes in on. I had a working 1.0.x Asterisk setup using: SetVar(ALERT_INFO=<http://127.0.0.1/Bellcore-dr2>) Which used the short quick rings. In Asterisk 1.4, I have tried several things, but I think the correct syntax is: Set(_ALERT_INFO=<http://127.0.0.1/Bellcore-dr2>) But