Setup asterisk networking for no NATting

asterisk
configuration
pjsip
Tags: #<Tag:0x00007fafc3649ae0> #<Tag:0x00007fafc36499a0> #<Tag:0x00007fafc3649860>

(Cookiefamily) #1

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 [151@from-internal: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 [151@ext-local:1] Set("PJSIP/150-0000001d", "__RINGTIMER=15") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [151@ext-local: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 [s@macro-exten-vm:1] Macro("PJSIP/150-0000001d", "user-callerid,") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:2] Set("PJSIP/150-0000001d", "AMPUSER=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("PJSIP/150-0000001d", "0?report") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:5] Set("PJSIP/150-0000001d", "AMPUSER=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("PJSIP/150-0000001d", "0?limit") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/150-0000001d", "AMPUSERCIDNAME=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:9] GotoIf("PJSIP/150-0000001d", "0?report") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/150-0000001d", "AMPUSERCID=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:11] Set("PJSIP/150-0000001d", "__DIAL_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:12] Set("PJSIP/150-0000001d", "CALLERID(all)="client1" &lt;150&gt;") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:14] GotoIf("PJSIP/150-0000001d", "0?limit") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid: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 [s@macro-user-callerid: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 [s@macro-user-callerid: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 [s@macro-user-callerid:19] GotoIf("PJSIP/150-0000001d", "0?continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:21] Set("PJSIP/150-0000001d", "__TTL=64") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-user-callerid:38] Set("PJSIP/150-0000001d", "CALLERID(number)=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:39] Set("PJSIP/150-0000001d", "CALLERID(name)=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:40] GotoIf("PJSIP/150-0000001d", "0?cnum") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:41] Set("PJSIP/150-0000001d", "CDR(cnam)=client1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid:42] Set("PJSIP/150-0000001d", "CDR(cnum)=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-user-callerid: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 [s@macro-exten-vm:2] Set("PJSIP/150-0000001d", "RingGroupMethod=none") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm:3] Set("PJSIP/150-0000001d", "__EXTTOCALL=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm:4] Set("PJSIP/150-0000001d", "__PICKUPMARK=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@macro-exten-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 [s@macro-exten-vm: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 [s@macro-exten-vm: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 [s@macro-exten-vm: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 [s@macro-exten-vm: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 [s@macro-exten-vm: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 [s@macro-exten-vm: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 [s@macro-exten-vm:13] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@macro-exten-vm:15] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@macro-exten-vm:17] ExecIf("PJSIP/150-0000001d", "0?MacroExit()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@sub-record-check:1] GotoIf("PJSIP/150-0000001d", "0?initialized") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:2] Set("PJSIP/150-0000001d", "__REC_STATUS=INITIALIZED") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:3] Set("PJSIP/150-0000001d", "NOW=1584745091") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:4] Set("PJSIP/150-0000001d", "__DAY=20") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:5] Set("PJSIP/150-0000001d", "__MONTH=03") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:6] Set("PJSIP/150-0000001d", "__YEAR=2020") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:7] Set("PJSIP/150-0000001d", "__TIMESTR=20200320-235811") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:8] Set("PJSIP/150-0000001d", "__FROMEXTEN=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:9] Set("PJSIP/150-0000001d", "__MON_FMT=wav") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check:10] NoOp("PJSIP/150-0000001d", "Recordings initialized") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@sub-record-check: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 [s@sub-record-check: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 [s@sub-record-check: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 [s@sub-record-check: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 [s@sub-record-check: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 [exten@sub-record-check: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 [exten@sub-record-check:2] Set("PJSIP/150-0000001d", "CALLTYPE=internal") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check:3] ExecIf("PJSIP/150-0000001d", "0?Set(CALLTYPE=)") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check:4] Set("PJSIP/150-0000001d", "CALLEE=dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check: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 [exten@sub-record-check:6] GotoIf("PJSIP/150-0000001d", "0?callee") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check: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 [exten@sub-record-check:13] Set("PJSIP/150-0000001d", "RECMODE=dontcare") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check: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 [exten@sub-record-check: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 [exten@sub-record-check: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 [recordcheck@sub-record-check: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 [recordcheck@sub-record-check: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 [recordcheck@sub-record-check:3] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [exten@sub-record-check:17] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@macro-exten-vm:25] GosubIf("PJSIP/150-0000001d", "0?clrheader,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-exten-vm: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 [s@macro-dial-one:1] Set("PJSIP/150-0000001d", "DEXTEN=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:2] Set("PJSIP/150-0000001d", "__CRM_SOURCE=150") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one:4] Set("PJSIP/150-0000001d", "DIALSTATUS_CW=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:5] GosubIf("PJSIP/150-0000001d", "0?screen,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:6] GosubIf("PJSIP/150-0000001d", "0?cf,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one:10] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:11] GotoIf("PJSIP/150-0000001d", "0?continue") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:12] Set("PJSIP/150-0000001d", "EXTHASCW=ENABLED") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one:27] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [dstring@macro-dial-one:1] Set("PJSIP/150-0000001d", "DSTRING=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:2] Set("PJSIP/150-0000001d", "DEVICES=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:3] ExecIf("PJSIP/150-0000001d", "0?Return()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one: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 [dstring@macro-dial-one:5] Set("PJSIP/150-0000001d", "LOOPCNT=1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:6] Set("PJSIP/150-0000001d", "ITER=1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:7] Set("PJSIP/150-0000001d", "THISDIAL=PJSIP/151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:8] GotoIf("PJSIP/150-0000001d", "0?docheck") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one: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 [dstring@macro-dial-one:10] GotoIf("PJSIP/150-0000001d", "0?doset") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one: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 [dstring@macro-dial-one:12] Set("PJSIP/150-0000001d", "THISDIAL=PJSIP/151/sip:151@192.168.200.25:51111;ob") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one: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 [dstring@macro-dial-one:14] GotoIf("PJSIP/150-0000001d", "0?skipset") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:15] Set("PJSIP/150-0000001d", "DSTRING=PJSIP/151/sip:151@192.168.200.25:51111;ob&amp;") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:16] Set("PJSIP/150-0000001d", "ITER=2") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:17] GotoIf("PJSIP/150-0000001d", "0?begin") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:18] ExecIf("PJSIP/150-0000001d", "0?Return()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:19] Set("PJSIP/150-0000001d", "DSTRING=PJSIP/151/sip:151@192.168.200.25:51111;ob") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [dstring@macro-dial-one:20] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:29] GotoIf("PJSIP/150-0000001d", "0?nodial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:30] GotoIf("PJSIP/150-0000001d", "0?skiptrace") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [ctset@macro-dial-one: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 [ctset@macro-dial-one:2] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:32] Set("PJSIP/150-0000001d", "D_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one:42] GosubIf("PJSIP/150-0000001d", "0?qwait,1()") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:43] Set("PJSIP/150-0000001d", "__CWIGNORE=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:44] Set("PJSIP/150-0000001d", "__KEEPCID=TRUE") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:45] GotoIf("PJSIP/150-0000001d", "0?usegoto,1") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:46] GotoIf("PJSIP/150-0000001d", "0?godial") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@sub-presencestate-display: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 [state-not_set@sub-presencestate-display:1] Set("PJSIP/150-0000001d", "PRESENCESTATE_DISPLAY=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [state-not_set@sub-presencestate-display:2] Return("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one:49] Set("PJSIP/150-0000001d", "CONNECTEDLINE(num)=151") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one:50] Set("PJSIP/150-0000001d", "D_OPTIONS=HhTtr") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dialout-one-predial-hook:1] MacroExit("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one: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 [s@macro-dial-one:54] NoOp("PJSIP/150-0000001d", "") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-dial-one: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 [s@macro-dial-one:56] Dial("PJSIP/150-0000001d", "PJSIP/151/sip:151@192.168.200.25: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 [s@func-apply-sipheaders: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 [s@func-apply-sipheaders: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 [s@func-apply-sipheaders:3] Set("PJSIP/151-0000001e", "TECH=PJSIP") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@func-apply-sipheaders:4] Set("PJSIP/151-0000001e", "SIPHEADERKEYS=") in new stack
[2020-03-20 23:58:11] VERBOSE[4278][C-00000010] pbx.c: Executing [s@func-apply-sipheaders: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 [s@func-apply-sipheaders: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:151@192.168.200.25: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 &lt;2ff795f9-0954-4557-9e17-ae9457ff4eef&gt;
[2020-03-20 23:58:13] VERBOSE[4278][C-00000010] bridge_channel.c: Channel PJSIP/150-0000001d joined 'simple_bridge' basic-bridge &lt;2ff795f9-0954-4557-9e17-ae9457ff4eef&gt;
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] bridge_channel.c: Channel PJSIP/150-0000001d left 'simple_bridge' basic-bridge &lt;2ff795f9-0954-4557-9e17-ae9457ff4eef&gt;
[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 [h@ext-local:1] Macro("PJSIP/150-0000001d", "hangupcall,") in new stack
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-hangupcall: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 &lt;2ff795f9-0954-4557-9e17-ae9457ff4eef&gt;
[2020-03-20 23:58:45] VERBOSE[4278][C-00000010] pbx.c: Executing [s@macro-hangupcall: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 [s@macro-hangupcall: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 [s@macro-hangupcall: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 [s@macro-hangupcall: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!


#2

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.


(Cookiefamily) #3

Ok, that worked! Thank you very much!


(system) closed #4

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