[asterisk-users] Hello again

aaberga/gmail aaberga at gmail.com
Fri Sep 30 06:07:25 CDT 2016


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..




More information about the asterisk-users mailing list