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.




2 posts

Wannabe Geek


# 157683 9-Dec-2014 16:07
Send private message

I have been running Asterisk 1.4 for a few years now.  I have three providers which I have never had any issues with and Asterisk has been running fine.

I changed to Snap's SIP service earlier this year and have managed to get it essentially working OK, but I am having one minor problem that (judging by the absence of other posts) no one else is having.

I have the server set up as connect1.plus.snap.net.nz.  This will map me to either wlgacme01.plus.snap.net.nz or chcacme01.plus.snap.net.nz.  The wlg server is 123.255.8.74 and the chc server is 123.255.8.82.

The problem I am having is that sometimes I get a 403 Forbidden error when trying to make an outgoing call and incoming calls result in number unobtainable tone (I don't have voicemail).

I think the problem may be related to the IP addresses.  If I do a sip show peer 07xxxxxxx command in Asterisk, I get a ToHost of connect1.plus.snap.nz (which is correct) and an IP address of one of the two Snap servers.

Asterisk tells me what it is trying to map to like this:
ast_get_srv: SRV lookup for '_sip._udp.connect1.plus.snap.net.nz' mapped to host chcacme01.plus.snap.net.nz, port 5060

What seems to be happening is that when calls are failing, I am being told that I am connecting to either chcacme01 or wlgacme01 but when I do a sip show peer command the IP address shown is for the other server, ie I get the above mapping line indicating the chc server but the IP address will be 123.255.8.74 (the wlg server).   If I wait long enough, the IP address updates and things start working again.

I have tried setting the DNS refresh to 60 seconds (the default was 3600) and it makes no difference.

The only thing that I have found that gets things working again is to do a reload (full, not just SIP).  To this end, I have stuck a crontab line in that reloads asterisk every two minutes.  While this seems to be working fine, it seems tacky so I thought I would see if any experts out there could offer me some advice.

Thanks.

Create new topic
404 posts

Ultimate Geek


  # 1192548 10-Dec-2014 06:48
Send private message

is your connection stable, can you make succesful calls on both servers.



2 posts

Wannabe Geek


  # 1193777 10-Dec-2014 11:38
Send private message

Yes, both servers work fine.  It is only when the IP address hasn't changed to the server I am mapping to that I have issues.  But short of forcing a reload, I don't know how to get the IP address to update when the mapped server changes.  The relaod doesn't cut calls off or have any service impact, so it is a workable solution, but I would prefer to get to the bottom of it if I can.

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 »

Microsoft New Zealand Partner Awards results
Posted 18-Oct-2019 10:18


Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36


MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28


Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15


D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51



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.