pjsip logger on, is showing the DDNS hostname instead of the IP address:
“sip:[email protected]” instead of “sip:[email protected]”.
The IP appears at times, but I’m not really sure what I should be looking for.
No RTP audio now, even though I have set the numeric IP address back againand rebooted the system. It does seem to take a while to
It seems to me that FreePBX or Asterisk is not resolving the DDNS hostname once, then using the resulting IP address (which is what I would expect it to be doing), then waiting the appropriate interval.
I should mention again that this issue only occurs on my remote extensions (those on the outside of my NAT) and when I go back to using the numeric IP, RTP audio comes back (though it does seem to take many minutes). Calls always go through, no matter whether the field is set to a DDNS hostnae or a numeric IP, but setting a hostname kills the audio.
Here’s a screengrab of the log on a call I just made (after rebooting the PC with the numeric IP address in the NAT “External Address” field. 204 is my SIP Softphone coming in from my cellphone, and 203 is the IP phone on my desk. 108.49.239.141:2760 is the correct external address and port on my NAT box and 12.74.59.163 is my cell phone’s IP
1724875[2026-03-30 16:02:38] VERBOSE[2296] res_pjsip_logger.c: <— Transmitting SIP response (1140 bytes) to TCP:12.74.59.163:47720 —>
1724876SIP/2.0 200 OK
1724877Via: SIP/2.0/TCP 10.186.220.230:36031;rport=47720;received=12.74.59.163;branch=z9hG4bK-524287-1—040a8f281e6e0935;alias
1724878Call-ID: 687-d0WdsEkLKvB_C_b8_g..
1724879From: “Asterisk 204” sip:[email protected];tag=3123ea34
1724880To: sip:[email protected];tag=675d2873-4934-4976-8ba4-87d7f0014442
1724881CSeq: 2 INVITE
1724882Server: FPBX-17.0.28(21.11.0)
1724883Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INFO, MESSAGE, REFER
1724884Contact: sip:108.49.239.141:2760;transport=TCP
1724885Supported: 100rel, timer, replaces, norefersub
1724886Session-Expires: 1800;refresher=uac
1724887Require: timer
1724888P-Asserted-Identity: “Peter desk” sip:[email protected]
1724889Content-Type: application/sdp
1724890Content-Length: 384
1724891
1724892v=0
1724893o=- 0 3 IN IP4 108.49.239.141
1724894s=Asterisk
1724895c=IN IP4 108.49.239.141
1724896t=0 0
1724897m=audio 12946 RTP/AVP 0 8 3 9 120 101
1724898a=rtpmap:0 PCMU/8000
1724899a=rtpmap:8 PCMA/8000
1724900a=rtpmap:3 GSM/8000
1724901a=rtpmap:9 G722/8000
1724902a=rtpmap:120 opus/48000/2
1724903a=fmtp:120 maxaveragebitrate=64000;useinbandfec=1;usedtx=1
1724904a=rtpmap:101 telephone-event/8000
1724905a=fmtp:101 0-16
1724906a=ptime:20
1724907a=maxptime:20
1724908a=sendrecv