Problem with 2 branches Asterisk

Hello everyone,
When i connected vpn with 2 branches and working as well,
I can call between 2 extension from 2 way,
So when answered the call from 2 extensions, one of extension He can hears me but the other extension can’t hear but only can talking,
The ssh show me:

– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/6060-00000004”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/6060-00000004”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“PJSIP/6060-00000004”, “0”) in new stack
– Jumping to priority 12
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/6060-00000004”, “”) in new stack
== Spawn extension (from-internal, 6060, 1) exited non-zero on ‘PJSIP/6060-00000004’
– PJSIP/6060-00000004 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/6060/sip:[email protected]:5060
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Connected line update to PJSIP/1515-00000003 prevented.
– PJSIP/6060-00000004 is ringing
– PJSIP/6060-00000004 is ringing
> 0x7fe068a37890 – Strict RTP learning after remote address set to: 192.168.117.150:5008
– PJSIP/6060-00000004 answered PJSIP/1515-00000003
> 0x7fe068a34d00 – Strict RTP learning after remote address set to: 192.168.29.46:5006
– Channel PJSIP/6060-00000004 joined ‘simple_bridge’ basic-bridge
– Channel PJSIP/1515-00000003 joined ‘simple_bridge’ basic-bridge
> Bridge a675cc53-1403-44d4-a121-5acb13dd9708: switching from simple_bridge technology to native_rtp
> Remotely bridged ‘PJSIP/1515-00000003’ and ‘PJSIP/6060-00000004’ - media will flow directly between them
> 0x7fe068a34d00 – Strict RTP learning after remote address set to: 192.168.29.46:5006
> 0x7fe068a34d00 – Strict RTP switching to RTP target address 192.168.29.46:5006 as source
> 0x7fe068a37890 – Strict RTP learning after remote address set to: 192.168.117.150:5008
AsteriskNOW*CLI>

The capture when i call between 2 extension before ring and after call and answered
The ssh show:

