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:

Windows 10 announced, as well as developer preview
Created by macuser, last reply by KiwiNZ on 2-Oct-2014 19:18 (105 replies)
Pages... 5 6 7


What time will the Apple Store online be selling the iPhone 6?
Created by scotiwis, last reply by Bextinaa on 2-Oct-2014 19:30 (198 replies)
Pages... 12 13 14


Moment of Truth?
Created by BarTender, last reply by JimmyC on 29-Sep-2014 09:16 (441 replies)
Pages... 28 29 30


Can i have 2 ISP's at home?
Created by ReckITT, last reply by Lazarui on 30-Sep-2014 18:15 (49 replies)
Pages... 2 3 4


Samsung Galaxy S4
Created by beenz, last reply by beenz on 2-Oct-2014 19:02 (20 replies)
Pages... 2


Why is your nickname what it is, what are the origins of it?
Created by Presso, last reply by BlueShift on 2-Oct-2014 16:24 (96 replies)
Pages... 5 6 7


iPhone 6 From Spark - Order Dates and Pricing?
Created by Otagolad, last reply by Aquarius on 2-Oct-2014 19:31 (354 replies)
Pages... 22 23 24


Harvey Norman's Biggest Ever Retail Sale
Created by DravidDavid, last reply by joker97 on 2-Oct-2014 14:24 (30 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.