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 [[email protected]:3] Set(“PJSIP/6060-00000004”, “TECH=PJSIP”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/6060-00000004”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“PJSIP/6060-00000004”, “0”) in new stack
– Jumping to priority 12
– Executing [[email protected]: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 [[email protected]:1] GotoIf(“PJSIP/1515-00000011”, “1?ext-local,6060,1:followme-check,6060,1”) in new stack
– Goto (ext-local,6060,1)
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“PJSIP/1515-00000011”, “exten-vm,novm,6060,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“PJSIP/1515-00000011”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “TOUCH_MONITOR=1551074803.22”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “AMPUSER=1515”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/1515-00000011”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/1515-00000011”, “1?Set(REALCALLERIDNUM=1515)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/1515-00000011”, “AMPUSER=1515”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/1515-00000011”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/1515-00000011”, “AMPUSERCIDNAME=newtest”) in new stack
– Executing [[email protected]:8] ExecIf(“PJSIP/1515-00000011”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/1515-00000011”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/1515-00000011”, “AMPUSERCID=1515”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/1515-00000011”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/1515-00000011”, “CALLERID(all)=“newtest” <1515>”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/1515-00000011”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(GROUP(concurrency_limit)=1515)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/1515-00000011”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“PJSIP/1515-00000011”, “Macro Depth is 2”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/1515-00000011”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“PJSIP/1515-00000011”, “0?continue”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/1515-00000011”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/1515-00000011”, “__TTL=64”) in new stack
– Executing [[email protected]:21] GotoIf(“PJSIP/1515-00000011”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“PJSIP/1515-00000011”, “CALLERID(number)=1515”) in new stack
– Executing [[email protected]:38] Set(“PJSIP/1515-00000011”, “CALLERID(name)=newtest”) in new stack
– Executing [[email protected]:39] GotoIf(“PJSIP/1515-00000011”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“PJSIP/1515-00000011”, “CDR(cnam)=newtest”) in new stack
– Executing [[email protected]:41] Set(“PJSIP/1515-00000011”, “CDR(cnum)=1515”) in new stack
– Executing [[email protected]:42] Set(“PJSIP/1515-00000011”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1515-00000011”, “__EXTTOCALL=6060”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1515-00000011”, “__PICKUPMARK=6060”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:12] ExecIf(“PJSIP/1515-00000011”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/1515-00000011”, “0?Gosub(ext-intercom,nointercom6060,1())”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [[email protected]:16] ExecIf(“PJSIP/1515-00000011”, “0?ChanSpy(PJSIP/6060,q)”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/1515-00000011”, “0?MacroExit()”) in new stack
– Executing [[email protected]:18] Gosub(“PJSIP/1515-00000011”, “sub-record-check,s,1(exten,6060,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/1515-00000011”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1515-00000011”, “NOW=1551074803”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1515-00000011”, “__DAY=25”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/1515-00000011”, “__MONTH=02”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/1515-00000011”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/1515-00000011”, “__TIMESTR=20190225-090643”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/1515-00000011”, “__FROMEXTEN=1515”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/1515-00000011”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/1515-00000011”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/1515-00000011”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/1515-00000011”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/1515-00000011”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/1515-00000011”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/1515-00000011”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“PJSIP/1515-00000011”, “Exten Recording Check between 1515 and 6060”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “CALLTYPE=internal”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/1515-00000011”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1515-00000011”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/1515-00000011”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/1515-00000011”, “0?callee”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/1515-00000011”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [[email protected]:13] Set(“PJSIP/1515-00000011”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/1515-00000011”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:16] Gosub(“PJSIP/1515-00000011”, “recordcheck,1(dontcare,internal,6060)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/1515-00000011”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/1515-00000011”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:17] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:19] Macro(“PJSIP/1515-00000011”, “dial-one,HhTtr,6060”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “DEXTEN=6060”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “__CRM_SOURCE=1515”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/1515-00000011”, “0?Set(__EXTTOCALL=6060)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1515-00000011”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:5] GosubIf(“PJSIP/1515-00000011”, “0?screen,1()”) in new stack
– Executing [[email protected]:6] GosubIf(“PJSIP/1515-00000011”, “0?cf,1()”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/1515-00000011”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [[email protected]:10] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/1515-00000011”, “0?continue”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/1515-00000011”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/1515-00000011”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/1515-00000011”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [[email protected]:27] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [[email protected]:28] GosubIf(“PJSIP/1515-00000011”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “DEVICES=6060”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/1515-00000011”, “0?Set(DEVICES=060)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/1515-00000011”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/1515-00000011”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060”) in new stack
– Executing [[email protected]:8] GosubIf(“PJSIP/1515-00000011”, “1?zap2dahdi,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/1515-00000011”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1515-00000011”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1515-00000011”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/1515-00000011”, “THISPART2=PJSIP/6060”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/1515-00000011”, “0?Set(THISPART2=DAHDIIP/6060)”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/1515-00000011”, “NEWDIAL=PJSIP/6060&”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/1515-00000011”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/1515-00000011”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060”) in new stack
– Executing [[email protected]:11] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/1515-00000011”, “0?docheck”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/1515-00000011”, “Debug: Found PJSIP Destination PJSIP/6060”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/1515-00000011”, “0?doset”) in new stack
– Executing [[email protected]:12] NoOp(“PJSIP/1515-00000011”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [[email protected]:13] Set(“PJSIP/1515-00000011”, “THISDIAL=PJSIP/6060/sip:[email protected]:5060”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/1515-00000011”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [[email protected]:15] GotoIf(“PJSIP/1515-00000011”, “0?skipset”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/1515-00000011”, “DSTRING=PJSIP/6060/sip:[email protected]:5060&”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/1515-00000011”, “ITER=2”) in new stack
– Executing [[email protected]:18] GotoIf(“PJSIP/1515-00000011”, “0?begin”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/1515-00000011”, “0?Return()”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/1515-00000011”, “DSTRING=PJSIP/6060/sip:[email protected]:5060”) in new stack
– Executing [[email protected]:21] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/1515-00000011”, “0?nodial”) in new stack
– Executing [[email protected]:30] GotoIf(“PJSIP/1515-00000011”, “0?skiptrace”) in new stack
– Executing [[email protected]:31] GosubIf(“PJSIP/1515-00000011”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “DB(CALLTRACE/6060)=1515”) in new stack
– Executing [[email protected]:2] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:32] Set(“PJSIP/1515-00000011”, “D_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:33] GosubIf(“PJSIP/1515-00000011”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:34] NoOp(“PJSIP/1515-00000011”, "Blind Transfer: , Attended Transfer: , User: 1515, Alert Info: ") in new stack
– Executing [[email protected]:35] ExecIf(“PJSIP/1515-00000011”, “1?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:37] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:38] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:39] ExecIf(“PJSIP/1515-00000011”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:40] GosubIf(“PJSIP/1515-00000011”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:41] ExecIf(“PJSIP/1515-00000011”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:42] GosubIf(“PJSIP/1515-00000011”, “0?qwait,1()”) in new stack
– Executing [[email protected]:43] Set(“PJSIP/1515-00000011”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:44] Set(“PJSIP/1515-00000011”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:45] GotoIf(“PJSIP/1515-00000011”, “0?usegoto,1”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/1515-00000011”, “0?godial”) in new stack
– Executing [[email protected]:47] Gosub(“PJSIP/1515-00000011”, “sub-presencestate-display,s,1(6060)”) in new stack
– Executing [[email protected]:1] Goto(“PJSIP/1515-00000011”, “state-available,1”) in new stack
– Goto (sub-presencestate-display,state-available,1)
– Executing [[email protected]:1] Set(“PJSIP/1515-00000011”, “PRESENCESTATE_DISPLAY=(Available)”) in new stack
– Executing [[email protected]:2] Return(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:48] Set(“PJSIP/1515-00000011”, “CONNECTEDLINE(name,i)=new(Available)”) in new stack
– Executing [[email protected]:49] Set(“PJSIP/1515-00000011”, “CONNECTEDLINE(num)=6060”) in new stack
– Executing [[email protected]:50] Set(“PJSIP/1515-00000011”, “D_OPTIONS=HhTtrI”) in new stack
– Executing [[email protected]:51] Macro(“PJSIP/1515-00000011”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:52] ExecIf(“PJSIP/1515-00000011”, “0?Set(D_OPTIONS=HhtrII)”) in new stack
– Executing [[email protected]:53] NoOp(“PJSIP/1515-00000011”, “”) in new stack
– Executing [[email protected]:54] ExecIf(“PJSIP/1515-00000011”, “0?Set(D_OPTIONS=HhTtrIg)”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“PJSIP/6060-00000012”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/6060-00000012”, “Applying SIP Headers to channel PJSIP/6060-00000012”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/6060-00000012”, “TECH=PJSIP”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/6060-00000012”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“PJSIP/6060-00000012”, “0”) in new stack
– Jumping to priority 12
– Executing [[email protected]: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.