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
3221 posts

Uber Geek
+1 received by user: 1022

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


 
 
 
 


25825 posts

Uber Geek
+1 received by user: 5553

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.



358 posts

Ultimate Geek
+1 received by user: 23


  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?

20576 posts

Uber Geek
+1 received by user: 3961

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

25825 posts

Uber Geek
+1 received by user: 5553

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.

25825 posts

Uber Geek
+1 received by user: 5553

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 »

New Zealand hits peak broadband data
Posted 18-Jan-2018 12:21


Amazon Echo devices coming to New Zealand early February 2018
Posted 18-Jan-2018 10:53


$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27


Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02


Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15


Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37


Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59


Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42


New Chief Technology Officer role created
Posted 19-Dec-2017 22:18


All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54


How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52


NOW to deploy SD-WAN to regional councils
Posted 19-Dec-2017 19:46


Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52


New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39



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.