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.




68 posts

Master Geek
+1 received by user: 14


Topic # 248086 9-Mar-2019 21:47
Send private message quote this post

Hi all

 

Is anyone currently using FreePBX or other flavour of asterisk with a 2degrees home phone plus line?

 

I'm after a hand with settings - I suspect it's my registration string but could be other settings. I've tried the settings from some fairly old threads on geekzone without success.

 

I can connect directly to the 2degrees home phone plus line via a Cisco SPA112, and via Bria so I'm sure my sip password is correct (although it contains some special characters which may be causing issues - I can't change this as the password changer on the 2degrees site is having issues).
Also, FreePBX is working fine with my other [2talk] trunk.

 

I get the following error:
Failed to authenticate on REGISTER to '07XXXXXXX@connect2.plus.snap.net.nz'

 

Current settings:

 

Register String: 07XXXXXXX@connect2.plus.snap.net.nz:<password>:07XXXXXXX@connect2.plus.snap.net.nz/07XXXXXXX

 

[Peer]
disallow=all
type=friend
host=connect2.plus.snap.net.nz
fromdomain=connect2.plus.snap.net.nz
username=07XXXXXXX
fromuser=07XXXXXXX
md5secret=<removed>
qualify=yes
context=from-trunk
nat=yes
dtmfmode=rfc2833
allow=ulaw&alaw
canreinvite=no
insecure=invite,port

 

[User]
md5secret=<removed>
type=user
context=from-trunk

 

Does anyone have any helpful advice (other than don't use asterisk)?

 

Thanks in advance,

 

Mike


Create new topic
27573 posts

Uber Geek
+1 received by user: 7034

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 2195035 10-Mar-2019 12:34
Send private message quote this post

Are you sure 2degrees require a MD5 hashed SIP password? That's pretty rare.

 

 

 

 




68 posts

Master Geek
+1 received by user: 14


  Reply # 2195043 10-Mar-2019 13:24
Send private message quote this post

No, I’m not sure at all that they need a hashed password.

Someone on here had previously used that in their setting. I’ve tried both ways and have the same problem.

I thought it could be a way around my worry with characters like $ ; + = and : in my generated password. Is there a way I’m supposed to escape them instead?

 
 
 
 


330 posts

Ultimate Geek
+1 received by user: 82


  Reply # 2195048 10-Mar-2019 14:02
Send private message quote this post

have you tried replacing the connect2.snap.net.nz with the ip of the sip server?

 

i know thats what i had to do with italk when i had a sip trunk with them as that was the only way that i could get it to register.

 

 

 

C:\Users\admin>tracert connect2.plus.snap.net.nz

 

Tracing route to wlgacme01.plus.snap.net.nz [123.255.8.34]
over a maximum of 30 hops:

 

1 <1 ms <1 ms <1 ms ------------[XXX.XXX.XXX.XXX]
2 4 ms 3 ms 3 ms ---------------- [XXX.XXX.XXX.XXX]
3 3 ms 5 ms 3 ms --------------- [XX.XXX.XXX.XXX]
4 6 ms 5 ms 6 ms as23655.akl-ix.nz [43.243.21.30]
5 as23655.akl-ix.nz [43.243.21.30] reports: Destination net unreachable.

 

Trace complete.


Mr Snotty
8423 posts

Uber Geek
+1 received by user: 4350

Moderator
Trusted
Lifetime subscriber



68 posts

Master Geek
+1 received by user: 14


  Reply # 2195148 10-Mar-2019 16:53
Send private message quote this post

Thanks for your pointers. Unfortunately I'm still no further ahead.

 

I've reverted back to using secret instead of md5secret as suggested by @sbiddle. Also, afaik the register string doesn't allow for a md5secret anyway.

 

 

sparkz25

 

have you tried replacing the connect2.snap.net.nz with the ip of the sip server?

 

i know thats what i had to do with italk when i had a sip trunk with them as that was the only way that i could get it to register.

 

 

Thanks, I tried but it doesn't help. Also, connect1.plus.snap.net.nz resolves to 123.255.8.34 as well. But if I change to connect1 on Bria the authentication fails there, so I need to stick with connect2.

 

Also, I started out with the settings in the very helpful link for 2degrees voip settings. They worked just fine for the SPA112 and Bria.

 

I'm thinking it's more and more likely a password issue. Currently capturing packets and trying to work out what's going on.




68 posts

Master Geek
+1 received by user: 14


  Reply # 2196003 11-Mar-2019 17:13
Send private message quote this post

I got this working, and thought I should post it as a reference in case others encounter the same issues.

 

The format for the register string is:
fromuser@fromdomain:secret@host/extension

 

e.g. 07XXXXXXX@connect2.plus.snap.net.nz:secret@connect2.plus.snap.net.nz/07XXXXXXX

 

The peer settings that are working for me are:

 

[PEER]
username=07XXXXXXX
type=friend
secret=<removed>
insecure=invite,port
host=connect2.plus.snap.net.nz
dtmfmode=rfc2833
fromuser=07XXXXXXX
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw&alaw

 

However, none of that was the actual cause of my problem. Perhaps the solution belongs in the VOIP forum instead of the 2degrees one. As it turns out, in the register string (and not elsewhere) you need to escape any semicolon in your password with a backslash.
I can't find reference to other characters - even with reading the RFC. I've tried a few different ones: % + and = don't need escaping. Presumably a colon would.

 

Mike


Create new topic


Donate via Givealittle


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 »

Amazon introduces new Kindle with adjustable front light
Posted 21-Mar-2019 20:14


A call from the companies providing internet access for the great majority of New Zealanders, to the companies with the greatest influence over social media content
Posted 19-Mar-2019 15:21


Two e-scooter companies selected for Wellington trial
Posted 15-Mar-2019 17:33


GeForce GTX 1660 available now
Posted 15-Mar-2019 08:47


Artificial Intelligence to double the rate of innovation in New Zealand by 2021
Posted 13-Mar-2019 14:47


LG demonstrates smart home concepts at LG InnoFest
Posted 13-Mar-2019 14:45


New Zealanders buying more expensive smartphones
Posted 11-Mar-2019 09:52


2degrees Offers Amazon Prime Video to Broadband Customers
Posted 8-Mar-2019 14:10


D-Link ANZ launches D-Fend AC2600 Wi-Fi Router Protected by McAfee
Posted 7-Mar-2019 11:09


Slingshot commissions celebrities to design new modems
Posted 5-Mar-2019 08:58


Symantec Annual Threat Report reveals more ambitious, destructive and stealthy attacks
Posted 28-Feb-2019 10:14


FUJIFILM launches high performing X-T30
Posted 28-Feb-2019 09:40


Netflix is killing content piracy says research
Posted 28-Feb-2019 09:33


Trend Micro finds shifting threats require kiwis to rethink security priorities
Posted 28-Feb-2019 09:27


Mainfreight uses Spark IoT Asset Tracking service
Posted 28-Feb-2019 09:25



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.