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.


15 posts

Geek


Topic # 31581 23-Mar-2009 11:25
Send private message

I am pretty new to Asterisk and was wondering if I can get a little help.  I have read the basic guides but are still unable to recieve incoming calls - If i call my number the line rings disconnected or if I turn on voicemail from the VFX portal I get neil waka's VM.  I have turned on sip dubugging but see nothing in the logs so it is not hitting the Asterisk box at all.  I have also setup 2talk and can see incoming calls hitting the box so the ports I have forwarded (5060, 10000-20000) appear to be working fine.

I have tried entering the following information under sip.conf but when I run a ship show registry I get no attempt from VFX to register and it only show me 2talk's registered status.  I have now placed the information into users.conf (this is where 2talks working config has been entered) and it give me a status of sent but not registered as shown below:

users.conf

[general]
port=5060
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw
allow=alaw
registertimeout=20
regseconds=180

[VFX]
type=peer
fromuser=4_______7
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=6___________________c
username=F_____________________tz
register=4XXXXXX7:6XXXXXXXXXXXXnc:FbXXXXXXXXXXXXXXXtz@pan.wxnz.net/4XXXXXX7
context=incoming_calls

CLI<sip show registry
Host                            Username         Refresh State             Reg.Time                
pan.wxnz.net:5060        FbtnXXXXXXXC    120 Request Sent                                 
2talk.co.nz:5060           028XXXX86         05 Registered           Mon, 23 Mar 2009 09:51:26


I did not have to enter pan.wxnz.net into the hosts file as this is resolves ok unlike as.wxcnz.net.  I called Xnet tech support who said everything appears fine their end and it does not have to register so issue is at my end but I found another post where it appears it is showing to be registered so are now unsure if this is the case or not (obviously using a different host below):

CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
as.wxcnz.net:5060               99500000           165 Request Sent         Sat, 26 Apr 2008 10:37:40


In my log file I get the following error:
WARNING[3142] chan_sip.c: Got 404 Not found on SIP register to service FbtXXXXXXXXXXXX1gtz@pan.wxnz.net, giving up

I have tried replacing the username with my VFX number without the leading 0 but this will not register and gives an error in the log saying:

NOTICE[3142] chan_sip.c: Failed to authenticate on REGISTER to '48XXXX57@pan.wxnz.net' (Tries 3)

I have not included any extensions.conf as i cannot even see xnet hitting the asterisk box while 2talk is.

Any help would be hugely appreciated.
Thanks.




Create new topic
5279 posts

Uber Geek
+1 received by user: 2302

Trusted
Lifetime subscriber

  Reply # 202764 23-Mar-2009 12:12
Send private message

If you haven't yet: put Asterisk box in the DMZ zone for your router. This will help eliminate this being a firewall issue. What router do you have?

Also:
context=from-trunk  ??




Chorus has spent $1.4 billion on making their xDSL broadband network faster. If your still stuck on ADSL or VDSL, why not spend from $150 on a master filter install to make sure you are getting the most out of your connection?
I install - Naked DSL, DSL Master Splitters, VoIP, data cabling and general computer support for home and small business.
Rural Broadband RBI installer for Ultimate Broadband and Full Flavour

 

Need help in Auckland, Waikato or BoP? Click my email button, or email me direct: [my user name] at geekzonemail dot com




15 posts

Geek


  Reply # 202768 23-Mar-2009 12:21
Send private message

Thanks for your response, asterisk was already in DMZ - issue is now resolved with the following settings and can now see incoming calls hitting the box in the logs:

sip.conf
[general]
port=5060
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw
allow=alaw
registertimeout=20
regseconds=180
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
language=en
useragent=Asterisk PBX
register=4XXXXX7:<secret>:<username>@pan.wxnz.net/4XXXXXX7


users.conf
[VFX]
type=peer
fromdomain=pan.wxnz.net
fromuser=48XXXXX7
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=<secret>
username=<username>

Thanks.


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.