i didn't want to post it in the script and provisioning because I'm probably doing something wrong
i trying to setup operator managed route i have setup 2 dids one is (with a all hours time based route) going to the feature code tl-set-day-night-mode and one is going to a operator manged route with three options day, night and temporary all running different scripts and im changing the mode trough calling in and it always running the first script not the one i choose trough call- in what em i doing wrong
thanks
i did set a inbound route
i did set a inbound route with options any, day, night, and temp each to run a different script, i tried to set it trough tl-set-day-night-mode but it is not changing the script, it always runs with top of the list of the web portal script , not what i select by tl-set-day-night-mode
em i missing something
cannot figure it out
Yes now any is on top of the
Yes now any is on top of the list, actually I tried to put temp on top also day once and the same results I will try in the morning to start over, I hope to figure it out
In general is it set that the higher on the list overrights the lower (as in time based handler) or tl-day-night-mode is the only overright
Btw what is any if I cannot choose it in a call in menu
Does it change back to any without a call-in when a schedule changes?
A little more inside would be a great help
thanks Erik
any is a catch-all, it
any is a catch-all, it doesnt match so it should always be at the bottom of the list..
1. condition 1 is true?
2. condition 2 is true?
3. condition 3 is true?
4. screw it, just go to blah blah blah
i just set it to 1 temp >
i just set it to
1 temp > feature code check VM
2 Day > IVR > open
3 Night > IVE > close
4 Any > feature code semple MOH
than i tried to set it to day or night it always goes to temtp to check VM which is on top of the list and if i change day on top or night that's where it is routing to not hopw i set it on tl- set-daynight
hare is the CLI of the tl- set-daynight and the operator managed route
-- Executing [+13478756666@from-outside-+1347xxxxxx6-tl-allhours-718xxxxxxx:5] SetMusicOnHold("SIP/MTE1-b750b2b0", "default-718xxxxxxx") in new stack
-- Executing [+134xxxxxx6@from-outside-+1347xxxxxx6-tl-allhours-718xxxxxxx:6] Macro("SIP/MTE1-b750b2b0", "tl-goto-featurextension|604|") in new stack
-- Executing [s@macro-tl-goto-featurextension:1] Set("SIP/MTE1-b750b2b0", "CALLERID(name)=718xxxxxxx") in new stack
-- Executing [s@macro-tl-goto-featurextension:2] Goto("SIP/MTE1-b750b2b0", "feature-extensions-718xxxxxxx|604|1") in new stack
-- Goto (feature-extensions-718xxxxxxx,604,1)
== Channel 'SIP/MTE1-b750b2b0' jumping out of macro 'tl-goto-featurextension'
-- Executing [604@feature-extensions-718xxxxxxx:1] Macro("SIP/MTE1-b750b2b0", "tl-set-daynight|12345") in new stack
-- Executing [s@macro-tl-set-daynight:1] Answer("SIP/MTE1-b750b2b0", "") in new stack
-- Executing [s@macro-tl-set-daynight:2] Authenticate("SIP/MTE1-b750b2b0", "12345") in new stack
-- Playing 'agent-pass' (language 'en')
-- Playing 'auth-thankyou' (language 'en')
-- Executing [s@macro-tl-set-daynight:3] Playback("SIP/MTE1-b750b2b0", "tl/welcome-mode-menu") in new stack
-- Playing 'tl/welcome-mode-menu' (language 'en')
-- Executing [s@macro-tl-set-daynight:4] Playback("SIP/MTE1-b750b2b0", "tl/after-tone-choose") in new stack
-- Playing 'tl/after-tone-choose' (language 'en')
-- Executing [s@macro-tl-set-daynight:5] Playback("SIP/MTE1-b750b2b0", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:6] Playback("SIP/MTE1-b750b2b0", "tl/day-mode") in new stack
-- Playing 'tl/day-mode' (language 'en')
-- Executing [s@macro-tl-set-daynight:7] Playback("SIP/MTE1-b750b2b0", "press-1") in new stack
-- Playing 'press-1' (language 'en')
-- Executing [s@macro-tl-set-daynight:8] Playback("SIP/MTE1-b750b2b0", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:9] Playback("SIP/MTE1-b750b2b0", "tl/night-mode") in new stack
-- Playing 'tl/night-mode' (language 'en')
-- Executing [s@macro-tl-set-daynight:10] Playback("SIP/MTE1-b750b2b0", "press-2") in new stack
-- Playing 'press-2' (language 'en')
-- Executing [s@macro-tl-set-daynight:11] Playback("SIP/MTE1-b750b2b0", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:12] Playback("SIP/MTE1-b750b2b0", "tl/temp-mode") in new stack
-- Playing 'tl/temp-mode' (language 'en')
-- Executing [s@macro-tl-set-daynight:13] Playback("SIP/MTE1-b750b2b0", "press-3") in new stack
-- Playing 'press-3' (language 'en')
-- Executing [s@macro-tl-set-daynight:14] Read("SIP/MTE1-b750b2b0", "MODE|beep|1|||7") in new stack
-- Accepting a maximum of 1 digits.
-- Playing 'beep' (language 'en')
-- User entered '1'
-- Executing [s@macro-tl-set-daynight:15] GotoIf("SIP/MTE1-b750b2b0", "1?1|1") in new stack
-- Goto (macro-tl-set-daynight,1,1)
-- Executing [1@macro-tl-set-daynight:1] Set("SIP/MTE1-b750b2b0", "DB(TL/TENANT/718xxxxxxx/officemode)="day"") in new stack
-- Executing [1@macro-tl-set-daynight:2] Playback("SIP/MTE1-b750b2b0", "system") in new stack
-- Playing 'system' (language 'en')
-- Executing [1@macro-tl-set-daynight:3] Playback("SIP/MTE1-b750b2b0", "has-been-set-to") in new stack
-- Playing 'has-been-set-to' (language 'en')
-- Executing [1@macro-tl-set-daynight:4] Playback("SIP/MTE1-b750b2b0", "tl/day-mode") in new stack
-- Playing 'tl/day-mode' (language 'en')
-- Executing [1@macro-tl-set-daynight:5] Wait("SIP/MTE1-b750b2b0", "1") in new stack
-- Executing [1@macro-tl-set-daynight:6] Playback("SIP/MTE1-b750b2b0", "goodbye") in new stack
-- Playing 'goodbye' (language 'en')
-- Executing [1@macro-tl-set-daynight:7] Hangup("SIP/MTE1-b750b2b0", "") in new stack
== Spawn extension (macro-tl-set-daynight, 1, 7) exited non-zero on 'SIP/MTE1-b750b2b0' in macro 'tl-set-daynight'
== Spawn extension (feature-extensions-718xxxxxxx, 604, 1) exited non-zero on 'SIP/MTE1-b750b2b0'
-- Executing [+1347xxxxxx5@from-outside:1] Wait("SIP/MTE1-b750b2b0", "1") in new stack
-- Executing [+1347xxxxxx5@from-outside:2] Set("SIP/MTE1-b750b2b0", "__INCOMINGCLI=718xxxxxxx") in new stack
-- Executing [+1347xxxxxx5@from-outside:3] Goto("SIP/MTE1-b750b2b0", "from-outside-redir|+1347xxxxxx5|1") in new stack
-- Goto (from-outside-redir,+1347xxxxxx5,1)
-- Executing [+1347xxxxxx5@from-outside-redir:1] Set("SIP/MTE1-b750b2b0", "DIALED_PUBLIC_NUMBER=+13478756665") in new stack
-- Executing [+1347xxxxxx5@from-outside-redir:2] Set("SIP/MTE1-b750b2b0", "DIALED_NUMBER=+1347xxxxxx5") in new stack
-- Executing [+1347xxxxxx5@from-outside-redir:3] Set("SIP/MTE1-b750b2b0", "status=1") in new stack
-- Executing [+1347xxxxxx5@from-outside-redir:4] GotoIf("SIP/MTE1-b750b2b0", "1?7") in new stack
-- Goto (from-outside-redir,+1347xxxxxx5,7)
[Jul 13 10:49:45] NOTICE[2752]: pbx.c:1643 pbx_substitute_variables_helper_full: Error in extension logic (missing '}')
-- Executing [+1347xxxxxx5@from-outside-redir:7] GotoIf("SIP/MTE1-b750b2b0", "day?from-outside-+1347xxxxxx5-temp|+1347xxxxxx5|1") in new stack
-- Goto (from-outside-+1347xxxxxx5-temp,+1347xxxxxx5,1)
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:1] Set("SIP/MTE1-b750b2b0", "__tenant=7186401550") in new stack
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:2] Set("SIP/MTE1-b750b2b0", "CDR(userfield)=7186401550") in new stack
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:3] Set("SIP/MTE1-b750b2b0", "MOH=default-7186401550") in new stack
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:4] GotoIf("SIP/MTE1-b750b2b0", "0?nomoh") in new stack
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:5] SetMusicOnHold("SIP/MTE1-b750b2b0", "default-7186401550") in new stack
-- Executing [+13478756665@from-outside-+1347xxxxxx5-temp:6] Macro("SIP/MTE1-b750b2b0", "tl-check-voicemail") in new stack
-- Executing [s@macro-tl-check-voicemail:1] Answer("SIP/MTE1-b750b2b0", "") in new stack
-- Executing [s@macro-tl-check-voicemail:2] Wait("SIP/MTE1-b750b2b0", "1") in new stack
-- Executing [s@macro-tl-check-voicemail:3] GotoIf("SIP/MTE1-b750b2b0", "0?channel") in new stack
-- Executing [s@macro-tl-check-voicemail:4] VoiceMailMain("SIP/MTE1-b750b2b0", "478756665@default-718xxxxxxx") in new stack
-- Playing 'vm-login' (language 'en')
-- Playing 'vm-password' (language 'en')
this matched 'temp'
this matched 'temp'
GotoIf("SIP/MTE1-b750b2b0", "day?from-outside-+1347xxxxxx5-temp|+1347xxxxxx5|1") in new stack
that day mode is set but
that day mode is set but when you call in the temp is running since it is on top of the list if i will change and put day on top it will run day no metter what i choose in tl-set-daynight
this is the cli from that tl-set-daynight
-- Executing [s@macro-tl-set-daynight:3] Playback("SIP/MTE1-b753d338", "tl/welcome-mode-menu") in new stack
-- Playing 'tl/welcome-mode-menu' (language 'en')
-- Executing [s@macro-tl-set-daynight:4] Playback("SIP/MTE1-b753d338", "tl/after-tone-choose") in new stack
-- Playing 'tl/after-tone-choose' (language 'en')
-- Executing [s@macro-tl-set-daynight:5] Playback("SIP/MTE1-b753d338", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:6] Playback("SIP/MTE1-b753d338", "tl/day-mode") in new stack
-- Playing 'tl/day-mode' (language 'en')
-- SIP/MTE1-083e3be0 answered SIP/1555-7186401550-b750b118
-- Executing [s@macro-tl-set-daynight:7] Playback("SIP/MTE1-b753d338", "press-1") in new stack
-- Playing 'press-1' (language 'en')
-- Executing [s@macro-tl-set-daynight:8] Playback("SIP/MTE1-b753d338", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:9] Playback("SIP/MTE1-b753d338", "tl/night-mode") in new stack
-- Playing 'tl/night-mode' (language 'en')
-- Executing [s@macro-tl-set-daynight:10] Playback("SIP/MTE1-b753d338", "press-2") in new stack
-- Playing 'press-2' (language 'en')
-- Executing [s@macro-tl-set-daynight:11] Playback("SIP/MTE1-b753d338", "tl/to-set") in new stack
-- Playing 'tl/to-set' (language 'en')
-- Executing [s@macro-tl-set-daynight:12] Playback("SIP/MTE1-b753d338", "tl/temp-mode") in new stack
-- Playing 'tl/temp-mode' (language 'en')
-- Executing [s@macro-tl-set-daynight:13] Playback("SIP/MTE1-b753d338", "press-3") in new stack
-- Playing 'press-3' (language 'en')
-- Executing [s@macro-tl-set-daynight:14] Read("SIP/MTE1-b753d338", "MODE|beep|1|||7") in new stack
-- Accepting a maximum of 1 digits.
-- Playing 'beep' (language 'en')
-- User entered '1'
-- Executing [s@macro-tl-set-daynight:15] GotoIf("SIP/MTE1-b753d338", "1?1|1") in new stack
-- Goto (macro-tl-set-daynight,1,1)
-- Executing [1@macro-tl-set-daynight:1] Set("SIP/MTE1-b753d338", "DB(TL/TENANT/7186401550/officemode)="day"") in new stack
-- Executing [1@macro-tl-set-daynight:2] Playback("SIP/MTE1-b753d338", "system") in new stack
-- Playing 'system' (language 'en')
-- Executing [1@macro-tl-set-daynight:3] Playback("SIP/MTE1-b753d338", "has-been-set-to") in new stack
-- Playing 'has-been-set-to' (language 'en')
-- Executing [1@macro-tl-set-daynight:4] Playback("SIP/MTE1-b753d338", "tl/day-mode") in new stack
-- Playing 'tl/day-mode' (language 'en')
-- Executing [1@macro-tl-set-daynight:5] Wait("SIP/MTE1-b753d338", "1") in new stack
-- Executing [1@macro-tl-set-daynight:6] Playback("SIP/MTE1-b753d338", "goodbye") in new stack
-- Playing 'goodbye' (language 'en')
-- Executing [1@macro-tl-set-daynight:7] Hangup("SIP/MTE1-b753d338", "") in new stack
== Spawn extension (macro-tl-set-daynight, 1, 7) exited non-zero on 'SIP/MTE1-b753d338' in macro 'tl-set-daynight'
is it possible that it have to do some thing with this NOTICE:
[Jul 13 12:34:45] NOTICE[3402]: pbx.c:1643 pbx_substitute_variables_helper_full: Error in extension logic (missing '}')
Thanks
i just used your 6666 number
i just used your 6666 number to set day mode and called it and got voicemailmain which is what you have set for day mode.
actually it is set 1 temp >
actually it is set
1 temp > feature code check VM
2 Day > IVR > open
3 Night > IVE > close
4 Any > feature code semple MOH
day mode should go to ivr open not to vm
just so you know that if i move up day to the top and and set it to go to temp it goes to day (it always goes to what is on the top)
you're right, As soon as i
you're right, As soon as i can get ahold of alex I'll let him know its missing the closing }
ok thanks is this a issue
ok thanks
is this a issue across the PBX Manager 6.0.1.72 or just this install
its a problem in
its a problem in edit_did.cgi, its a easy fix. Going to try to get it into 6.0.1.73. Its merely leaving off the } when checking the database key
BTW what is the need for ANY
BTW what is the need for ANY if you always have to select and ANY isn't an available option
How could it even be used aside for when you setup the route till you choose (maybe) or does it have an time expiration when it jumps back to any
I hope this isn't just another bomb question, just want to understand
maybe its a idea to have a option if the tl-set-daynightshould let you choose if you want this running permanent or it should expire if expire choose how many minutes than go back to ANY, this definitely belongs to the area of feature request
Sorry I was Just venting the idea
any is a catch-all, so you
any is a catch-all, so you could have a day and any mode, if its not day then do action any. Works really well when you set up a tenant and they havent used the macro to set a mode yet. It can also be used as another all-hours script where it just executes a simple goto
Thoughts on a patch
Thought on getting a patch ahead of the release? Should we pester Alex about this? :)
I have a handful of customer we have to manually change routes for frequently. I suppose I could hand edit inbound.include for those customers if the next release is coming soon.
Regards,
Brian
having a hard time following what you're trying to explain. the tl-set-day-night-mode is just to set day/night/temp for the tenant. The inbound route needs to say what to do when set to day and what to do set to night or any.