;agent login and such [frontdesk] exten => *53,1,GotoIf($["${CALLERID(num)}" = "3083"]2:6) exten => *53,2,DBGet(autoattendant=auto/attendant) exten => *53,3,GotoIf(${autoattendant} = "1"?4:5) exten => *53,4,Goto(frontdesk_logoff,s,1) exten => *53,5,Goto(frontdesk_login,s,1) exten => *53,6,Playback(auth-incorrect) exten => *53,7,Hangup [frontdesk_login] exten => s,1,Answer exten => s,2,DBPut(auto/attendant=1) exten => s,3,Dial(Local/*99@frontdesk_login/n,,D(${CALLERID(num)}#${CALLERID(num)}#)) exten => s,4,Hangup exten => *99,1,AgentCallbackLogin(||${CALLERID(num)}@callback) [frontdesk_logoff] exten => s,1,Answer exten => s,2,DBPut(auto/attendant=0) exten => s,3,Dial(Local/*99@frontdesk_logoff/n,,D(${CALLERID(num)}#${CALLERID(num)}##)) exten => s,4,Hangup exten => *99,1,AgentCallbackLogin() [callback] exten => _3083,1,ChanIsAvail(SIP/3083,s) exten => _3083,2,Dial(${availchan},30,t) exten => _3083,3,Congestion exten => _3083,102,Congestion ;caller goes to queue exten => _420,1,DBGet(autoattendant=auto/attendant) exten => _420,2,GotoIf(${autoattendant} = "1"?4:3) exten => _420,3,Goto(*69,1) exten => _420,4,Goto(#420,1) exten => _#420,1,background(SM-Tel-Msg-First-no-press) exten => _#420,2,Queue(frontdesk|tn|||300|) exten => _#420,3,Voicemail(3000@frontdesk) exten => _#420,4,Playback(Goodbye) exten => _#420,5,Hangup exten => _1,1,Voicemail(3000@frontdesk|s) exten => _1,2,Playback(Goodbye) exten => _1,3,Hangup exten => _*69,1,background(SM-Tel-Msg-Last) exten => _*69,2,Voicemail(3000@frontdesk|s) exten => _*69,3,Playback(Goodbye) exten => _*69,4,Hangup ;call log -- Executing DBget("SIP/3065-08282db8", "autoattendant=auto/attendant") in new stack -- DBget: varname=autoattendant, family=auto, key=attendant -- DBget: set variable autoattendant to 1 -- Executing GotoIf("SIP/3065-08282db8", "1 = "1"?4:3") in new stack -- Goto (default,420,4) -- Executing Goto("SIP/3065-08282db8", "#420|1") in new stack -- Goto (default,#420,1) -- Executing BackGround("SIP/3065-08282db8", "SM-Tel-Msg-First-no-press") in new stack -- Playing 'SM-Tel-Msg-First-no-press' (language 'en') Nov 28 22:26:49 WARNING[4664]: pbx.c:2424 __ast_pbx_run: Invalid extension '3', but no rule 'i' in context 'default' Nov 28 22:26:55 NOTICE[2982]: chan_sip.c:11287 handle_request_register: Registration from '' failed for '10.200.139.190' - ACL error (permit/deny) -- Executing DBget("SIP/3065-08282db8", "autoattendant=auto/attendant") in new stack -- DBget: varname=autoattendant, family=auto, key=attendant -- DBget: set variable autoattendant to 1 -- Executing GotoIf("SIP/3065-08282db8", "1 = "1"?4:3") in new stack -- Goto (default,420,4) -- Executing Goto("SIP/3065-08282db8", "#420|1") in new stack -- Goto (default,#420,1) -- Executing BackGround("SIP/3065-08282db8", "SM-Tel-Msg-First-no-press") in new stack -- Playing 'SM-Tel-Msg-First-no-press' (language 'en') -- Executing Queue("SIP/3065-08282db8", "frontdesk|tn|||300|") in new stack -- Started music on hold, class 'frontdesk', on SIP/3065-08282db8 -- outgoing agentcall, to agent '3083', on 'Local/3083@callback-f290,1' -- Called Agent/3083 -- Executing ChanIsAvail("Local/3083@callback-f290,2", "SIP/3083|s") in new stack -- Executing Dial("Local/3083@callback-f290,2", "SIP/3083-082d7498|30|t") in new stack Nov 28 22:29:42 WARNING[4674]: chan_sip.c:1995 create_addr: No such host: 3083-082d7498 Nov 28 22:29:42 NOTICE[4674]: app_dial.c:1076 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) == Everyone is busy/congested at this time (1:0/0/1) -- Executing Congestion("Local/3083@callback-f290,2", "") in new stack -- Agent/3083 is circuit-busy == Spawn extension (callback, 3083, 3) exited non-zero on 'Local/3083@callback-f290,2' Nov 28 22:29:42 WARNING[2827]: channel.c:786 channel_find_locked: Avoided initial deadlock for '0x8214e68', 10 retries! Nov 28 22:29:42 WARNING[2827]: channel.c:786 channel_find_locked: Avoided initial deadlock for '0x8214e68', 10 retries! -- Exiting on time-out cycle -- Stopped music on hold on SIP/3065-08282db8 -- Executing VoiceMail("SIP/3065-08282db8", "3000@frontdesk") in new stack -- Playing 'vm-intro' (language 'en') -- Playing 'beep' (language 'en') -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/frontdesk/3000/tmp/jwP2pe format: wav49, 0xb2d9f688 -- User hung up