Vale, ya estoy con una sola versión, la que quiero poner en producción, issabel 4 asterisk 11, y las extensiones externas se registran pero ni tienen audio, ni pueden hacer llamadas, la central no se entera que intentan llamar.
cuando las llamas a ellas, si que timbran cogen la llamada y después pasados unos segundos se cuelgan, el debug de esa llamada es este:
[2018-05-25 13:17:47] NOTICE[2531]: chan_sip.c:23892 handle_response_peerpoke: Peer '2152' is now Reachable. (19ms / 2000ms)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7fc23800fca0 -- Strict RTP learning after remote address set to: 172.16.0.6:6004
-- Executing [2152@from-internal:1] Set("SIP/2101-00000000", "RINGTIMER=15") in new stack
-- Executing [2152@from-internal:2] Macro("SIP/2101-00000000", "exten-vm,novm,2152,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/2101-00000000", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/2101-00000000", "TOUCH_MONITOR=1527247116.0") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2101-00000000", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2101-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2101-00000000", "1?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/2101-00000000", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/2101-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2101-00000000", "AMPUSERCIDNAME=Raul S") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2101-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2101-00000000", "AMPUSERCID=2101") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2101-00000000", "DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2101-00000000", "CALLERID(all)="Raul S" <2101>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/2101-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/2101-00000000", "0?Set(GROUP(concurrency_limit)=2101)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/2101-00000000", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/2101-00000000", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/2101-00000000", "1?Set(CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/2101-00000000", "TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/2101-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/2101-00000000", "CALLERID(number)=2101") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/2101-00000000", "CALLERID(name)=Raul S") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/2101-00000000", "CDR(cnum)=2101") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/2101-00000000", "CDR(cnam)=Raul S") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/2101-00000000", "CHANNEL(language)=es") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/2101-00000000", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/2101-00000000", "EXTTOCALL=2152") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/2101-00000000", "PICKUPMARK=2152") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/2101-00000000", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] ExecIf("SIP/2101-00000000", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
-- Executing [s@macro-exten-vm:7] ExecIf("SIP/2101-00000000", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:8] Gosub("SIP/2101-00000000", "sub-record-check,s,1(exten,2152,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/2101-00000000", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/2101-00000000", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/2101-00000000", "MON_FMT=WAV") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/2101-00000000", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/2101-00000000", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/2101-00000000", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/2101-00000000", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/2101-00000000", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/2101-00000000", "NOW=1527247116") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/2101-00000000", "DAY=25") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/2101-00000000", "MONTH=05") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/2101-00000000", "YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/2101-00000000", "TIMESTR=20180525-131836") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/2101-00000000", "FROMEXTEN=2101") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/2101-00000000", "CALLFILENAME=exten-2152-2101-20180525-131836-1527247116.0") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/2101-00000000", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/2101-00000000", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/2101-00000000", "REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/2101-00000000", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/2101-00000000", "REC_POLICY_MODE=always") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/2101-00000000", "1?record,1(exten,2152,2101)") in new stack
-- Executing [record@sub-record-check:1] Set("SIP/2101-00000000", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/2101-00000000", "2018/05/25/exten-2152-2101-20180525-131836-1527247116.0.WAV,,") in new stack
== Begin MixMonitor Recording SIP/2101-00000000
-- Executing [record@sub-record-check:3] Set("SIP/2101-00000000", "REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/2101-00000000", "CDR(recordingfile)=exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [record@sub-record-check:5] Return("SIP/2101-00000000", "") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/2101-00000000", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/2101-00000000", "dial-one,,Ttr,2152") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/2101-00000000", "DEXTEN=2152") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/2101-00000000", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/2101-00000000", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/2101-00000000", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/2101-00000000", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/2101-00000000", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/2101-00000000", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/2101-00000000", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/2101-00000000", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/2101-00000000", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] ExecIf("SIP/2101-00000000", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [s@macro-dial-one:25] GotoIf("SIP/2101-00000000", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/2101-00000000", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/2101-00000000", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/2101-00000000", "DEVICES=2152") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/2101-00000000", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/2101-00000000", "0?Set(DEVICES=152)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/2101-00000000", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/2101-00000000", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/2101-00000000", "THISDIAL=SIP/2152") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/2101-00000000", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/2101-00000000", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/2101-00000000", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/2101-00000000", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/2101-00000000", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/2101-00000000", "THISPART2=SIP/2152") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/2101-00000000", "0?Set(THISPART2=DAHDI/2152)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/2101-00000000", "NEWDIAL=SIP/2152&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/2101-00000000", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/2101-00000000", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/2101-00000000", "THISDIAL=SIP/2152") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/2101-00000000", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/2101-00000000", "DSTRING=SIP/2152&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/2101-00000000", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/2101-00000000", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/2101-00000000", "DSTRING=SIP/2152") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/2101-00000000", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/2101-00000000", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/2101-00000000", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/2101-00000000", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/2101-00000000", "DB(CALLTRACE/2152)=2101") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/2101-00000000", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/2101-00000000", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/2101-00000000", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/2101-00000000", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/2101-00000000", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/2101-00000000", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/2101-00000000", "CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/2101-00000000", "KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("SIP/2101-00000000", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("SIP/2101-00000000", "0?godial") in new stack
-- Executing [s@macro-dial-one:39] Gosub("SIP/2101-00000000", "sub-presencestate-display,s,1(2152)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("SIP/2101-00000000", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
-- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/2101-00000000", "PRESENCESTATE_DISPLAY=") in new stack
-- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/2101-00000000", "") in new stack
-- Executing [s@macro-dial-one:40] Set("SIP/2101-00000000", "CONNECTEDLINE(name,i)=Javier L") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/2101-00000000", "CONNECTEDLINE(num)=2152") in new stack
-- Executing [s@macro-dial-one:42] Set("SIP/2101-00000000", "D_OPTIONS=TtrI") in new stack
-- Executing [s@macro-dial-one:43] Dial("SIP/2101-00000000", "SIP/2152,,TtrI") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/2152
-- Connected line update to SIP/2101-00000000 prevented.
-- SIP/2152-00000001 is ringing
-- SIP/2152-00000001 is ringing
> 0x7fc22c03b600 -- Strict RTP learning after remote address set to: 172.16.0.210:10002
-- Connected line update to SIP/2101-00000000 prevented.
-- SIP/2152-00000001 answered SIP/2101-00000000
[2018-05-25 13:19:10] NOTICE[2531]: chan_sip.c:29365 check_rtp_timeout: Disconnecting call 'SIP/2101-00000000' for lack of RTP activity in 31 seconds
[2018-05-25 13:19:10] NOTICE[2531]: chan_sip.c:29365 check_rtp_timeout: Disconnecting call 'SIP/2152-00000001' for lack of RTP activity in 31 seconds
-- Executing [h@macro-dial-one:1] Macro("SIP/2101-00000000", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2101-00000000", "0?endmixmoncheck") in new stack
-- Executing [s@macro-hangupcall:2] Set("SIP/2101-00000000", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:3] System("SIP/2101-00000000", "test -e /var/spool/asterisk/monitor/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("SIP/2101-00000000", "SYSTEMSTATUS = APPERROR") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("SIP/2101-00000000", "0?finalcdr") in new stack
-- Executing [s@macro-hangupcall:6] Set("SIP/2101-00000000", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/2018/05/25/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:7] System("SIP/2101-00000000", "test -e /var/spool/asterisk/monitor/2018/05/25/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:8] NoOp("SIP/2101-00000000", "SYSTEMSTATUS = SUCCESS") in new stack
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/2101-00000000", "1?mmtestsuccess1") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Set("SIP/2101-00000000", "CDR(recordingfile)=/var/spool/asterisk/monitor/2018/05/25/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:12] Goto("SIP/2101-00000000", "finalcdr") in new stack
-- Goto (macro-hangupcall,s,63)
-- Executing [s@macro-hangupcall:63] NoOp("SIP/2101-00000000", "CDR recordingfile set to: /var/spool/asterisk/monitor/2018/05/25/exten-2152-2101-20180525-131836-1527247116.0.WAV") in new stack
-- Executing [s@macro-hangupcall:64] GotoIf("SIP/2101-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,67)
-- Executing [s@macro-hangupcall:67] GotoIf("SIP/2101-00000000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,70)
-- Executing [s@macro-hangupcall:70] GotoIf("SIP/2101-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,72)
-- Executing [s@macro-hangupcall:72] AGI("SIP/2101-00000000", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/2101-00000000>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:73] Hangup("SIP/2101-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 73) exited non-zero on 'SIP/2101-00000000' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/2101-00000000'
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'SIP/2101-00000000' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/2101-00000000' in macro 'exten-vm'
== Spawn extension (from-internal, 2152, 2) exited non-zero on 'SIP/2101-00000000'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/2101-00000000
-- Remote UNIX connection
-- Remote UNIX connection disconnected
> Saved useragent "Grandstream DP715 1.0.0.8" for peer 2101
centralita*CLI>
el puerto de registro es el 50600 y los de RTP 35000-44999.
Gracias de antemano