SIP not registering

Hello

I have reviewed a number of posts without finding the anwser… I hope someone can help me.

I am trying to “register” an outbound sip trunk to a 3rd party. My * is behind a nat.

However, the host appears unreacheable when poked- see below…

sip.conf:
[general]
; NAT handling
externip=213.xx.yy.zz
localnet=192.168.1.5/24
nat=yes

[ekiga]
type=friend
username=username
secret=secret
host=ekiga.net
canreinvite=no
qualify=3000
insecure=port,invite

—> the OPTION message goes out, and the anwser comes back - but is not understood by Asterisk:

capture on the port 5060

U 192.168.1.5:5060 -> 194.120.0.198:5060
OPTIONS sip:sip.voipbuster.com SIP/2.0…Via: SIP/2.0/UDP 213.xx.yy.zz:5060;branch=z9hG4bK3ca2592
0;rport…From: “asterisk” sip:asterisk@213.xx.yy.zz;tag=as34661c57…To: <sip:sip.voipbuster.co
m>…Contact: sip:asterisk@213.xx.yy.zz…Call-ID: 5934068875fc33fc30e16193397b7adf@213.xx.yy.zz.
.CSeq: 102 OPTIONS…User-Agent: Asterisk PBX…Max-Forwards: 70…Date: Wed, 28 Jan 2009 15:43:32
GMT…Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY…Supported: replaces…
Content-Length: 0…

U 86.64.162.35:5060 -> 192.168.1.5:5060
SIP/2.0 200 OK…Via: SIP/2.0/UDP 192.168.1.5:5060;branch=z9hG4bK69fa648b;rport=5060…From: “ast
erisk” sip:asterisk@192.168.1.5;tag=as6fc0587b…To: sip:ekiga.net;tag=c64e1f832a41ec1c1f4e5
673ac5b80f6.c019…Call-ID: 75ad57ef7a785f6935e82c01598a321e@192.168.1.5…CSeq: 102 OPTIONS…Ser
ver: Kamailio (1.4.0-notls (i386/linux))…Content-Length: 0…

Any ideas ?

Many thanks

Jean

Hi,

To register with outbound SIP provider you will need to add the following line to your sip.conf:

register => username:password@mysipprovider.com

Many thanks - The title is not accurate enough - the register statement you suggest is for incoming calls.

My issue is that A* is not registering as a client to the VOIP¨provider, so it can terminate calls. It is actually the poke command that fails,

Any suggestions ?

J.

you “must” have these firewall holes for * to operate
5060 - * > prov
10000-20000 prov > * (you can reduce this, but have to have at least 1)

Many thanks - The FW ports are opened.

what surprises me is that the options message goes out with the public IP, and the 200/OK comes back with the private/nated @ - this happens with 2 different providers (voipbuster & ekiga), so I guess my box has to get that right !

I haven’t been looking at SIP for a while so intensively but on the way back, but IIRC the VIA header is stripped because it’s coming back to where it was sent from - that’s maybe why you don’t see the public address. Just a guess, but it’s something like that.

You need the register statement so your provider knows where to route the incoming calls. it is also used to authenticate outbound calls.

If you are interested, it’s part of the Location Server of a SIP server, to know where it’s users are.