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.



49 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


49 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



49 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:

Hierarchy of a mistake: Gerry Brownlee
Created by joker97, last reply by sdav on 25-Jul-2014 13:16 (47 replies)
Pages... 2 3 4


Geekzone giveaway: Thecus N2310 NAS
Created by freitasm, last reply by Dunnersfella on 24-Jul-2014 23:17 (81 replies)
Pages... 4 5 6


MH 17 "shot down" all dead
Created by joker97, last reply by ScuL on 24-Jul-2014 21:40 (203 replies)
Pages... 12 13 14


Is chorus going to deliberately slow adsl internet down
Created by rugrat, last reply by NonprayingMantis on 25-Jul-2014 13:00 (43 replies)
Pages... 2 3


Huge Fuss, didn't even make it a year.
Created by networkn, last reply by Glassboy on 22-Jul-2014 19:50 (121 replies)
Pages... 7 8 9


Sickening floral smell in car, What next?
Created by TimA, last reply by TimA on 25-Jul-2014 12:51 (38 replies)
Pages... 2 3


Skinny's new aggressive ad campaign
Created by Yabanize, last reply by Yabanize on 22-Jul-2014 23:35 (52 replies)
Pages... 2 3 4


Giving notice
Created by IlDuce, last reply by kharris on 24-Jul-2014 17:36 (15 replies)


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.