<div dir="ltr"><div><div>Well, I can answer one of your questions.<br><br></div>To see the current external_media_address and external_signalling_address from the CLI you can issue a 'pjsip show transport <transport-name>'<br><br></div>Your router could have a built in sip helper that is rewriting the contact for your packets.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 2:56 PM, O. Hartmann <span dir="ltr"><<a href="mailto:ohartmann@walstatt.org" target="_blank">ohartmann@walstatt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm quite new to Asterisk and using Asterisk 13 on FreeBSD current. Asterisk is behind a<br>
NAT router, the physical setup is very much a trivial one. The Asterisk PBX is supposed<br>
to act as the telephone gateway for several VoIP/SIP phones.<br>
<br>
I'm using throughout pjsip as configuration, I have no experience with chan_sip since I<br>
started recently using Asterisk for several SoHo and lab's projects. So be alarmed, there<br>
may come some noobish questions.<br>
<br>
When planning and setting up the Asterisk, I had to deal with NAT. The Asterisk config<br>
object of type=transport knows about essential entries:<br>
<br>
local_net=                      <a href="http://192.168.254.1/24" rel="noreferrer" target="_blank">192.168.254.1/24</a><br>
bind=                           <a href="http://192.168.254.1:5060" rel="noreferrer" target="_blank">192.168.254.1:5060</a><br>
external_media_address=         dyndns FQDN<br>
external_signaling_address=     dyndns FQDN<br>
direct_media=                   no<br>
rtp_symmetric=                  yes<br>
force_rport=                    yes<br>
<br>
dyndns FQDN is the FQDN of my broadband access point provided by some dynamical DNS<br>
provider.<br>
<br>
This setup is not working properly with when external_media_address= and<br>
external_signaling_address= are set that way, but commenting out both makes all of the<br>
ITSP which provides me with service happy.<br>
<br>
I think, at this point I have no idea of the concept or, there is simply a missing link,<br>
even a (dangerously) misconfigured router - on which the Asterisk runs. When<br>
external_xxxx_xxxx are not set, I suppose they're set to <a href="http://0.0.0.0/0.0.0.0" rel="noreferrer" target="_blank">0.0.0.0/0.0.0.0</a>, aren't they,<br>
implying that they listen on all configured IPs?<br>
<br>
If so, is there a way to show the setting of external_media_address= and<br>
external_signaling_address= on the CLI?<br>
<br>
When using PJSIP with the setting excluding attributes external_xxx_xxx, does pjsip do<br>
some magic to traverse the NAT in a proper way? At this very moment, I do not understand<br>
how things would work avoiding setting external_media_address= and<br>
external_signaling_address=. The Asterisk 13 I'm running is supposed to be bound to IP<br>
192.168.254.1, which is routed to the gateway.<br>
<br>
My problem is, I don not understand why the communication is working fluently with both<br>
external_xxx_xxx atrributes commeneted out which I suppose to be crucial - following the<br>
Asterisk 13 documentation!<br>
<br>
Maybe someone can sched some light onto this. I think, my view on the matter is<br>
completely confused.<br>
<br>
Thanks in advance,<br>
<br>
oh<br>
<br>
Another point<br>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>