Hallo,
ich habe Asterisk 1.6 mit Freepbx auf einem Debian Lenny installiert.
Es funktioniert alles aber ich kapiere nicht die Logik mit den Extensions.
Ich möchte in die custom_extensions.conf einfügen, dass alle anrufe
exten => _X.,1,Noop(marryme)
exten => _X.,n,Answer()
exten => _X.,n,Background(marryme)
exten => _X.,n,Hangup()
Diese Information bekommen. Woher bekomme ich aber den passenden Context ?
ich habe Asterisk 1.6 mit Freepbx auf einem Debian Lenny installiert.
Es funktioniert alles aber ich kapiere nicht die Logik mit den Extensions.
Ich möchte in die custom_extensions.conf einfügen, dass alle anrufe
exten => _X.,1,Noop(marryme)
exten => _X.,n,Answer()
exten => _X.,n,Background(marryme)
exten => _X.,n,Hangup()
Diese Information bekommen. Woher bekomme ich aber den passenden Context ?
Code:
== Using SIP RTP CoS mark 5
-- Executing [4918010121329153@from-sip-external:1] NoOp("SIP/sipconnect.sipgate.de-08891b58", "Received incoming SIP connection from unknown peer to 4918010121329153") in new stack
-- Executing [4918010121329153@from-sip-external:2] Set("SIP/sipconnect.sipgate.de-08891b58", "DID=4918010121329153") in new stack
-- Executing [4918010121329153@from-sip-external:3] Goto("SIP/sipconnect.sipgate.de-08891b58", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?from-trunk,4918010121329153,1") in new stack
-- Goto (from-trunk,4918010121329153,1)
-- Executing [4918010121329153@from-trunk:1] NoOp("SIP/sipconnect.sipgate.de-08891b58", "Catch-All DID Match - Found 4918010121329153 - You probably want a DID for this.") in new stack
-- Executing [4918010121329153@from-trunk:2] Goto("SIP/sipconnect.sipgate.de-08891b58", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/sipconnect.sipgate.de-08891b58", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] ExecIf("SIP/sipconnect.sipgate.de-08891b58", "0 ?Set(CALLERID(name)=070334687142)") in new stack
-- Executing [s@ext-did:3] Set("SIP/sipconnect.sipgate.de-08891b58", "FAX_RX=disabled") in new stack
-- Executing [s@ext-did:4] Set("SIP/sipconnect.sipgate.de-08891b58", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:5] Set("SIP/sipconnect.sipgate.de-08891b58", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Goto("SIP/sipconnect.sipgate.de-08891b58", "test,s,1") in new stack
-- Goto (test,s,1)
-- Executing [s@test:1] Macro("SIP/sipconnect.sipgate.de-08891b58", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/sipconnect.sipgate.de-08891b58", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/sipconnect.sipgate.de-08891b58' in macro 'hangupcall'
== Spawn extension (test, s, 1) exited non-zero on 'SIP/sipconnect.sipgate.de-08891b58'
-- Executing [h@test:1] Macro("SIP/sipconnect.sipgate.de-08891b58", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/sipconnect.sipgate.de-08891b58", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/sipconnect.sipgate.de-08891b58", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/sipconnect.sipgate.de-08891b58' in macro 'hangupcall'
== Spawn extension (test, h, 1) exited non-zero on 'SIP/sipconnect.sipgate.de-08891b58'