Hello Again

Home » Asterisk Users » Hello Again
Asterisk Users 2 Comments

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@sip.messagenet.it:5061
client_uri=sip:xxxxxxxxx@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..

2 thoughts on - Hello Again

  • 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:


    Joan Aymà
    Departamento de SAT
    joan.ayma@ackstorm.es

    ackstorm <http://www.ackstorm.es>

    C/ Catalunya 72 Local, 08840 Viladecans – Barcelona
    902 888 345 | info@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@ackstorm.es

  • [stuff deleted]

    You might want to comment out all references to g729 (which needs a special licence) and just use alaw (the native codec of the PSTN) throughout.

    If one of the phones is deciding to use g729 and your Asterisk doesn’t have the relevant licence, then you might well get all manner of strange things happening.

    Even if you have g729 licences, try and get it working with alaw first. The fewer things there are that could go wrong, the better. It’s always best to get it working with the simplest possible setup first, and only then add sophistication.