Buenas tardes, tengo este detalle, he configurado mi elastix para sacar llamadas, todo funciona bien, pero al poner PIN de identificacion hace la llamada y se entabla la conexion, pero despues de 20 segundos se corta la llamada. Esto no lo hace si no activo el PIN.
Dejo el log de lo que hace elastix:
-- Executing [98117700@from-internal:1] Macro("SIP/2101-00000002", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/2101-00000002", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/2101-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/2101-00000002", "1?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/2101-00000002", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/2101-00000002", "AMPUSERCIDNAME=Jose Reyna") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/2101-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2101-00000002", "AMPUSERCID=2101") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/2101-00000002", "CALLERID(all)="Jose Reyna" <2101>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/2101-00000002", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/2101-00000002", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/2101-00000002", "Using CallerID "Jose Reyna" <2101>") in new stack
-- Executing [98117700@from-internal:2] Macro("SIP/2101-00000002", "pinsets,4,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/2101-00000002", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/2101-00000002", "1?Authenticate(/etc/asterisk/pinset_4,a)") in new stack
-- <SIP/2101-00000002> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/2101-00000002> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/2101-00000002", "1?ResetCDR()") in new stack
-- Executing [98117700@from-internal:3] Set("SIP/2101-00000002", "_NODEST=") in new stack
-- Executing [98117700@from-internal:4] Macro("SIP/2101-00000002", "record-enable,2101,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/2101-00000002", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/2101-00000002", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/2101-00000002", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/2101-00000002", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/2101-00000002", "1?MacroExit()") in new stack
-- Executing [98117700@from-internal:5] Macro("SIP/2101-00000002", "dialout-trunk,2,8117700,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/2101-00000002", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2101-00000002", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2101-00000002", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/2101-00000002", "DIAL_NUMBER=8117700") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/2101-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/2101-00000002", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2101-00000002", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2101-00000002", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/2101-00000002", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/2101-00000002", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2101-00000002", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2101-00000002", "0?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2101-00000002", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/2101-00000002", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/2101-00000002", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/2101-00000002", "TRUNKOUTCID=8688193473") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2101-00000002", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2101-00000002", "1?Set(CALLERID(all)=8688193473)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2101-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2101-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2101-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2101-00000002", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/2101-00000002", "OUTNUM=8117700") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/2101-00000002", "custom=DAHDI/g1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2101-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/2101-00000002", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2101-00000002", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2101-00000002", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2101-00000002", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/2101-00000002", "DAHDI/g1/8117700,300,") in new stack
-- Called g1/8117700
-- DAHDI/4-1 answered SIP/2101-00000002
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/2101-00000002", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2101-00000002", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/2101-00000002", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/2101-00000002", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/2101-00000002", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/2101-00000002", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/2101-00000002", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/2101-00000002' in macro 'hangupcall'
-- Hungup 'DAHDI/4-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/2101-00000002' in macro 'dialout-trunk'
== Spawn extension (from-internal, 98117700, 5) exited non-zero on 'SIP/2101-00000002'
elastix*CLI>
Dejo el log de lo que hace elastix:
-- Executing [98117700@from-internal:1] Macro("SIP/2101-00000002", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/2101-00000002", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/2101-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/2101-00000002", "1?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/2101-00000002", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/2101-00000002", "AMPUSERCIDNAME=Jose Reyna") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/2101-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2101-00000002", "AMPUSERCID=2101") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/2101-00000002", "CALLERID(all)="Jose Reyna" <2101>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/2101-00000002", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/2101-00000002", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/2101-00000002", "Using CallerID "Jose Reyna" <2101>") in new stack
-- Executing [98117700@from-internal:2] Macro("SIP/2101-00000002", "pinsets,4,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/2101-00000002", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/2101-00000002", "1?Authenticate(/etc/asterisk/pinset_4,a)") in new stack
-- <SIP/2101-00000002> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/2101-00000002> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/2101-00000002", "1?ResetCDR()") in new stack
-- Executing [98117700@from-internal:3] Set("SIP/2101-00000002", "_NODEST=") in new stack
-- Executing [98117700@from-internal:4] Macro("SIP/2101-00000002", "record-enable,2101,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/2101-00000002", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/2101-00000002", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/2101-00000002", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/2101-00000002", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/2101-00000002", "1?MacroExit()") in new stack
-- Executing [98117700@from-internal:5] Macro("SIP/2101-00000002", "dialout-trunk,2,8117700,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/2101-00000002", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2101-00000002", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2101-00000002", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/2101-00000002", "DIAL_NUMBER=8117700") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/2101-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/2101-00000002", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2101-00000002", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2101-00000002", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/2101-00000002", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/2101-00000002", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2101-00000002", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2101-00000002", "0?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2101-00000002", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/2101-00000002", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/2101-00000002", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/2101-00000002", "TRUNKOUTCID=8688193473") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2101-00000002", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2101-00000002", "1?Set(CALLERID(all)=8688193473)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2101-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2101-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2101-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2101-00000002", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/2101-00000002", "OUTNUM=8117700") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/2101-00000002", "custom=DAHDI/g1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2101-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/2101-00000002", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2101-00000002", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2101-00000002", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2101-00000002", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/2101-00000002", "DAHDI/g1/8117700,300,") in new stack
-- Called g1/8117700
-- DAHDI/4-1 answered SIP/2101-00000002
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/2101-00000002", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2101-00000002", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/2101-00000002", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/2101-00000002", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/2101-00000002", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/2101-00000002", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/2101-00000002", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/2101-00000002' in macro 'hangupcall'
-- Hungup 'DAHDI/4-1'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/2101-00000002' in macro 'dialout-trunk'
== Spawn extension (from-internal, 98117700, 5) exited non-zero on 'SIP/2101-00000002'
elastix*CLI>
Comentario