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.




53 posts

Master Geek
+1 received by user: 17

Trusted

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


53 posts

Master Geek
+1 received by user: 17

Trusted

  Reply # 981493 6-Feb-2014 20:20
3 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



53 posts

Master Geek
+1 received by user: 17

Trusted

  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 »

New Zealand Ministry of Education chooses Unisys for cloud-based education resourcing management system
Posted 22-Nov-2017 22:00


Business analytics software powers profits for NZ wine producers
Posted 22-Nov-2017 21:52


Pyrios strikes up alliance with Microsoft integrator UC Logiq
Posted 22-Nov-2017 21:51


The New Zealand IT services ecosystem - it's all digital down here
Posted 22-Nov-2017 21:49


Volvo to supply tens of thousands of autonomous drive compatible cars to Uber
Posted 22-Nov-2017 21:46


From small to medium and beyond: Navigating the ERP battlefield
Posted 21-Nov-2017 21:12


Business owners: ERP software selection starts (and finishes) with you
Posted 21-Nov-2017 21:11


Why I'm not an early adopter
Posted 21-Nov-2017 10:39


Netatmo launches smart home products in New Zealand
Posted 20-Nov-2017 20:06


Huawei Mate 10: Punchy, long battery life, artificial intelligence
Posted 20-Nov-2017 16:30


Propel launch Disney Star Wars Laser Battle Drones
Posted 19-Nov-2017 21:26


UFB killer app: Speed
Posted 17-Nov-2017 17:01


The case for RSS — MacSparky
Posted 13-Nov-2017 14:35


WordPress and Indieweb: Take control of your online presence — 6:30 GridAKL Nov 30
Posted 11-Nov-2017 13:43


Chorus reveals technology upgrade for schools, students
Posted 10-Nov-2017 10:28



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.