Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



50 posts

Geek
+1 received by user: 16


Topic # 138760 15-Jan-2014 21:46 Send private message

I realise this has been talked about before on this forum but the problem has never been resolved.

I have been using Asterisk for over a year. I was using it with iTalk originally but when their stability and customer service got the better of me I moved to 2Talk. However soon we will be moving to a new house with fibre and switch to Snap Plus because it was included in the price of fibre.

Naively I expected connecting the Asterisk server would be simple. I have read and tried some of the settings from Snap voip without FritzBoxitey and I am experiencing the same problems.

I have discovered from the Snap Plus web interface they they are using a Metaswitch Networks solution. After googling this I found the following Asterisk configuration infomation Asterisk How to connect to Metaswitch however this has been of no use. I am not seeing the 401 with the realm as they suggest you will. I just get a 403 forbidden with every password combination I can think of.

If anyone has any suggestions of what to try next they would be greatly appreciated. Alternatively if anyone has a Fritzbox and fibre that can get a Wireshark dump of the Frizbox connecting to the SIP server I would be incredibly grateful as at this stage I will have to buy a Fritzbox and sell it on Trade Me afterwards.

Thanks,
Niall

Create new topic


50 posts

Geek
+1 received by user: 16


  Reply # 981493 6-Feb-2014 20:20 2 people support this post Send private message

After getting a Fritzbox I have managed to work out the required settings.

Note this is not everything you need to get Asterisk working. This is mearly the settings to get Asterisk working with Snap and other configuration is required. There are guides on the internet on how to set it up.

The following is what I have in my users.conf for Asterisk. Replace 012345678 with your phone number.

[012345678]
type=friend
realm=connect1.plus.snap.net.nz
host=connect1.plus.snap.net.nz
username=012345678
md5secret=196dbf207649f3a93d09881ba3b01785
trunkname=Snap
context=DID_012345678
hasexten=no
hasiax=no
hassip=yes
registeriax=no
registersip=yes
trunkstyle=voip
insecure=invite
videosupport=no
fromuser=012345678
authuser=012345678
ignoresdpversion=yes
defaultexpiry=3600
disallow=all
allow=alaw,ulaw,gsm

To generate your MD5 secret you need to MD5 hash your phone number, the realm and your password in that order and separated by colons.

Example:
Phone Number: 012345678
Realm: connect1.plus.snap.net.nz
Password: password

The string to hash using the previous values would be "012345678:connect1.plus.snap.net.nz:password", without quotes. Hashing that string with MD5 results in "196dbf207649f3a93d09881ba3b01785", without quotes.

To create the hash use a online generator such as Miracle Salad's or use md5sum command under Linux as follows.
echo -n "012345678:connect1.plus.snap.net.nz:password" | md5sum



50 posts

Geek
+1 received by user: 16


  Reply # 981888 7-Feb-2014 15:13 One person supports this post Send private message

I forgot to add one setting.

fromdomain=connect1.plus.snap.net.nz

Add the from domain setting below the realm=connect1.plus.snap.net.nz.

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Moment of Truth?
Created by BarTender, last reply by gzt on 22-Sep-2014 15:42 (411 replies)
Pages... 26 27 28


GCSB Surveillance Vans?
Created by snowball, last reply by jjnz1 on 22-Sep-2014 21:48 (40 replies)
Pages... 2 3


Geekzone giveaway: ADATA SSD SP610 256GB and ADATA PV110 Power Bank
Created by freitasm, last reply by Elpie on 22-Sep-2014 23:15 (38 replies)
Pages... 2 3


Festival of Democracy
Created by gzt, last reply by sdav on 22-Sep-2014 23:31 (126 replies)
Pages... 7 8 9


Cheapest DSL with no contract in Auckland?
Created by TeaLeaf, last reply by TeaLeaf on 22-Sep-2014 17:52 (21 replies)
Pages... 2


Predict E(l)ection 2014 & win
Created by nakedmolerat, last reply by Geektastic on 22-Sep-2014 23:10 (83 replies)
Pages... 4 5 6


Electrical cable recall
Created by freitasm, last reply by richms on 22-Sep-2014 19:08 (17 replies)
Pages... 2


TV for under $1000?
Created by TeaLeaf, last reply by richms on 22-Sep-2014 20:46 (16 replies)
Pages... 2



Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.