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.


jms042016

31 posts

Geek


#195809 5-May-2016 12:22
Send private message

Hi guys

 

I am trying to setup 2talk sip trunking with my FreePBX (stable - 10.13.66, FreePBX13, asterisk 13)

 

Here is my peer details:

 

type=friend
username=my_number
fromuser=my_number
secret=my_password
host=sip.2talk.co.nz
context=default
dtmfmode=rfc2833
disallow=all
allow=ilbc&gsm&alaw&ulaw
nat=yes
canreinvite=no
insecure=invite,port

 

User details:
[empty]

 

Register String:
my_number:my_password@sip.2talk.co.nz/my_number

 

in asterisk cli, i got this:
chan_sip.c:23771 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'my_number' to 'sip.2talk.co.nz'

 

I have checked my password and number, they are correct, any idea??

 

Thanks guys

 

 

 

James


Create new topic
speed
293 posts

Ultimate Geek


  #1547120 5-May-2016 12:27
Send private message

Try changing the port that you register to from 5060 to 50600 (I don't have the specific line for your peer definition to offer you, but I'm confident that some googling will find the answer for you fairly quickly).

 

The reason for the change is to avoid any SIP ALG that may be present in the NAT engine in your router. Broken SIP ALGs can frequently easily disrupt registrations and 2talk listen on 50600 in addition to 5060 specifically for this type of work-around.

 

 

 

Hope this helps :)




coffeebaron
6231 posts

Uber Geek

Trusted
Lifetime subscriber

  #1547321 5-May-2016 19:12
Send private message

Also use only alaw, ulaw & G722




Rural IT and Broadband support.

 

Broadband troubleshooting and master filter installs.
Starlink installer - one month free: https://www.starlink.com/?referral=RC-32845-88860-71 
Wi-Fi and networking
Cel-Fi supply and installer - boost your mobile phone coverage legally

 

Need help in Auckland, Waikato or BoP? Click my email button, or email me direct: [my user name] at geekzonemail dot com


wazzageek
1093 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #1547373 5-May-2016 22:43
Send private message

I'm pretty sure that I had a case where I couldn't register to 2talk (My internet was up and down all over the place) - so I had assumed that I'd locked up the 2talk registration.  I simply turned off the asterisk box and turned it back on again 10 minutes later (the theory being that the registration would settle down after that)

 

My setup is very similar to yours - I have "qualify=yes" and allow set to "ulaw,alaw" as the differences.

 

 




chevrolux
4962 posts

Uber Geek
Inactive user


  #1547437 6-May-2016 08:35
Send private message

This won't help registering..
But take out ilbc & gsm codes and add g722. Also disable g729 in 2talk portal.
Context should be 'from-trunk'.
And depending on your router a qualify entry may be helpful for nat issues.
Also, generally for a trunk using normal SIP registration type=peer is sufficient.

But I think the error is quite clear, bad Auth. So check your registration string is correct and your details are correct.
May be worth simply testing your credentials with a soft phone (or some other sip client), microsip is perfect for this.

jms042016

31 posts

Geek


  #1547438 6-May-2016 08:35
Send private message

OK, I have changed my codec to alaw, ulaw and g722, and my sip port to 50600. I still get the same message.

 

 

 

It looks like something to do with my router settings. I can make external calls, but I can't receive external calls. My router is SonicWALL.

 

 

 

My firewall allows sip.2talk.co.nz to my external IP address (tried VOIP service only, and all service)

 

My NAT policy translate the destination of sip.2talk.co.nz to my server LAN IP address ( tried VOIP service only, and all service)

 

 

 

What else did I miss??


jms042016

31 posts

Geek


  #1547601 6-May-2016 13:00
Send private message

Hi guys

 

I have changed my peer details to follows:

 

type=peer
username=MyNumber
fromuser=MyNumber
secret=MyPasswd
host=sip.2talk.co.nz
context=from-trunk
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw&G722
nat=yes
canreinvite=no
insecure=invite,port

 

[user content] & [user details] are empty

 

MyNumber:MyPasswd@sip.2talk.co.nz/MyNumber

 

I have checked my firewall & NAT policies (I even get someone else to have a look for me), I have check my account name and password.

 

I still get this message:
[2016-05-06 12:47:14] WARNING[1837]: chan_sip.c:23771 handle_response_register: Forbidden - wrong password on authentication for REGISTER for '02825562245' to 'sip.2talk.co.nz'

 

I have tested with a softphone, I can call external line and received external call. No problem at all.

 

When I tested with FreePBX, I can only call external line, but I can't receive external call.

 

 

 

Any ideas?

 

Cheers

 

James


sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #1547651 6-May-2016 14:38
Send private message

jms042016:

 

My router is SonicWALL.

 

 

 

Could well be this causing it. If anybody asked me to deploy a VoIP system using Sonicwall gear I'd tell them to buy new hardware for a start. The SIP transformations are terrible.

 

 

 

 


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
chevrolux
4962 posts

Uber Geek
Inactive user


  #1547669 6-May-2016 15:14
Send private message

Hahaha SonicWall.... run for the hills!!! Ive never had a good time with sip and SonicWalls.

Go through and make sure any ALGs are turned off. Perhaps also add firewall rules to accept all traffic from 2talk.

Then probably not a bad idea to add something like 'qualify=120' to help with keeping the nat state active. Also maybe play around with the 'nat=' line. Might help actually using nat=never on the off chance the sonicwall is actually nat'ing properly.

huckster
842 posts

Ultimate Geek

ID Verified
Lifetime subscriber

  #1547703 6-May-2016 16:16
Send private message

Anyone using IAX2 instead of SIP?

 

Edit: I did mean version 2 :-)


rphenix
985 posts

Ultimate Geek

Lifetime subscriber

  #1547704 6-May-2016 16:18
Send private message

IAX2 is fine and never given problems for me when I've used it a long time ago in a business situation with 2talk.  It would certainly get around the SIP ALG issues the sonicwall have.

 

You can make sonicwall's behave - they just have hidden pages to make things work properly though I do agree with previous sentiments - anytime I've had to make SIP work with sonicwall I sigh.


coffeebaron
6231 posts

Uber Geek

Trusted
Lifetime subscriber

  #1547770 6-May-2016 19:04
Send private message

Can you bypass the Sonicwall to troubleshoot. I.E. Get it work through a plain router first, then reintroduce the Sonic.




Rural IT and Broadband support.

 

Broadband troubleshooting and master filter installs.
Starlink installer - one month free: https://www.starlink.com/?referral=RC-32845-88860-71 
Wi-Fi and networking
Cel-Fi supply and installer - boost your mobile phone coverage legally

 

Need help in Auckland, Waikato or BoP? Click my email button, or email me direct: [my user name] at geekzonemail dot com


jms042016

31 posts

Geek


  #1549031 10-May-2016 09:33
Send private message

Thanks guys for all your help, I still can't get it working myself. So I get someone knows more about router/networking than me to have a look. And he fixed it for me, now it's working.

 

He said it could be conflicting NAT policies. eg A policy over write another policy. 

 

I have updated my peers details as some of you suggested, thanks a lot!

 

James


sparky1685
82 posts

Master Geek


  #1549053 10-May-2016 09:57
Send private message

Not sure if it's relevant, but when I set up 2talk at home last I found that the default 4 digit pin assigned by 2talk didn't authenticate until I replaced it with my own 4 digit pin. It might pay to try changing any default 2talk passwords in your setup.

 

 

 

 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.