benjange
Paso copia del log del asteriak con la verbosidad que decis.
Saco la llamada por un troncal exclusivo para celulares y en el troncal definiendo el CID. aun sale numero privado
###################
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7f59400102e0 -- Strict RTP learning after remote address set to: 10.3.68.195:5060
-- Executing [9154277105@from-internal:1] Macro("SIP/3010-00027d2c", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/3010-00027d2c", "TOUCH_MONITOR=1650295778.657414") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/3010-00027d2c", "AMPUSER=3010") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/3010-00027d2c", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/3010-00027d2c", "1?Set(REALCALLERIDNUM=3010)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/3010-00027d2c", "AMPUSER=3010") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/3010-00027d2c", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/3010-00027d2c", "AMPUSERCIDNAME=SS - Rolando Rodriguez") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/3010-00027d2c", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/3010-00027d2c", "AMPUSERCID=3010") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/3010-00027d2c", "DIAL_OPTIONS=tr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/3010-00027d2c", "CALLERID(all)="SS - Rolando Rodriguez" <3010>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/3010-00027d2c", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/3010-00027d2c", "1?Set(GROUP(concurrency_limit)=3010)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/3010-00027d2c", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/3010-00027d2c", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/3010-00027d2c", "CALLERID(number)=3010") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/3010-00027d2c", "CALLERID(name)=SS - Rolando Rodriguez") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/3010-00027d2c", "CDR(cnum)=3010") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/3010-00027d2c", "CDR(cnam)=SS - Rolando Rodriguez") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/3010-00027d2c", "CHANNEL(language)=es") in new stack
-- Executing [9154277105@from-internal:2] Set("SIP/3010-00027d2c", "MOHCLASS=default") in new stack
-- Executing [9154277105@from-internal:3] Set("SIP/3010-00027d2c", "_NODEST=") in new stack
-- Executing [9154277105@from-internal:4] Gosub("SIP/3010-00027d2c", "sub-record-check,s,1(out,9154277105,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/3010-00027d2c", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/3010-00027d2c", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/3010-00027d2c", "MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/3010-00027d2c", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/3010-00027d2c", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/3010-00027d2c", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/3010-00027d2c", "0?out,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/3010-00027d2c", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/3010-00027d2c", "NOW=1650295778") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/3010-00027d2c", "DAY=18") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/3010-00027d2c", "MONTH=04") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/3010-00027d2c", "YEAR=2022") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/3010-00027d2c", "TIMESTR=20220418-122938") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/3010-00027d2c", "FROMEXTEN=3010") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/3010-00027d2c", "CALLFILENAME=out-9154277105-3010-20220418-122938-1650295778.657414") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/3010-00027d2c", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/3010-00027d2c", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/3010-00027d2c", "0?record,1(exten,9154277105,3010)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/3010-00027d2c", "") in new stack
-- Executing [9154277105@from-internal:5] Macro("SIP/3010-00027d2c", "dialout-trunk,1,154277105,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/3010-00027d2c", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/3010-00027d2c", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/3010-00027d2c", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/3010-00027d2c", "DIAL_NUMBER=154277105") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/3010-00027d2c", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/3010-00027d2c", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/3010-00027d2c", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/3010-00027d2c", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/3010-00027d2c", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/3010-00027d2c", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/3010-00027d2c", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/3010-00027d2c", "0?Set(REALCALLERIDNUM=3010)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/3010-00027d2c", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/3010-00027d2c", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/3010-00027d2c", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/3010-00027d2c", "TRUNKOUTCID=3624419300") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/3010-00027d2c", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/3010-00027d2c", "1?Set(CALLERID(all)=3624419300)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/3010-00027d2c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/3010-00027d2c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/3010-00027d2c", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/3010-00027d2c", "CDR(outbound_cnum)=3624419300") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/3010-00027d2c", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/3010-00027d2c", "0?sub-flp-1,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/3010-00027d2c", "OUTNUM=154277105") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/3010-00027d2c", "custom=SIP/GSM") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/3010-00027d2c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicdefault)T)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/3010-00027d2c", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/3010-00027d2c", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/3010-00027d2c", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/3010-00027d2c", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/3010-00027d2c", "1?Set(CONNECTEDLINE(num,i)=154277105)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/3010-00027d2c", "1?Set(CONNECTEDLINE(name,i)=CID:3624419300)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/3010-00027d2c", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/3010-00027d2c", "SIP/GSM/154277105,300,T") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Audio is at 41558
Adding codec 100008 (g729) to SDP
Adding codec 100003 (ulaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 10.1.0.143:5060:
INVITE sip:154277105@10.1.0.143 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Max-Forwards: 70
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
To: <sip:154277105@10.1.0.143>
Contact: <sip:3624419300@10.1.0.140:5060>
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 INVITE
User-Agent: IPBX-2.11.0(11.25.3)
Date: Mon, 18 Apr 2022 15:29:38 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 324
v=0
o=root 320687497 320687497 IN IP4 10.1.0.140
s=Asterisk PBX 11.25.3
c=IN IP4 10.1.0.140
t=0 0
m=audio 41558 RTP/AVP 18 0 3 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
-- Called SIP/GSM/154277105
Retransmitting #1 (no NAT) to 10.1.0.143:5060:
INVITE sip:154277105@10.1.0.143 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Max-Forwards: 70
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
To: <sip:154277105@10.1.0.143>
Contact: <sip:3624419300@10.1.0.140:5060>
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 INVITE
User-Agent: IPBX-2.11.0(11.25.3)
Date: Mon, 18 Apr 2022 15:29:38 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 324
v=0
o=root 320687497 320687497 IN IP4 10.1.0.140
s=Asterisk PBX 11.25.3
c=IN IP4 10.1.0.140
t=0 0
m=audio 41558 RTP/AVP 18 0 3 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
<--- SIP read from UDP:10.1.0.143:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Contact: <sip:154277105@10.1.0.143:5060>
To: <sip:154277105@10.1.0.143>;tag=a6b1a14b
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 INVITE
Content-Type: application/sdp
User-Agent: HG4000/1.0
Content-Length: 208
v=0
o=HG4000 0 0 IN IP4 10.1.0.143
s=HG4000-Session
c=IN IP4 10.1.0.143
t=0 0
m=audio 4020 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (10 headers 10 lines) ---
list_route: hop: <sip:154277105@10.1.0.143:5060>
Found RTP audio format 18
Found RTP audio format 101
Found audio description format G729 for ID 18
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|g729), peer - audio=(g729)/video=(nothing)/text=(nothing), combined - (g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
> 0x7f58e4028850 -- Strict RTP learning after remote address set to: 10.1.0.143:4020
Peer audio RTP is at port 10.1.0.143:4020
-- SIP/GSM-00027d2d is making progress passing it to SIP/3010-00027d2c
<--- SIP read from UDP:10.1.0.143:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Contact: <sip:154277105@10.1.0.143:5060>
To: <sip:154277105@10.1.0.143>;tag=a6b1a14b
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 INVITE
Content-Type: application/sdp
User-Agent: HG4000/1.0
Content-Length: 208
v=0
o=HG4000 0 0 IN IP4 10.1.0.143
s=HG4000-Session
c=IN IP4 10.1.0.143
t=0 0
m=audio 4020 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (10 headers 10 lines) ---
list_route: hop: <sip:154277105@10.1.0.143:5060>
-- SIP/GSM-00027d2d is making progress passing it to SIP/3010-00027d2c
> 0x7f58e4028850 -- Strict RTP switching to RTP remote address 10.1.0.143:4020 as source
Reliably Transmitting (no NAT) to 10.1.0.143:5060:
OPTIONS sip:10.1.0.143 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK57c68cd4
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.1.0.140>;tag=as641a6ebf
To: <sip:10.1.0.143>
Contact: <sip:Unknown@10.1.0.140:5060>
Call-ID: 39430b1d152224d533c92de233bc65ac@10.1.0.140:5060
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0(11.25.3)
Date: Mon, 18 Apr 2022 15:29:38 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- SIP read from UDP:10.1.0.143:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK57c68cd4
Contact: <sip:192.168.9.2:5060>
To: <sip:10.1.0.143>;tag=e26ac971
From: "Unknown"<sip:Unknown@10.1.0.140>;tag=as641a6ebf
Call-ID: 39430b1d152224d533c92de233bc65ac@10.1.0.140:5060
CSeq: 102 OPTIONS
Accept: application/sdp
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, INFO, OPTIONS, REFER
Supported: replaces, norefersub
User-Agent: HG4000/1.0
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Really destroying SIP dialog '39430b1d152224d533c92de233bc65ac@10.1.0.140:5060' Method: OPTIONS
> 0x7f59400102e0 -- Strict RTP switching to RTP remote address 10.3.68.195:5060 as source
> 0x7f59400102e0 -- Strict RTP learning complete - Locking on source address 10.3.68.195:5060
> 0x7f58e4028850 -- Strict RTP learning complete - Locking on source address 10.1.0.143:4020
Scheduling destruction of SIP dialog '61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060' in 6400 ms (Method: INVITE)
Reliably Transmitting (no NAT) to 10.1.0.143:5060:
CANCEL sip:154277105@10.1.0.143 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Max-Forwards: 70
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
To: <sip:154277105@10.1.0.143>
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 CANCEL
User-Agent: IPBX-2.11.0(11.25.3)
Content-Length: 0
Scheduling destruction of SIP dialog '61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060' in 6400 ms (Method: INVITE)
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/3010-00027d2c' in macro 'dialout-trunk'
== Spawn extension (from-internal, 9154277105, 5) exited non-zero on 'SIP/3010-00027d2c'
-- Executing [h@from-internal:1] Hangup("SIP/3010-00027d2c", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/3010-00027d2c'
<--- SIP read from UDP:10.1.0.143:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Contact: <sip:154277105@10.1.0.143:5060>
To: <sip:154277105@10.1.0.143>;tag=a6b1a14b
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 CANCEL
User-Agent: HG4000/1.0
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:10.1.0.143:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
To: <sip:154277105@10.1.0.143>;tag=a6b1a14b
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 INVITE
User-Agent: HG4000/1.0
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Transmitting (no NAT) to 10.1.0.143:5060:
ACK sip:154277105@10.1.0.143:5060 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.140:5060;branch=z9hG4bK4ece2666
Max-Forwards: 70
From: <sip:3624419300@10.1.0.140>;tag=as36cda060
To: <sip:154277105@10.1.0.143>;tag=a6b1a14b
Contact: <sip:3624419300@10.1.0.140:5060>
Call-ID: 61e3a77d1db43677009b55ab249cd6cf@10.1.0.140:5060
CSeq: 102 ACK
User-Agent: IPBX-2.11.0(11.25.3)
Content-Length: 0
###################