== Setting global variable ‘SIPDOMAIN’ to ‘192.168.62.153’
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Executing [6060@from-internal:1] GotoIf(“PJSIP/1515-00000011”, “1?ext-local,6060,1:followme-check,6060,1”) in new stack
– Goto (ext-local,6060,1)
– Executing [6060@ext-local:1] Set(“PJSIP/1515-00000011”, “__RINGTIMER=15”) in new stack
– Executing [6060@ext-local:2] Macro(“PJSIP/1515-00000011”, “exten-vm,novm,6060,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“PJSIP/1515-00000011”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/1515-00000011”, “TOUCH_MONITOR=1551074803.22”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/1515-00000011”, “AMPUSER=1515”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/1515-00000011”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“PJSIP/1515-00000011”, “1?Set(REALCALLERIDNUM=1515)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/1515-00000011”, “AMPUSER=1515”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“PJSIP/1515-00000011”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/1515-00000011”, “AMPUSERCIDNAME=newtest”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“PJSIP/1515-00000011”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“PJSIP/1515-00000011”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/1515-00000011”, “AMPUSERCID=1515”) in new stack
– Executing [s@macro-user-callerid:11] Set(“PJSIP/1515-00000011”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/1515-00000011”, “CALLERID(all)=“newtest” <1515>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“PJSIP/1515-00000011”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(GROUP(concurrency_limit)=1515)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“PJSIP/1515-00000011”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“PJSIP/1515-00000011”, “Macro Depth is 2”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“PJSIP/1515-00000011”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“PJSIP/1515-00000011”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:19] ExecIf(“PJSIP/1515-00000011”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:20] Set(“PJSIP/1515-00000011”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:21] GotoIf(“PJSIP/1515-00000011”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“PJSIP/1515-00000011”, “CALLERID(number)=1515”) in new stack
– Executing [s@macro-user-callerid:38] Set(“PJSIP/1515-00000011”, “CALLERID(name)=newtest”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“PJSIP/1515-00000011”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“PJSIP/1515-00000011”, “CDR(cnam)=newtest”) in new stack
– Executing [s@macro-user-callerid:41] Set(“PJSIP/1515-00000011”, “CDR(cnum)=1515”) in new stack
– Executing [s@macro-user-callerid:42] Set(“PJSIP/1515-00000011”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“PJSIP/1515-00000011”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“PJSIP/1515-00000011”, “__EXTTOCALL=6060”) in new stack
– Executing [s@macro-exten-vm:4] Set(“PJSIP/1515-00000011”, “__PICKUPMARK=6060”) in new stack
– Executing [s@macro-exten-vm:5] Set(“PJSIP/1515-00000011”, “RT=”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/1515-00000011”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:7] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:8] ExecIf(“PJSIP/1515-00000011”, “0?Gosub(ext-intercom,nointercom6060,1())”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:9] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:10] ExecIf(“PJSIP/1515-00000011”, “0?ChanSpy(PJSIP/6060,q)”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:11] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
[2019-02-25 09:06:43] WARNING[25580][C-0000000e]: chan_sip.c:23064 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:12] ExecIf(“PJSIP/1515-00000011”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:13] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“PJSIP/1515-00000011”, “0?Gosub(ext-intercom,nointercom6060,1())”) in new stack
– Executing [s@macro-exten-vm:15] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“PJSIP/1515-00000011”, “0?ChanSpy(PJSIP/6060,q)”) in new stack
– Executing [s@macro-exten-vm:17] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“PJSIP/1515-00000011”, “sub-record-check,s,1(exten,6060,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/1515-00000011”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/1515-00000011”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/1515-00000011”, “NOW=1551074803”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/1515-00000011”, “__DAY=25”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/1515-00000011”, “__MONTH=02”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/1515-00000011”, “__YEAR=2019”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/1515-00000011”, “__TIMESTR=20190225-090643”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/1515-00000011”, “__FROMEXTEN=1515”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/1515-00000011”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/1515-00000011”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/1515-00000011”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/1515-00000011”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/1515-00000011”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/1515-00000011”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/1515-00000011”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“PJSIP/1515-00000011”, “Exten Recording Check between 1515 and 6060”) in new stack
– Executing [exten@sub-record-check:2] Set(“PJSIP/1515-00000011”, “CALLTYPE=internal”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“PJSIP/1515-00000011”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“PJSIP/1515-00000011”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“PJSIP/1515-00000011”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“PJSIP/1515-00000011”, “0?callee”) in new stack
– Executing [exten@sub-record-check:7] GotoIf(“PJSIP/1515-00000011”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [exten@sub-record-check:13] Set(“PJSIP/1515-00000011”, “RECMODE=dontcare”) in new stack
– Executing [exten@sub-record-check:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:15] ExecIf(“PJSIP/1515-00000011”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“PJSIP/1515-00000011”, “recordcheck,1(dontcare,internal,6060)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/1515-00000011”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/1515-00000011”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [exten@sub-record-check:17] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-exten-vm:19] Macro(“PJSIP/1515-00000011”, “dial-one,HhTtr,6060”) in new stack
– Executing [s@macro-dial-one:1] Set(“PJSIP/1515-00000011”, “DEXTEN=6060”) in new stack
– Executing [s@macro-dial-one:2] Set(“PJSIP/1515-00000011”, “__CRM_SOURCE=1515”) in new stack
– Executing [s@macro-dial-one:3] ExecIf(“PJSIP/1515-00000011”, “0?Set(__EXTTOCALL=6060)”) in new stack
– Executing [s@macro-dial-one:4] Set(“PJSIP/1515-00000011”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:5] GosubIf(“PJSIP/1515-00000011”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:6] GosubIf(“PJSIP/1515-00000011”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:7] GotoIf(“PJSIP/1515-00000011”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [s@macro-dial-one:10] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“PJSIP/1515-00000011”, “0?continue”) in new stack
– Executing [s@macro-dial-one:12] Set(“PJSIP/1515-00000011”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:13] GotoIf(“PJSIP/1515-00000011”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“PJSIP/1515-00000011”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [s@macro-dial-one:27] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GosubIf(“PJSIP/1515-00000011”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“PJSIP/1515-00000011”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“PJSIP/1515-00000011”, “DEVICES=6060”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“PJSIP/1515-00000011”, “0?Set(DEVICES=060)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“PJSIP/1515-00000011”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“PJSIP/1515-00000011”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“PJSIP/1515-00000011”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“PJSIP/1515-00000011”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“PJSIP/1515-00000011”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“PJSIP/1515-00000011”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“PJSIP/1515-00000011”, “THISPART2=PJSIP/6060”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“PJSIP/1515-00000011”, “0?Set(THISPART2=DAHDIIP/6060)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“PJSIP/1515-00000011”, “NEWDIAL=PJSIP/6060&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“PJSIP/1515-00000011”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“PJSIP/1515-00000011”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [dstring@macro-dial-one:9] GotoIf(“PJSIP/1515-00000011”, “0?docheck”) in new stack
– Executing [dstring@macro-dial-one:10] NoOp(“PJSIP/1515-00000011”, “Debug: Found PJSIP Destination PJSIP/6060”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“PJSIP/1515-00000011”, “0?doset”) in new stack
– Executing [dstring@macro-dial-one:12] NoOp(“PJSIP/1515-00000011”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [dstring@macro-dial-one:13] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [dstring@macro-dial-one:15] GotoIf(“PJSIP/1515-00000011”, “0?skipset”) in new stack
– Executing [dstring@macro-dial-one:16] Set(“PJSIP/1515-00000011”, “DSTRING=PJSIP/6060/sip:[email protected]:5060&”) in new stack
– Executing [dstring@macro-dial-one:17] Set(“PJSIP/1515-00000011”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:18] GotoIf(“PJSIP/1515-00000011”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:19] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:20] Set(“PJSIP/1515-00000011”, “DSTRING=PJSIP/6060/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:21] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-dial-one:29] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:30] GotoIf(“PJSIP/1515-00000011”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:31] GosubIf(“PJSIP/1515-00000011”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“PJSIP/1515-00000011”, “DB(CALLTRACE/6060)=1515”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-dial-one:32] Set(“PJSIP/1515-00000011”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:33] GosubIf(“PJSIP/1515-00000011”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:34] NoOp(“PJSIP/1515-00000011”, "Blind Transfer: , Attended Transfer: , User: 1515, Alert Info: ") in new stack
– Executing [s@macro-dial-one:35] ExecIf(“PJSIP/1515-00000011”, “1?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:36] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:37] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:38] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:39] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:40] GosubIf(“PJSIP/1515-00000011”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:41] ExecIf(“PJSIP/1515-00000011”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:42] GosubIf(“PJSIP/1515-00000011”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:43] Set(“PJSIP/1515-00000011”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:44] Set(“PJSIP/1515-00000011”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:45] GotoIf(“PJSIP/1515-00000011”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:46] GotoIf(“PJSIP/1515-00000011”, “0?godial”) in new stack
– Executing [s@macro-dial-one:47] Gosub(“PJSIP/1515-00000011”, “sub-presencestate-display,s,1(6060)”) in new stack
– Executing [s@sub-presencestate-display:1] Goto(“PJSIP/1515-00000011”, “state-available,1”) in new stack
– Goto (sub-presencestate-display,state-available,1)
– Executing [state-available@sub-presencestate-display:1] Set(“PJSIP/1515-00000011”, “PRESENCESTATE_DISPLAY=(Available)”) in new stack
– Executing [state-available@sub-presencestate-display:2] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-dial-one:48] Set(“PJSIP/1515-00000011”, “CONNECTEDLINE(name,i)=new(Available)”) in new stack
– Executing [s@macro-dial-one:49] Set(“PJSIP/1515-00000011”, “CONNECTEDLINE(num)=6060”) in new stack
– Executing [s@macro-dial-one:50] Set(“PJSIP/1515-00000011”, “D_OPTIONS=HhTtrI”) in new stack
– Executing [s@macro-dial-one:51] Macro(“PJSIP/1515-00000011”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-dial-one:52] ExecIf(“PJSIP/1515-00000011”, “0?Set(D_OPTIONS=HhtrII)”) in new stack
– Executing [s@macro-dial-one:53] NoOp(“PJSIP/1515-00000011”, “”) in new stack
– Executing [s@macro-dial-one:54] ExecIf(“PJSIP/1515-00000011”, “0?Set(D_OPTIONS=HhTtrIg)”) in new stack
– Executing [s@macro-dial-one:55] Dial(“PJSIP/1515-00000011”, “PJSIP/6060/sip:[email protected]:5060,HhTtrIb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/6060-00000012 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“PJSIP/6060-00000012”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“PJSIP/6060-00000012”, “Applying SIP Headers to channel PJSIP/6060-00000012”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/6060-00000012”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/6060-00000012”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“PJSIP/6060-00000012”, “0”) in new stack
– Jumping to priority 12
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/6060-00000012”, “”) in new stack
== Spawn extension (from-internal, 6060, 1) exited non-zero on ‘PJSIP/6060-00000012’
– PJSIP/6060-00000012 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/6060/sip:[email protected]:5060
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Connected line update to PJSIP/1515-00000011 prevented.
– PJSIP/6060-00000012 is ringing
– PJSIP/6060-00000012 is ringing
> 0x7fe068c77950 – Strict RTP learning after remote address set to: 192.168.117.150:5020
– PJSIP/6060-00000012 answered PJSIP/1515-00000011
> 0x7fe068aa52c0 – Strict RTP learning after remote address set to: 192.168.29.46:5020
– Channel PJSIP/6060-00000012 joined ‘simple_bridge’ basic-bridge <4332b6b4-1ac9-4ce3-bc7e-477f6eef3cc4>
– Channel PJSIP/1515-00000011 joined ‘simple_bridge’ basic-bridge <4332b6b4-1ac9-4ce3-bc7e-477f6eef3cc4>
> Bridge 4332b6b4-1ac9-4ce3-bc7e-477f6eef3cc4: switching from simple_bridge technology to native_rtp
> Remotely bridged ‘PJSIP/1515-00000011’ and ‘PJSIP/6060-00000012’ - media will flow directly between them
> 0x7fe068aa52c0 – Strict RTP learning after remote address set to: 192.168.29.46:5020
> 0x7fe068aa52c0 – Strict RTP switching to RTP target address 192.168.29.46:5020 as source
> 0x7fe068c77950 – Strict RTP learning after remote address set to: 192.168.117.150:5020
AsteriskNOW*CLI>

