Sipgate.de and inbound call issue

Hi all,

I’m hoping someone can help me with this incoming issue.
I’m running Elastix v2.3.0 with FreePBX v2.8.1
My trunk setting is this:
srvlookup=yes
qualify=no
port=5060
disallow=all
context=error
bindaddr=0.0.0.0
allow=alaw&ulaw

My trunk register setting is: ACCOUNTNUMBER:[email protected]/ACCOUNTNUMBER

I’ve setup inbound route with DID # as account number provided by sipgate.de

The problem is that when I call DID that call never reaches my Elastix PBX

I’ve contacted sipgate and they said that my PBX is asking their server to authenticate when they try to forward the call?

What do I need to change on my end fix that?

TIA

U 2012/05/09 06:40:50.400667 76.121.xxx.xxx:19552 -> 217.10.79.9:5060
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP
217.10.79.9:5060;branch=z9hG4bK3518.7eee89a.0;received=217.10.79.9;rport=5060.

Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3518.7eee89a.0.
Via: SIP/2.0/UDP
217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK37cd01ab.
Via: SIP/2.0/UDP
217.116.117.70:5060;received=217.116.117.70;branch=z9hG4bK37cd01ab;rport=5060.

From: “017670185xxx” sip:[email protected];tag=as5f98ab61.
To: sip:[email protected];tag=as636bcd13.
Call-ID: [email protected].
CSeq: 102 INVITE.
Server: FPBX-2.8.1(1.8.11.0).
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH.
Supported: replaces, timer.
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“368dd2f0”.
Content-Length: 0.

This is an extract of my working setting, change the obvious stuff (i.e. username, secret, host, context, etc) and copy into your PEER details and USER details sections on your Sipgate trunk settings page.

username=your_numeric_username
type=peer
secret=your_password
qualify=yes
nat=yes
insecure=very
host=sipgate.co.uk
fromuser=your_numeric_username
fromdomain=sipgate.co.uk
dtmfmode=rfc2833
context=ext-did
authuser=your_numeric_username

Make sure:

  1. USER context field on the incoming settings matches the context you have specified in the settings above
  2. the DID number on your inbound route matches “your_numeric_username”

Good luck!

putting random sh*t in has been validated by years of cumulative experience of asterisk/freepbx experts. there is no better way.

What would you recommend?

I’m glad I got it to work because I came to the point where anything on the web I found did not work. So I’m glad suggestion worked.

Glad it worked out for you.

Cheers

putting random sh*t in until you get something that works ™

You’re right removing Peer Details section has no effect. it still works!
Screenshot > http://i.imgur.com/kVldy.jpg

wow, so many errors, the Peer Details section has no effect, you could leave it empty.

Anyone?

You’ve forgotten to add insecure=invite to your trunk definition.

Look at their sample asterisk config:

http://www.sipgate.de/team/faq/article/148/Wie_konfiguriere_ich_Asterisk_fuer_sipgate_team

Thanks for the reply!

I replaced my current trunk setting:

srvlookup=yes
qualify=no
port=5060
disallow=all
context=error
bindaddr=0.0.0.0
allow=alaw&ulaw

With the one from link provided and all what I could see in CLI while it was ringing on the other end is this:

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Remote UNIX connection
– Remote UNIX connection disconnected
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5

Thank you so much for reply!
It Works Now!

In case someone needs screenshots, here they are:

Trunk Setting http://i.imgur.com/9Z7xx.jpg

Inbound route http://i.imgur.com/SRfpw.jpg

Incredibly illuminating commentary there obelisk. Marvel us some more with your command of the english language!

Shall we have a “most elegant trunk config” competition???

You of course would win as you have all the answers…