search for: gosubif

Displaying 20 results from an estimated 41 matches for "gosubif".

Did you mean: gosub
2007 Oct 17
6
parse error in GosubIf
Greetings everyone, today I spent the last part of my day trying to find a parse error inside this snip: http://pastebin.ca/740081 If there's anyone who can shed some light on why my GosubIf condition is throwing a parse error, I'd greatly appreciate your insight. This was really frustrating and is probably a stupid mistake. Regards, -Michael
2007 Nov 09
3
How to get ten-digit number?
...hangs up if the user didn't type the ten digits before the timeout 2) if the user did type the right number of digits, it still hangs up instead of Returning and then jumping forth to the "cid" extension: ======== exten => 777,1,Set(CALLERIDNUM=${CALLERID(num)}) exten => 777,n,GosubIf($[${LEN(${CALLERIDNUM})} != 10 ]?nocid,1:cid,1) ;prompt user for 10-digit #, and Return to GosubIf() exten => nocid,1,Read(CALLERIDNUM,/root/asterisk_sound_files/no_cid,10) exten => nocid,n,Verbose(User typed ${CALLERIDNUM}) ;Why does it hang up instead of jumping back to GosubIf? exten =&gt...
2007 Jun 08
1
call problem...
...uot;SIP/4000-163c", "Returned from dialparties with no extensions to call") in new stack -- Executing NoOp("SIP/4000-163c", "DIALSTATUS is ") in new stack -- Executing Set("SIP/4000-163c", "SV_DIALSTATUS=") in new stack -- Executing GosubIf("SIP/4000-163c", "0?docfu|1") in new stack -- Executing GosubIf("SIP/4000-163c", "0?docfb|1") in new stack -- Executing Set("SIP/4000-163c", "DIALSTATUS=") in new stack -- Executing NoOp("SIP/4000-163c", "Voicema...
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
2012 Feb 01
0
Congestion outbound only with ATA boxes
...e (1:0/1/0) -- Executing [s at macro-dial:8] Set("SIP/302-08221a38", "DIALSTATUS=CONGESTION") in new stack -- Executing [s at macro-exten-vm:10] Set("SIP/302-08221a38", "SV_DIALSTATUS=CONGESTION") in new stack -- Executing [s at macro-exten-vm:11] GosubIf("SIP/302-08221a38", "0?docfu|1") in new stack -- Executing [s at macro-exten-vm:12] GosubIf("SIP/302-08221a38", "0?docfb|1") in new stack -- Executing [s at macro-exten-vm:13] Set("SIP/302-08221a38", "DIALSTATUS=CONGESTION") in new...
2007 Aug 10
2
Dialplan loop
...ten => s,n,Set(TIMEOUT(response)=20) exten => s,n,Set(loop = 0) exten => s,n,GotoIfTime(*|sun|*|*?night) exten => s,n,GotoIfTime(17:00-23:59|mon-fri|*|*?night) exten => s,n,GotoIfTime(12:00-23:59|sat|*|*?night) exten => s,n,GotoIfTime(00:00-07:59|mon-sat|*|*?night) exten => s,n,GosubIf($["${answermode}" = "holiday"]?holiday) exten => s,n,Gosub(day) exten => s,n(night),Background(silence/1) exten => s,n,Background(welcome) exten => s,n,Background(our-business-hours-are) ... exten => s,n,Set(loop = $[${loop} + 1]) exten => s,n,GotoIf(${loop} =...
2010 Jul 30
0
Aastra ignore call button hangs up call instead of going to voicemail
...ging -- Got SIP response 486 "Busy Here" back from 192.168.3.126 -- SIP/111-00001c14 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Executing [s at macro-dial:8] Set("DAHDI/10-1", "DIALSTATUS=BUSY") in new stack -- Executing [s at macro-dial:9] GosubIf("DAHDI/10-1", "1?BUSY,1") in new stack == Spawn extension (macro-dial, s, 10) exited non-zero on 'DAHDI/10-1' in macro 'dial' == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/10-1' in macro 'exten-vm' == Spawn extension (from-di...
2015 Mar 20
3
outbound calls
...-check:22] Goto("SIP/101-00000103", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out at sub-record-check:1] ExecIf("SIP/101-00000103", "1?Set(__REC_POLICY_MODE=always)") in new stack -- Executing [out at sub-record-check:2] GosubIf("SIP/101-00000103", "1?record,1(exten,0149xxxxxx,101)") in new stack -- Executing [record at sub-record-check:1] Set("SIP/101-00000103", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack -- Executing [record at sub-record-check:2] MixMonitor("SIP...
2019 Feb 20
2
branching in extensions.conf?
On Wed, 2019-02-20 at 11:46 -0700, John Kiniston wrote: > Use the IF function to evaluate and change the dial command directly. Thanks for taking the time, but that doesn't actually answer the question I asked. It in fact answers the caveat I specifically mentioned: > Granted the particular above example could probably be better > written to simply modify $ARG2 based on ${SIP}
2015 Mar 27
0
call between snom 300 and aastra 6731i
...-check:22] Goto("SIP/300-00000192", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out at sub-record-check:1] ExecIf("SIP/300-00000192", "1?Set(__REC_POLICY_MODE=always)") in new stack -- Executing [out at sub-record-check:2] GosubIf("SIP/300-00000192", "1?record,1(exten,0176XXXXXX,300)") in new stack -- Executing [record at sub-record-check:1] Set("SIP/300-00000192", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack -- Executing [record at sub-record-check:2] MixMonitor("SIP...
2015 Mar 20
0
outbound calls
.../101-00000103", > "out,1") in new stack > -- Goto (sub-record-check,out,1) > -- Executing [out at sub-record-check:1] ExecIf("SIP/101-00000103", > "1?Set(__REC_POLICY_MODE=always)") in new stack > -- Executing [out at sub-record-check:2] GosubIf("SIP/101-00000103", > "1?record,1(exten,0149xxxxxx,101)") in new stack > -- Executing [record at sub-record-check:1] Set("SIP/101-00000103", > "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack > -- Executing [record at sub-record-check:2]...
2010 Dec 22
8
Possible Bug (Include ${HANGUPCAUSE} in CDR)
Ok I can't get my CDR values to set from the h extension in either 1.6.2 or 1.8 What is wrong? Here is what I found in the cdr.conf ; Normally, CDR's are not closed out until after all extensions are finished ; executing. By enabling this option, the CDR will be ended before executing ; the "h" extension so that CDR values such as "end" and "billsec" may
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 >
2015 Mar 20
0
outbound calls
...out,1") in new stack >>> -- Goto (sub-record-check,out,1) >>> -- Executing [out at sub-record-check:1] ExecIf("SIP/101-00000103", >>> "1?Set(__REC_POLICY_MODE=always)") in new stack >>> -- Executing [out at sub-record-check:2] GosubIf("SIP/101-00000103", >>> "1?record,1(exten,0149xxxxxx,101)") in new stack >>> -- Executing [record at sub-record-check:1] Set("SIP/101-00000103", >>> "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack >>> -- Executing...
2013 Feb 16
1
Dial failed due to trunk reporting BUSY - giving up
Hi this message give me when I calling a number than actually not busy: "Dial failed due to trunk reporting BUSY - giving up" max channel is unlimited and sometimes it dial number ok but most of the time it gives me this error. Please inform me how can solve this problem. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Apr 21
0
Dialplan - using multiple AND or OR in set is it possible ?
...be used to say "do multiple things". I'd suggest two ways of doing what you need: a) invert the test and change the ExecIf() to a GotoIf() which skips past the next few lines, each of which has one of your Set() statements on it. b) leave the logic as it is but change ExecIf() to GosubIf) and put the Set() statements into a subroutine context. Regards, Antony. -- René Descartes walks in to a bar. The barman asks him "Do you want a drink?" Descartes says "I think not," and disappears. Please reply to the...
2020 May 29
1
Notification when on the phone
Hello Le 28/05/2020 à 21:04, C.Maj a écrit : > On 2020-05-28 11:10, Doug Lytle wrote: >>>>> But if you've already got the caller on the phone, then you might consider the CONNECTEDLINE function in Asterisk... >> And that we don't. >> >> It's the third party that would like the notification the the destination phone is currently busy with another
2007 Aug 13
2
How strip +1 from caller id on inbound call
[This email is either empty or too large to be displayed at this time]
2009 Jul 15
0
Queue wrapuptime as Global option
Hello, The call center I manage previously had almost all calls entering a single queue. In order to differentiate the calls to the techs we set the callerid name based on the caller id number offered to us. Basically, it was a gosubif the callerid number matches this, and in the sub we set the callerid name to a certain value. We've been slowly moving some clients into separate queues within queues.conf, for ease of reporting and to differentiate between the level of calls. However, one side effect of this is that it looks...
2009 Dec 07
1
Automon -> Voicemail
Hi all, What's the best method to send automon call recordings (*1) to the voicemail box of the Asterisk user? Do you have to trap hangups, etc, or is there some global variable that can be set? Thanks! S.