Have you set the remote network as local on each FreePBX? You need to go to SIP settings and enter the network of the remote FreePBX.

Also, it seems you are using direct media. Are you sure that you need direct media enabled?

Thank you for your replay,
before any think,can you explain me whats mean “it seems you are using direct media. Are you sure that you need direct media enabled”
Whats the steps can active this.

Hi @hunterman, what @arielgrin was trying to say is…

  • in Settings → Asterisk SIP Settings → Local Networks, make sure something like below are in place:

192.168.117.0/24 ; your local network
192.168.29.0/24 ; your remote network (via vpn)

  • in Settings → Asterisk SIP Settings → Chan SIP Settings → MEDIA & RTP Settings, make the following;

Reinvite Behavior = no

Thank you for your replay,
after I’m checked:
for your step 2

  • in Settings –> Asterisk SIP Settings –> Chan SIP Settings –> MEDIA & RTP Settings, make the following;

Reinvite Behavior = no

I checked but if you know I’m using PJSIP And not Chan SIP.
for your step 1

  • in Settings –> Asterisk SIP Settings –> Local Networks, make sure something like below are in place:

192.168.117.0/24 ; your local network
192.168.29.0/24 *; your remote network (via vpn)
In this step if you can advice me for which one is being to external address?
What is meant here in General SIP settings → NAT setting


note:
1- Ip address for vpn 192.168.12.153
2- local networks I’m need to call between 2 branches:
for example
192.168.62.0/24
192.168.29.0/24
I’m checked but the same problem.
Any help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.