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.




195 posts

Master Geek


#150582 27-Jul-2014 16:48
Send private message

Hi gurus. I've run up rasPBX / Rpi to replace an aging PIAF system however cannot get the 2talk trunk to register. On the same LAN both an SPA2000 registers fine, as does the working old pIAF box. I've copied the setup across, but cannot tell why the rasPBX box won't register. Has anyone got rasPBX running with 2talk? If so can they share their (redacted) PEER and USER settings or any other suggestions would be gratefully received!

Create new topic
4495 posts

Uber Geek

Trusted

  #1096721 27-Jul-2014 19:34
Send private message

DNS is quite often a problem. Have you configured name servers? If you have a look at the Asterisk Logfiles that will tell you a good amount of what's going on.

Maybe post up your config too so we can have a look.



195 posts

Master Geek


  #1096731 27-Jul-2014 19:59
Send private message

Yep, good call, I think it was DNS. I was able to ping web addresses (e.g. sip.2talk.co.nz) from the rasPBX which may have misled me into thinking DNS was all working properly. Since I put the DNS server IPs for my Internet connection into resolv.conf AND cold rebooted it now registers to expectation.  (form of nameservers [] )

FWIW I have:

type=friend
username=[2talk#]
fromuser=[2talk#]
secret=[secret]
host=sip.2talk.co.nz
context=from-trunk
dtmfmode=rfc2833
disallow=all
allow=ilbc&gsm&alaw&ulaw
;allow=g729
nat=yes
canreinvite=no
insecure=very

USER details:
secret=[secret]
type=user
context=from-trunk


 
 
 
 


28947 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #1096747 27-Jul-2014 20:36
Send private message

Asterisk always has had (and still does have) a major issue with chan_sip and DNS. When DNS resolution is lost all SIP connectivity goes down, even local phones. The issue is resolved in Asterisk 12 with PJSIP.

Best practice is to never use a FQDN for your host, or if you do, to ensure you have DNSmasq or another such DNS cache running locally.



442 posts

Ultimate Geek


  #1096768 27-Jul-2014 21:08
Send private message

would suggest removing ilbc and gsm from the codecs.



195 posts

Master Geek


  #1096799 27-Jul-2014 22:20
Send private message

johny99: would suggest removing ilbc and gsm from the codecs.
Interesting, thank you. Can you provide the basis for this advice?

23266 posts

Uber Geek

Trusted
Subscriber

  #1096810 27-Jul-2014 22:58
Send private message

Hinko: Interesting, thank you. Can you provide the basis for this advice?


They sound like crap? I run alaw and ulaw only. Cant stand talking over the others.




Richard rich.ms

28947 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #1096867 28-Jul-2014 08:43
Send private message

Hinko:
johny99: would suggest removing ilbc and gsm from the codecs.
Interesting, thank you. Can you provide the basis for this advice?


There are very few phones out there that support GSM and/or ILBC codecs. G.711 alaw is the standard for VoIP interconnects and ISDN interconnects between networks.

Assuming your VoIP provider does support GSM and/or ILBC you could end up with a situation where your SIP endpoint uses G.71 ulaw or alaw to speak to Asterisk, which then has to transcode the call to GSM and/or ILBC to speak to your VoIP provider, who then has to transcode this back to G.711 alaw to connect the call to another party.

Transcoding a call twice is not only a waste of resources, it also means call quality will be impacted significantly.



 
 
 
 




195 posts

Master Geek


  #1096991 28-Jul-2014 11:10
Send private message

sbiddle: Asterisk always has had (and still does have) a major issue with chan_sip and DNS. When DNS resolution is lost all SIP connectivity goes down, even local phones.

Looking at it maybe that's because FreePBX (at least older versions) seem to have not been well designed to cover DNS? FreePBX seems to write the resolv.conf file itself, however if its not asked for the DNS stuff, and does not work it out, then it has difficulty inserting it into the file, and it seems to overwrite a corrected file!
The current version of rasPBX does not seem to do this though.

28947 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #1097087 28-Jul-2014 13:29
Send private message

Hinko:
sbiddle: Asterisk always has had (and still does have) a major issue with chan_sip and DNS. When DNS resolution is lost all SIP connectivity goes down, even local phones.

Looking at it maybe that's because FreePBX (at least older versions) seem to have not been well designed to cover DNS? FreePBX seems to write the resolv.conf file itself, however if its not asked for the DNS stuff, and does not work it out, then it has difficulty inserting it into the file, and it seems to overwrite a corrected file!
The current version of rasPBX does not seem to do this though.


It's nothing to do with FreePBX. It's an inherent architecture issue with Asterisk

Any issues with DNS settings or resolve.conf are nothing to do with Asterisk - they're OS issues. FreePBX is merely a GUI for Asterisk, DNS is a core OS thing.

For obvious reasons most people would have their PBX in a static IP so would therefore manually set their IP and DNS in the OS.






195 posts

Master Geek


  #1097103 28-Jul-2014 13:45
Send private message

sbiddle:

It's nothing to do with FreePBX. It's an inherent architecture issue with Asterisk

Any issues with DNS settings or resolve.conf are nothing to do with Asterisk - they're OS issues. FreePBX is merely a GUI for Asterisk, DNS is a core OS thing.

For obvious reasons most people would have their PBX in a static IP so would therefore manually set their IP and DNS in the OS.

My older PIAF box generates and writes a new resolv.conf at boot time, including "; generated by /sbin/dhclient-script" which makes it hard for the admin to manually set this and control this in the OS and set external ISP appropriate DNS servers. With luck that is all history now, but possibly something to do with the apparent DNS reputation?

Create new topic



Twitter and LinkedIn »



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 »

Samsung Announces 2020 QLED TV Range
Posted 20-May-2020 16:29


D-Link A/NZ launches AI-Powered body temperature measuring system
Posted 20-May-2020 16:22


NortonLifeLock Online Banking Protection now available for New Zealand banks
Posted 20-May-2020 16:14


SD Express delivers new gigabyte speeds for SD memory cards
Posted 20-May-2020 15:00


D-Link A/NZ launches Nuclias cloud managed network solution hosted in Australia
Posted 11-May-2020 17:53


Logitech introduces new video streaming solution for home studios
Posted 11-May-2020 17:48


Next generation Volvo cars to be powered by Luminar LiDAR technology
Posted 7-May-2020 13:56


D-Link A/NZ launches Wi-Fi Certified EasyMesh system
Posted 7-May-2020 13:51


Spark teams up with Microsoft to bring Xbox All Access to New Zealand
Posted 7-May-2020 13:01


Microsoft plans to establish its first datacenter region in New Zealand
Posted 6-May-2020 11:35


Genesis School-gen has joined forces with Mind Lab Kids
Posted 1-May-2020 12:53


Malwarebytes expands into privacy with fast, frictionless VPN
Posted 30-Apr-2020 16:06


Kordia to donate TV airtime on Channel 200 to community groups
Posted 30-Apr-2020 16:00


OPPO A91 is a high specs mid-range smartphone
Posted 23-Apr-2020 16:44


NordVPN rolling out NordLynx new generation VPN protocol based on WireGuard
Posted 23-Apr-2020 16:37



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.