Your external addres seems wrong. As you are doing natting, you need to
set to you external (natted behind firewall).
El 30/09/16 a les 13:07, aaberga/gmail ha escrit:> Hi,
>
> after a long pause (Asterisk 1.8 times), I have started again playing with
VOIP. A lot has changed since last time I did setup an Asterisk system!
>
> So I am asking for some help.
>
> ++++++++++++++++
>
> PJSIP seems tougher..
>
> So my problem is that I do have a test system up in the cloud, behind a
firewall. I am trying to make the ?Hello World!? mandatory call between two
iPhones (with the Bria SIP client).
>
> Outcomes are erratic.
>
> ===============>
> This is the pjsip.conf file:
>
> ??????????????????????
>
> [transport-udp-nat]
> type=transport
> protocol=udp
> bind=0.0.0.0
> local_net=10.2.12.3/32
> local_net=127.0.0.1/32
> external_media_address=10.2.12.2
> external_signaling_address=10.2.12.2
>
> ;===============Messagenet TRUNK
>
> [messagenet_reg]
> type=registration
> transport=transport-udp-nat
> outbound_auth=messagenet_auth
> server_uri=sip:xxxxxxxxx at sip.messagenet.it:5061
> client_uri=sip:xxxxxxxxx at sip.messagenet.it:5061
>
> [messagenet_auth]
> type=auth
> auth_type=userpass
> password=xxxxxxxx
> username=xxxxxxxx
>
> [messagenet_aor]
> type=aor
> contact=sip:sip.messagenet.it:5061
>
> [messagenet]
> type=endpoint
> transport=transport-udp-nat
> context=messagenet_incoming
> disallow=all
> allow=ulaw
> allow=alaw
> outbound_auth=messagenet_auth
> aors=messagenet_aor
>
> [messagenet_id]
> type=identify
> endpoint=messagenet
> match=sip.messagenet.it
>
> ;===============Extension 2102
>
> [2102]
> type=endpoint
> context=internal
> ;disallow=all
> allow=ulaw
> allow=alaw
> allow=g729
> transport=transport-udp-nat
> auth=auth2102
> aors=2102
> rtp_symmetric=yes
> force_rport=yes
> ice_support=yes
> direct_media=no
>
>
> [auth2102]
> type=auth
> auth_type=userpass
> password=xxxxxxxxxxxxxx
> username=2102
>
> [2102]
> type=aor
> max_contacts=1
>
> ;===============Extension 2103
>
> [2103]
> type=endpoint
> context=internal
> ;disallow=all
> allow=ulaw
> allow=alaw
> allow=g729
> transport=transport-udp-nat
> auth=auth2103
> aors=2103
> rtp_symmetric=yes
> force_rport=yes
> ice_support=yes
> direct_media=no
>
> [auth2103]
> type=auth
> auth_type=userpass
> password=xxxxxxxxxxxxxx
> username=2103
>
> [2103]
> type=aor
> max_contacts=1
>
> ===============================>
> This is a trace of what I do see from the console.
>
> First I let the Bria clients connect. Then I try to call terminal 1 from
terminal 2. Most of the times there is no route to the destination, even if it
appears as an online AOR (whatever that means!! Ahhh: Good olde times of Peer,
Friend, etc? ;-)
>
> A couple of times I got a connection, with the typical one side only audio
of NAT traversal problems.
>
> BTW: The iPhones are behind TWO nats (one is given by the broadband router,
one by the WiFi router that gives a better WiFi cover for in-house things).
>
> My understanding is that I did something wrong in letting the phones
?register? them as present and available to receive calls.
>
> If only I knew what is wrong? I have tried random combinations of
rtp_symmetric, force_rport, and friends; nothing final discovered...
>
> ===>
> Thanks in advance for any help,
> Aldo
>
>
> PS: Setting up Zoiper as IAX client works of course like a charm on the
VOIP side. The only catch is that Zoiper has less than optimal background
support on IOS? And I have no plan to make an IAX client myself!
>
> I want to get my old Asterisk apps back online and the VOIP client part
makes no sense to me..
>
>
--
Joan Aym?
Departamento de SAT
joan.ayma at ackstorm.es <mailto:joan.ayma at ackstorm.es>
ackstorm <http://www.ackstorm.es>
C/ Catalunya 72 Local, 08840 Viladecans - Barcelona
902 888 345 <tel:+34902888345> | info at ackstorm.es
<mailto:info at ackstorm.es> | **ackstorm.es**
<http://www.ackstorm.es>
Follow us! Twitter <https://twitter.com/ackstormsl> LinkedIn
<https://www.linkedin.com/company/ack-storm> Google+
<https://plus.google.com/106323983704675179490/about>
Este mensaje electr?nico contiene informaci?n de ACK STORM, S.L. que es
privada y confidencial, siendo para el uso exclusivo de la persona(s) o
entidades arriba mencionadas. Si usted no es el destinatario se?alado,
le informamos que cualquier divulgaci?n, copia, distribuci?n o uso de
los contenidos est? prohibida. Si usted ha recibido este mensaje por
error, por favor borre su contenido y comun?quenoslo en la direcci?n
ackstorm at ackstorm.es <mailto:ackstorm at ackstorm.es>