Setup asterisk networking for no NATting

Hello,

I’m having difficulty getting asterisk to work.
I only expect to have clients in the same subnet, there wont be any NAT in use. What are the options I should choose in the Asterisk SIP Settings?

For chan_sip I set the NAT to never, IP Configuration to “Public IP”
In the General SIP Settings I cleared the NAT Settings fields.

I can hear other participants by doing this, but I can’t end a call and after 30 seconds the call automatically closes (probably timeout?)

This is the log of asterisk:

[2020-03-20 23:58:11] VERBOSE[20483] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.200.97'
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio TOS bits 184
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio CoS mark 5
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/150-0000001d", "1?ext-local,151,1:followme-check,151,1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (ext-local,151,1)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "__RINGTIMER=15") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Macro("PJSIP/150-0000001d", "exten-vm,novm,151,0,0,0") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Macro("PJSIP/150-0000001d", "user-callerid,") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "TOUCH_MONITOR=1584745091.29") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "AMPUSER=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] GotoIf("PJSIP/150-0000001d", "0?report") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/150-0000001d", "1?Set(REALCALLERIDNUM=150)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] Set("PJSIP/150-0000001d", "AMPUSER=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:6] GotoIf("PJSIP/150-0000001d", "0?limit") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] Set("PJSIP/150-0000001d", "AMPUSERCIDNAME=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:8] ExecIf("PJSIP/150-0000001d", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:9] GotoIf("PJSIP/150-0000001d", "0?report") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:10] Set("PJSIP/150-0000001d", "AMPUSERCID=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:11] Set("PJSIP/150-0000001d", "__DIAL_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:12] Set("PJSIP/150-0000001d", "CALLERID(all)="client1" <150>") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/150-0000001d", "0?Set(CALLERID(all)=151)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/150-0000001d", "0?limit") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:15] ExecIf("PJSIP/150-0000001d", "0?Set(GROUP(concurrency_limit)=150)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:16] ExecIf("PJSIP/150-0000001d", "0?Set(CHANNEL(language)=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:17] NoOp("PJSIP/150-0000001d", "Macro Depth is 2") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:18] GotoIf("PJSIP/150-0000001d", "1?report2:macroerror") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-user-callerid,s,19)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/150-0000001d", "0?continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:20] ExecIf("PJSIP/150-0000001d", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:21] Set("PJSIP/150-0000001d", "__TTL=64") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:22] GotoIf("PJSIP/150-0000001d", "1?continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-user-callerid,s,38)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:38] Set("PJSIP/150-0000001d", "CALLERID(number)=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:39] Set("PJSIP/150-0000001d", "CALLERID(name)=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:40] GotoIf("PJSIP/150-0000001d", "0?cnum") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:41] Set("PJSIP/150-0000001d", "CDR(cnam)=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:42] Set("PJSIP/150-0000001d", "CDR(cnum)=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:43] Set("PJSIP/150-0000001d", "CHANNEL(language)=de_DE") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "RingGroupMethod=none") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] Set("PJSIP/150-0000001d", "__EXTTOCALL=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] Set("PJSIP/150-0000001d", "__PICKUPMARK=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] Set("PJSIP/150-0000001d", "RT=") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]n-vm:6] ExecIf("PJSIP/150-0000001d", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:8] ExecIf("PJSIP/150-0000001d", "0?Gosub(ext-intercom,*80151,1())") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:9] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:10] ExecIf("PJSIP/150-0000001d", "0?ChanSpy(PJSIP/151,q)") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] WARNING[4278][C-00000010] chan_sip.c: This function can only be used on SIP channels.
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:12] ExecIf("PJSIP/150-0000001d", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] ExecIf("PJSIP/150-0000001d", "0?Gosub(ext-intercom,*80151,1())") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:15] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:16] ExecIf("PJSIP/150-0000001d", "0?ChanSpy(PJSIP/151,q)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:17] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:18] Gosub("PJSIP/150-0000001d", "sub-record-check,s,1(exten,151,dontcare)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/150-0000001d", "0?initialized") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "__REC_STATUS=INITIALIZED") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] Set("PJSIP/150-0000001d", "NOW=1584745091") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] Set("PJSIP/150-0000001d", "__DAY=20") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] Set("PJSIP/150-0000001d", "__MONTH=03") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:6] Set("PJSIP/150-0000001d", "__YEAR=2020") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] Set("PJSIP/150-0000001d", "__TIMESTR=20200320-235811") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:8] Set("PJSIP/150-0000001d", "__FROMEXTEN=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:9] Set("PJSIP/150-0000001d", "__MON_FMT=wav") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:10] NoOp("PJSIP/150-0000001d", "Recordings initialized") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/150-0000001d", "0?Set(ARG3=dontcare)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:12] Set("PJSIP/150-0000001d", "REC_POLICY_MODE_SAVE=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/150-0000001d", "0?Set(REC_STATUS=NO)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/150-0000001d", "5?checkaction") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (sub-record-check,s,17)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/150-0000001d", "1?sub-record-check,exten,1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (sub-record-check,exten,1)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/150-0000001d", "Exten Recording Check between 150 and 151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "CALLTYPE=internal") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/150-0000001d", "0?Set(CALLTYPE=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] Set("PJSIP/150-0000001d", "CALLEE=dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] ExecIf("PJSIP/150-0000001d", "0?Set(CALLEE=dontcare)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:6] GotoIf("PJSIP/150-0000001d", "0?callee") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] GotoIf("PJSIP/150-0000001d", "1?caller") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (sub-record-check,exten,13)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] Set("PJSIP/150-0000001d", "RECMODE=dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] ExecIf("PJSIP/150-0000001d", "0?Set(RECMODE=dontcare)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:15] ExecIf("PJSIP/150-0000001d", "1?Set(RECMODE=dontcare)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:16] Gosub("PJSIP/150-0000001d", "recordcheck,1(dontcare,internal,151)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/150-0000001d", "Starting recording check against dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Goto("PJSIP/150-0000001d", "dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:17] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/150-0000001d", "1?macrodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-exten-vm,s,25)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:25] GosubIf("PJSIP/150-0000001d", "0?clrheader,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:26] Macro("PJSIP/150-0000001d", "dial-one,,HhTtr,151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "DEXTEN=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "__CRM_SOURCE=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/150-0000001d", "0?Set(__EXTTOCALL=151)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] Set("PJSIP/150-0000001d", "DIALSTATUS_CW=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] GosubIf("PJSIP/150-0000001d", "0?screen,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:6] GosubIf("PJSIP/150-0000001d", "0?cf,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] GotoIf("PJSIP/150-0000001d", "1?skip1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-dial-one,s,10)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:10] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:11] GotoIf("PJSIP/150-0000001d", "0?continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:12] Set("PJSIP/150-0000001d", "EXTHASCW=ENABLED") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] GotoIf("PJSIP/150-0000001d", "0?next1:cwinusebusy") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-dial-one,s,25)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:25] GotoIf("PJSIP/150-0000001d", "0?next3:continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-dial-one,s,27)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:27] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:28] GosubIf("PJSIP/150-0000001d", "1?dstring,1():dlocal,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "DSTRING=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Set("PJSIP/150-0000001d", "DEVICES=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/150-0000001d", "0?Return()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/150-0000001d", "0?Set(DEVICES=51)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] Set("PJSIP/150-0000001d", "LOOPCNT=1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:6] Set("PJSIP/150-0000001d", "ITER=1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] Set("PJSIP/150-0000001d", "THISDIAL=PJSIP/151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:8] GotoIf("PJSIP/150-0000001d", "0?docheck") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:9] NoOp("PJSIP/150-0000001d", "Debug: Found PJSIP Destination PJSIP/151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:10] GotoIf("PJSIP/150-0000001d", "0?doset") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:11] NoOp("PJSIP/150-0000001d", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:12] Set("PJSIP/150-0000001d", "THISDIAL=PJSIP/151/sip:[email protected]:51111;ob") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/150-0000001d", "0?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/150-0000001d", "0?skipset") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:15] Set("PJSIP/150-0000001d", "DSTRING=PJSIP/151/sip:[email protected]:51111;ob&") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:16] Set("PJSIP/150-0000001d", "ITER=2") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/150-0000001d", "0?begin") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:18] ExecIf("PJSIP/150-0000001d", "0?Return()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:19] Set("PJSIP/150-0000001d", "DSTRING=PJSIP/151/sip:[email protected]:51111;ob") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:20] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:29] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:30] GotoIf("PJSIP/150-0000001d", "0?skiptrace") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:31] GosubIf("PJSIP/150-0000001d", "1?ctset,1():ctclear,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "DB(CALLTRACE/151)=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:32] Set("PJSIP/150-0000001d", "D_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:33] GosubIf("PJSIP/150-0000001d", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:34] NoOp("PJSIP/150-0000001d", "Blind Transfer: , Attended Transfer: , User: 150, Alert Info: ") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:35] ExecIf("PJSIP/150-0000001d", "1?Set(ALERT_INFO=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:36] ExecIf("PJSIP/150-0000001d", "0?Set(ALERT_INFO=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:37] ExecIf("PJSIP/150-0000001d", "0?Set(ALERT_INFO=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:38] ExecIf("PJSIP/150-0000001d", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:39] ExecIf("PJSIP/150-0000001d", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:40] GosubIf("PJSIP/150-0000001d", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:41] ExecIf("PJSIP/150-0000001d", "0?Set(CHANNEL(musicclass)=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:42] GosubIf("PJSIP/150-0000001d", "0?qwait,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:43] Set("PJSIP/150-0000001d", "__CWIGNORE=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:44] Set("PJSIP/150-0000001d", "__KEEPCID=TRUE") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:45] GotoIf("PJSIP/150-0000001d", "0?usegoto,1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:46] GotoIf("PJSIP/150-0000001d", "0?godial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:47] Gosub("PJSIP/150-0000001d", "sub-presencestate-display,s,1(151)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Goto("PJSIP/150-0000001d", "state-not_set,1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (sub-presencestate-display,state-not_set,1)
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Set("PJSIP/150-0000001d", "PRESENCESTATE_DISPLAY=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:48] Set("PJSIP/150-0000001d", "CONNECTEDLINE(name,i)=client2") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:49] Set("PJSIP/150-0000001d", "CONNECTEDLINE(num)=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:50] Set("PJSIP/150-0000001d", "D_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:51] Macro("PJSIP/150-0000001d", "dialout-one-predial-hook,") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] MacroExit("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:52] ExecIf("PJSIP/150-0000001d", "0?Set(D_OPTIONS=HhtrI)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:53] ExecIf("PJSIP/150-0000001d", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:54] NoOp("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:55] ExecIf("PJSIP/150-0000001d", "0?Set(D_OPTIONS=HhTtrg)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:56] Dial("PJSIP/150-0000001d", "PJSIP/151/sip:[email protected]:51111;ob,,HhTtrb(func-apply-sipheaders^s^1)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_stack.c: PJSIP/151-0000001e Internal Gosub(func-apply-sipheaders,s,1) start
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] ExecIf("PJSIP/151-0000001e", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/151-0000001e", "Applying SIP Headers to channel PJSIP/151-0000001e") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] Set("PJSIP/151-0000001e", "TECH=PJSIP") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] Set("PJSIP/151-0000001e", "SIPHEADERKEYS=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] While("PJSIP/151-0000001e", "0") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_while.c: Jumping to priority 13
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:14] Return("PJSIP/151-0000001e", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_stack.c: Spawn extension (from-internal, 151, 1) exited non-zero on 'PJSIP/151-0000001e'
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_stack.c: PJSIP/151-0000001e Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_dial.c: Called PJSIP/151/sip:[email protected]:51111;ob
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio TOS bits 184
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
[2020-03-20 23:58:11] VERBOSE[20483] netsock2.c: Using SIP RTP Audio CoS mark 5
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_dial.c: PJSIP/151-0000001e is ringing
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] app_dial.c: PJSIP/151-0000001e is ringing
[2020-03-20 23:58:13] VERBOSE[4278][C-00000010] app_dial.c: PJSIP/151-0000001e answered PJSIP/150-0000001d
[2020-03-20 23:58:13] VERBOSE[4279][C-00000010] bridge_channel.c: Channel PJSIP/151-0000001e joined 'simple_bridge' basic-bridge <2ff795f9-0954-4557-9e17-ae9457ff4eef>
[2020-03-20 23:58:13] VERBOSE[4278][C-00000010] bridge_channel.c: Channel PJSIP/150-0000001d joined 'simple_bridge' basic-bridge <2ff795f9-0954-4557-9e17-ae9457ff4eef>
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] bridge_channel.c: Channel PJSIP/150-0000001d left 'simple_bridge' basic-bridge <2ff795f9-0954-4557-9e17-ae9457ff4eef>
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] app_macro.c: Spawn extension (macro-dial-one, s, 56) exited non-zero on 'PJSIP/150-0000001d' in macro 'dial-one'
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] app_macro.c: Spawn extension (macro-exten-vm, s, 26) exited non-zero on 'PJSIP/150-0000001d' in macro 'exten-vm'
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Spawn extension (ext-local, 151, 2) exited non-zero on 'PJSIP/150-0000001d'
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] Macro("PJSIP/150-0000001d", "hangupcall,") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/150-0000001d", "1?theend") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2020-03-20 23:58:45] VERBOSE[4279][C-00000010] bridge_channel.c: Channel PJSIP/151-0000001e left 'simple_bridge' basic-bridge <2ff795f9-0954-4557-9e17-ae9457ff4eef>
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/150-0000001d", "0?Set(CDR(recordingfile)=)") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/150-0000001d", "PJSIP/151-0000001e montior file= ") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/150-0000001d", "1?skipagi") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [[email protected]:7] Hangup("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/150-0000001d' in macro 'hangupcall'
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on 'PJSIP/150-0000001d

Thank you very much in advance!

In Asterisk SIP settings, confirm that External Address is your public IP and that Local Networks is correctly set (probably 192.168.200.0 / 24). Revert any changed settings on the chan_pjsip and chan_sip tabs. Restart (not just reload) Asterisk.

In the client, confirm that anything related to NAT is disabled (no STUN, TURN, ICE, etc.)

If you still have trouble, at the Asterisk command prompt, type
pjsip set logger on
and make a (failing) test call.
Paste the relevant section of the Asterisk log at https://pastebin.freepbx.org and post the link here.

Ok, that worked! Thank you very much!

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