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


Topic # 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
3347 posts

Uber Geek
+1 received by user: 1118

Subscriber

  Reply # 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


  Reply # 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


 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software
26227 posts

Uber Geek
+1 received by user: 5807

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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.



369 posts

Ultimate Geek
+1 received by user: 24


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

would suggest removing ilbc and gsm from the codecs.



195 posts

Master Geek


  Reply # 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?

20910 posts

Uber Geek
+1 received by user: 4108

Trusted
Subscriber

  Reply # 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

26227 posts

Uber Geek
+1 received by user: 5807

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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


  Reply # 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.

26227 posts

Uber Geek
+1 received by user: 5807

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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


  Reply # 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 »

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 »

Opera launches new mobile browser: Opera Touch
Posted 25-Apr-2018 20:45


TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39


Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25



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.