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 »

Security concerns reach new peak, Unisys Security Index
Posted 27-Jun-2017 14:11


Behind Spark’s slow-burn 4.5G plan
Posted 26-Jun-2017 16:23


Red Hat unveils production-ready open source hyperconverged infrastructure
Posted 23-Jun-2017 22:10


Whatever ailed Vodafone broadband … seems to be fixed
Posted 23-Jun-2017 14:10


VMware NSX Meets Stringent Government Security Standards with Common Criteria Certification
Posted 22-Jun-2017 19:05


Brother launches next-generation colour laser printers and all-in- ones for business
Posted 22-Jun-2017 18:56


Intel and IOC announce partnership
Posted 22-Jun-2017 18:50


Samsung Galaxy Tab S3: Best Android tablet
Posted 21-Jun-2017 12:05


Wellington-based company helping secure Microsoft browsers
Posted 20-Jun-2017 20:51


Endace delivers high performance with new 1/10/40 Gbps packet capture card
Posted 20-Jun-2017 20:50


You can now integrate SMX security into Microsoft Office 365, Google and other cloud email platforms
Posted 20-Jun-2017 20:47


Ravensdown launches new decision-making tool HawkEye
Posted 19-Jun-2017 15:38


Spark planning to take on direct management of all consumer stores
Posted 19-Jun-2017 10:03


Qrious acquires Ubiquity
Posted 14-Jun-2017 12:21


Spark New Zealand prepares for 5G with Nokia
Posted 14-Jun-2017 12:16



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.