Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

2 posts

Wannabe Geek

Topic # 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  This will map me to either or  The wlg server is and the chc server is

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 (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 '' mapped to host, 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 (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.


Create new topic
375 posts

Ultimate Geek
+1 received by user: 48

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

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

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:

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.