search for: execif

Displaying 20 results from an estimated 146 matches for "execif".

2008 Aug 21
2
Changing callerID in a context
Hello, I am trying to alter the outbound callerID for extensions within a context I have created. I wrote the following: exten => _9.,2,ExecIf($[$["${REALCALLERIDNUM}" = "360"] | $["$ {REALCALLERIDNUM}" = "670"]]|Set|CALLERID(num)=581560) exten => _9.,3,ExecIf($[$["${REALCALLERIDNUM}" = "361"] | $["$ {REALCALLERIDNUM}" = "671"]]|Set|CALLERID(num)=581561)...
2013 Dec 06
1
Paging in waves.
...CORDED_FILE}.gsm)} / 1650)]) same => n,Playback(one-moment-please) same => n,Set(MUTEAUDIO(all)=on) same => n,SIPAddHeader(Alert-Info: RingAnswer) same => n,SipAddHeader(Call-Info: <uri>\;answer-after=0) ;same => n,Set(TIMEOUT(absolute)=${DURATION}) same => n,ExecIf($[${ISNULL(${ARG1})}=0]?Page(${ARG1},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG2})}=0]?Page(${ARG2},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG3})}=0]?Page(${ARG3},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG4})}=0]?Page(${ARG4},n(${REC...
2019 Feb 13
6
trouble removing + sign
I'm using BLACKLIST() to check numbers, which does not like leading + signs. I want to test if there is a plus sign, and then remove it. I tried: ; strip leading plus sign same => n, Verbose( callerid 0:1 is ${CALLERID(num):0:1} ) same => n,ExecIf($["${CALLERID(num):0:1}" = "+"]?Set(CALLERID(num) = ${CALLERID(num):1}) same=>n,GotoIf(${BLACKLIST()}?make-em-wait) but it's stripping the first character + sign or not. The callerid is 1203XXYYYY -- Executing [s at hangup-spam:3] Verbose("PJSIP/2667075-0...
2009 Jul 22
3
ExecIf and empty variables (early evaluation)
...> _X!,n,Set(foo=${QUEUE_WAITING_COUNT(${QueueName})})) If ${QueueName} happens to be unset, this will cause a warning: [Jul 22 14:26:17] ERROR[8114]: app_queue.c:5187 queue_function_queuewaitingcount: QUEUE_WAITING_COUNT requires an argument: queuename The obvious solution: exten => _X!,n,ExecIf($["${QueueName}" != ""]?Set(foo=${QUEUE_WAITING_COUNT(${QueueName})})) However, this doesn't actually work! Functions and variables on the right hand side are evaluated BEFORE it is decided whether it needs to be executed at all! This is fairly harmless in this case, in th...
2012 Aug 22
1
recording calls
...== Using SIP RTP CoS mark 5 -- Called SIP/ BVTrunk /7190000000 -- SIP/BVTrunk-00000163 is making progress passing it to SIP/1010-00000162 -- SIP/BVTrunk-00000163 answered SIP/1010-00000162 -- Feature Found: apprecord exten: apprecord -- Executing [s at macro-one-touch-record:1] ExecIf("SIP/1010-00000162", "0?Set(THISEXTEN=71900000000)") in new stack -- Executing [s at macro-one-touch-record:2] ExecIf("SIP/1010-00000162", "1?Set(THISEXTEN=1010)") in new stack -- Executing [s at macro-one-touch-record:3] ExecIf("SIP/1010-0000016...
2016 Sep 01
2
Multiple phones when one is unregistered
On Thu, 1 Sep 2016 11:02:57 +0200 Administrator TOOTAI <admin at tootai.net> wrote: > > [Aug 31 21:52:00] WARNING[-1][C-0001fed5] pbx.c: No application > > 'ExecIf' for extension (unauthenticated, 5555551111, 3) > > > > Is there a module that I need to load? > > > > In case it matters I am running Asterisk 11.23.0 on NetBSD 7.0. > > What's the output of CLI command "core show application ExecIf" ? It looks l...
2010 Sep 15
3
Skip Busy Agents/Channels from Queue
Is there a way skip / ignore the member whose status is busy in the Queue. I have two channel member in queue and i have set the peer limit 2 for these members. I want to skip those member who are currently on the call (answered to calls) and now their status is busy, if Queue see the busy status caller will not enter in the Queue and go to the next priority. [test-queue] strategy = rrmemory
2016 Sep 01
2
Multiple phones when one is unregistered
On Tue, 30 Aug 2016 17:56:35 +0200 Administrator TOOTAI <admin at tootai.net> wrote: > Something like > > exten => 5555551111,1,Verbose(Door buzzer calling) > same => n,Set(toRing=) > same => n,ExecIf($["${DEVICE_STATE(SIP/user1)}" = "NOT IN > USE"]?Set(toRing=${toRing}&SIP/user1) Failed. I checked the online docs and the syntax seems to be correct but I get this: [Aug 31 21:52:00] WARNING[-1][C-0001fed5] pbx.c: No application 'ExecIf' for extension (unauth...
2007 Dec 06
1
Running AGI script if condition met?
...calls. ====== Here's the command-line PHP script: #!/usr/bin/php <?php $fh = fopen('/root/output.txt', 'w'); fwrite($fh, "Received " . $argv[0]); fclose($fh); ?> ====== Here's extensions.conf: exten => 777,1,Set(CALLERIDNUM=1234567890) exten => 777,n,ExecIf($[${LEN(${CALLERIDNUM})} = 10],AGI(/root/dummy.php),${CALLERIDNUM}) ======... and here's the console :-/ -- Executing [777 at my-phones:1] Set("SIP/9001-088aa918", "CALLERIDNUM=1234567890") in new stack -- Executing [777 at my-phones:2] ExecIf("SIP/9001-088aa9...
2020 Apr 21
3
Dialplan - using multiple AND or OR in set is it possible ?
Hello, we want to use something like same = n,ExecIf($["A" = "B"]?Set(C=1) & Set(D=2) & ...) Problem is that result gives C=1) & Set(D=2) & ... Is there a possibility to use multiple AND or OR in such a way ? -- Daniel
2014 Nov 14
0
Asterisk 13 confbridge recordings not working
We upgraded from asterisk 11 to asterisk 13. Recordings were working fine in 11 but nothing is being written on 13. Here is the dialplan segment same => n,ExecIF($["${TL_PHONE_CALL_RECORD}"="TRUE"]?SET(CONFBRIDGE(bridge,record_conference)=yes)) same => n,ExecIF($["${TL_PHONE_CALL_RECORD}"="TRUE"]?SET(CONFBRIDGE(bridge,record_file)=/var/spool/asterisk/confbridge/${TL_PHONE_CALL_ID}.wav)) same => n,ConfBridg...
2020 Feb 13
4
Help with FUNC_MATH
Hi, I have some dialplan code that is trying to convert 12 hour time with AM/PM to 24 hour format. The code has something like this: Exten => 2,1,ExecIf(${MATH(${HOUR_SELECTED}<12)}?Set(HOUR_SELECTED=${MATH(${HOUR_SELECTED}+12,int)})) Earlier on in the dialplan HOUR_SELECTED is set to 12. When they press option 2 they are selecting PM. If the time is from 1PM to 11PM then I want to add 12 to the number (so if it's 1 make it 13 etc.). When I...
2015 Mar 20
3
outbound calls
...ot;) in new stack -- Executing [s at macro-user-callerid:2] Set("SIP/101-00000103", "AMPUSER=101") in new stack -- Executing [s at macro-user-callerid:3] GotoIf("SIP/101-00000103", "0?report") in new stack -- Executing [s at macro-user-callerid:4] ExecIf("SIP/101-00000103", "1?Set(REALCALLERIDNUM=101)") in new stack -- Executing [s at macro-user-callerid:5] Set("SIP/101-00000103", "AMPUSER=101") in new stack -- Executing [s at macro-user-callerid:6] GotoIf("SIP/101-00000103", "0?limit&q...
2017 Feb 24
2
BUG or ???
Got a strange situation [ext-queues] ... exten => h,2,ExecIf($[${CALLERID(num)} = ' ']?Set(var29=${SHELL(curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"Phone\": ${FROMEXTEN}, \"Source\": \"asterisk\"}" " http://sIte.com:80/api/v1/calls?...
2010 Jun 21
1
How to tell if a dropped call is my fault
...SE[21559] logger.c: -- Executing [s at macro-user-callerid:2] GotoIf("SIP/611-b7b9ae38", "0?report") in new stack [Jun 21 08:53:28] DEBUG[21559] app_macro.c: Executed application: GotoIf [Jun 21 08:53:28] VERBOSE[21559] logger.c: -- Executing [s at macro-user-callerid:3] ExecIf("SIP/611-b7b9ae38", "1|Set|REALCALLERIDNUM=611") in new stack [Jun 21 08:53:28] DEBUG[21559] app_macro.c: Executed application: ExecIf [Jun 21 08:53:28] VERBOSE[21559] logger.c: -- Executing [s at macro-user-callerid:4] Set("SIP/611-b7b9ae38", "AMPUSER=611&quo...
2015 Mar 27
0
call between snom 300 and aastra 6731i
...ot;) in new stack -- Executing [s at macro-user-callerid:2] Set("SIP/300-00000192", "AMPUSER=300") in new stack -- Executing [s at macro-user-callerid:3] GotoIf("SIP/300-00000192", "0?report") in new stack -- Executing [s at macro-user-callerid:4] ExecIf("SIP/300-00000192", "1?Set(REALCALLERIDNUM=300)") in new stack -- Executing [s at macro-user-callerid:5] Set("SIP/300-00000192", "AMPUSER=300") in new stack -- Executing [s at macro-user-callerid:6] GotoIf("SIP/300-00000192", "0?limit&q...
2009 Feb 12
1
Problem with parking
...en => s,n,Background(templokun) exten => s,n,WaitExten(4) exten => 1,1,VoiceMail(2550) exten => 2,1,Playback(bakvakt) exten => 2,n,Goto(dialplan-1,${BAKVAKT},1) [macro-ringgroup] exten => s,1,Set(CDR(userfield)=${ARG4}) exten => s,n,Set(CALLERID(name)=${ARG2}) exten => s,n,ExecIf(${DB(${ARG3}/lokad)}?Goto(${ADALNUMER},s,1)) exten => s,n,Dial(${ARG1}) [macro-trunkdial] exten => s,1,Set(CDR(userfield)=${ARG4}) exten => s,n,Set(CALLERID(all)=${CID}) exten => s,n,ExecIf($[${DB(CID/${ARG3})}]?Set(CALLERID(all)=${OCODE}${ARG3})) exten => s,n,ExecIf($[${ARG4} = int...
2015 Mar 20
0
outbound calls
...-- Executing [s at macro-user-callerid:2] Set("SIP/101-00000103", > "AMPUSER=101") in new stack > -- Executing [s at macro-user-callerid:3] GotoIf("SIP/101-00000103", > "0?report") in new stack > -- Executing [s at macro-user-callerid:4] ExecIf("SIP/101-00000103", > "1?Set(REALCALLERIDNUM=101)") in new stack > -- Executing [s at macro-user-callerid:5] Set("SIP/101-00000103", > "AMPUSER=101") in new stack > -- Executing [s at macro-user-callerid:6] GotoIf("SIP/101-00000103&qu...
2015 Mar 27
2
call between snom 300 and aastra 6731i
You would need to give more information really. Your sip.conf file listing the entries for the phones especially which codecs are permitted. A copy of the 'asterisk -rvvv' console output when you make the call. On 27/03/15 17:05, Salaheddine Elharit wrote: > please no body has som with aastra can help me in this issue > > 2015-03-26 11:02 GMT+00:00 Salaheddine Elharit >
2020 Feb 13
2
Help with FUNC_MATH
John, That is correct. I am trying to figure out why Asterisk is executing the set part of the execif, if it's coming back as false. On Thu, Feb 13, 2020 at 2:10 PM John Kiniston <johnkiniston at gmail.com> wrote: > My Apologies Dovid, I think I misunderstood your request. > > You don't have the time you need to convert in the format of date string, > Instead you have...