All pastes #2074460 Raw Edit

Stuff

public text v1 · immutable
#2074460 ·published 2011-06-04 05:37 UTC
rendered paste body
[app-userlogonoff]
include => app-userlogonoff-custom
exten => *12,1,Macro(user-logoff,)
exten => *12,2,Verbose(call just ${CALLERID(num)})
exten => *12,3,System(/usr/sbin/asterisk -rx "sip notify grandstream-idle-screen-refresh ${CALLERID(num)}")
exten => *12,4,Verbose(call just ${CALLERID(num)})
exten => *12,n(hook_off),Hangup

exten => *11,1,Macro(user-logon,)
exten => *11,n(hook_on_1),Hangup
exten => _*11.,1,Macro(user-logon,${EXTEN:3},)
exten => _*11.,n(hook_on_2),Hangup

; end of [app-userlogonoff]

=========================

    -- Executing [*12@from-internal:1] Macro("SIP/9999-000000c6", "user-logoff,") in new stack
    -- Executing [s@macro-user-logoff:1] Set("SIP/9999-000000c6", "DEVICETYPE=adhoc") in new stack
    -- Executing [s@macro-user-logoff:2] GotoIf("SIP/9999-000000c6", "0?s-FIXED,1") in new stack
    -- Executing [s@macro-user-logoff:3] AGI("SIP/9999-000000c6", "user_login_out.agi,logout,9999") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/user_login_out.agi
    -- user_login_out.agi,logout,9999: Logging out current user from device 9999
    -- <SIP/9999-000000c6>AGI Script user_login_out.agi completed, returning 0
    -- Executing [s@macro-user-logoff:4] Playback("SIP/9999-000000c6", "vm-goodbye") in new stack
    -- <SIP/9999-000000c6> Playing 'vm-goodbye.gsm' (language 'en')
    -- Executing [*12@from-internal:2] Verbose("SIP/9999-000000c6", "call just 9999") in new stack
call just 9999
    -- Executing [*12@from-internal:3] System("SIP/9999-000000c6", "/usr/sbin/asterisk -rx "sip notify grandstream-idle-screen-refresh 9999"") in new stack
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Executing [*12@from-internal:4] Verbose("SIP/9999-000000c6", "call just 9999") in new stack
call just 9999
    -- Executing [*12@from-internal:5] Hangup("SIP/9999-000000c6", "") in new stack
  == Spawn extension (from-internal, *12, 5) exited non-zero on 'SIP/9999-000000c6'
    -- Executing [h@from-internal:1] Macro("SIP/9999-000000c6", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/9999-000000c6", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/9999-000000c6", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/9999-000000c6", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/9999-000000c6", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/9999-000000c6' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/9999-000000c6'
    -- Got SIP response 480 "Temporarily Unavailable" back from 121.44.242.198:5068