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.




137 posts

Master Geek
Inactive user


Topic # 21352 23-Apr-2008 21:57
Send private message

Allo,

I got VFX provisioned on my line cause I could and it's free... YAY!  Umm, I know nothing about Asterisk / VoIP :P

Has anyone got any cheat sheets, links to resources, etc... what I am looking for is a basic "What you need for Asterisk to work with your provider cheat sheet..." and a "How to use your softphone..." type guides.  I don't have an ATA yet... just testing the water before I jump ship to fusion (and cause I like to try stuff like this).

I got it installed and running, when I do a "sip show peers" I get this...

*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
Walter/Walter              192.168.1.100    D          10086    Unmonitored
VFX/<AUTHHERE>     58.28.20.150         N      5060     Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]

Walter is the softphone running on my pc... does this mean its registered?  What now?

Create new topic
BDFL - Memuneh
58093 posts

Uber Geek
+1 received by user: 9633

Administrator
Trusted
Geekzone
Subscriber

Reply # 125991 23-Apr-2008 22:02
Send private message

Check Tony Hughes blog, some old posts have a complete Asterisk configuration for VFX IIRC.





3595 posts

Uber Geek
+1 received by user: 79

Trusted
WorldxChange

  Reply # 126014 24-Apr-2008 06:07
Send private message

Here is a good start Point

http://www.geekzone.co.nz/forums.asp?ForumId=65&TopicId=17174

which leads into this great little guide from Tony Hughes http://www.geekzone.co.nz/tonyhughes/4186 





Yes I am a employee of WxC (My Profile) ... but I do have my own opinions as well Wink

             

https://www.facebook.com/wxccommunications

 
 
 
 




137 posts

Master Geek
Inactive user


  Reply # 126218 24-Apr-2008 20:56
Send private message

Thanks guys, wow, I didn't think I would get the Ops Manager @ Xnet and the Geekzone admin both replying to my post... <g>

I did check out both Maverick's Asterisk post and also Tony's blog.  I have got the settings in Maverick's post configured and really just need a basic guide about some of the fundamentals of Asterisk and most (if not all) of Tony's posts refer to Trixbox and hence web interface configuration which isn't relevant.  I am not interested in using something that basically hides all the configuration behind a shiney web interface (yea yea I know stupid of me but hey, you don't learn anything that way).

I want to know stuff like

What's a dial plan, where you need to use it
What's a trunk, how you configure it
etc, etc

I have done some quick searches on the net, but not found anything that's been really helpful and instead of wading through a "Dummies guide to Asterisk" just to get a basic understanding of the components I was hoping some of the knowledgable forum members might have just such a resource book marked.

No worries, will keep searching.

30 posts

Geek


  Reply # 126352 25-Apr-2008 19:53
Send private message

Have a read of this - it's a very comprehensive book on how to set up asterisk, what all the terminology means etc. It's also very easy to understand, and freely available - kudos to O'Reilly for this.



137 posts

Master Geek
Inactive user


  Reply # 126443 26-Apr-2008 10:42
Send private message

Thanks Bletch, just what I was after, will post some confs and links once I get this all working :)

Have also found chris021's blog post on the basic sip.conf for VFX which got me registered.

Connected to Asterisk 1.4.19.1 currently running on nix-1 (pid = 2370)
Verbosity is at least 3

nix-1*CLI> sip show peers

Name/username Host Dyn Nat ACL Port Status
Joseph (Unspecified) D 0 Unmonitored
Walter/Walter 192.168.1.100 D 55912 Unmonitored
VFX/ 58.28.20.150 N 5060 Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 1 offline]

nix-1*CLI> sip show registry
Host Username Refresh State Reg.Time
as.wxcnz.net:5060 99500000 165 Registered Sat, 26 Apr 2008 10:37:40


Now just working out the dialplans...

EDIT: umm spoke too soon

nix-1*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
[Apr 26 10:43:45] NOTICE[2379]: chan_sip.c:7492 sip_reg_timeout: -- Registration for '99500000@as.wxcnz.net' timed out, trying again (Attempt #10)


Will check with Xnet to see if I have something wrong in my setup to stop registration.

30 posts

Geek


  Reply # 126446 26-Apr-2008 10:46
Send private message

Glad you found it useful. I recommend you remove your phone number from that last post though.



Can you paste your sip.conf here?



137 posts

Master Geek
Inactive user


  Reply # 126460 26-Apr-2008 11:28
Send private message

Thanks man.  Just spoke with XNet and they can see that I am registered even though the Asterisk console is still spitting out :

[Apr 26 11:23:50] NOTICE[2379]: chan_sip.c:7492 sip_reg_timeout:    -- Registration for '99500000@as.wxcnz.net' timed out, trying again (Attempt #130)

nix-1*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

[Apr 26 11:24:10] NOTICE[2379]: chan_sip.c:7492 sip_reg_timeout:    -- Registration for '99500000@as.wxcnz.net' timed out, trying again (Attempt #131)

nix-1*CLI>


SIP.CONF
; SIP Configuration for Asterisk Server NIX-1

[general]
port = 5060
dtmfmode = rfc2833
disallow=all
allow=g729
allow=ulaw
allow=alaw
registertimeout = 20
regseconds = 180
context=default
allowoverlap=no
;realm=home.megacityone.net.nz
bindport=5060
bindaddr=0.0.0.0
;srvlookup=yes
;domain=home.megacityone.net.nz

language=en
useragent=Asterisk PBX

register=99500000:<PASSHERE>:<AUTHHERE>@as.wxcnz.net/99500000


;----------------------------- LINE CONFIG -----------------------------
[VFX]
type=peer
fromdomain=as.wxcnz.net
fromuser=99500000
host=as.wxcnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=<PASSHERE>
username=<AUTHHERE>


;----------------------------- PHONE CONFIG -----------------------------
[Walter]
type = friend
host = dynamic
defaultip = 192.168.1.100
dtmfmode = rfc2833
context = internal
callerid = "Walter" <1>

[Joseph]
type = friend
host = dynamic
defaultip = 192.168.1.101
dtmfmode = rfc2833
context = internal
callerid = "Joseph" <2>

Anything wrong?

30 posts

Geek


  Reply # 126463 26-Apr-2008 11:37
Send private message

Other than having no incoming context for your VFX trunk, that config looks fine. What's your firewall setup like?



137 posts

Master Geek
Inactive user


  Reply # 126464 26-Apr-2008 11:40
Send private message

Righto... so would add

context=incoming

to the sip.conf section [VFX]?

I have a Cisco 877, haven't allowed anything in specifically for VFX... do I need to open a port and nat it to the VFX box?

30 posts

Geek


  Reply # 126469 26-Apr-2008 11:49
Send private message

JDNZ: Righto... so would add context=incoming to the sip.conf section [VFX]?
Yes, assuming that you wish to receive incoming calls in that context.

I have a Cisco 877, haven't allowed anything in specifically for VFX... do I need to open a port and nat it to the VFX box?
You shouldn't need to add extra NAT rules. The reason I asked is because your exact symptoms can be caused by a firewall that's missing an ESTABLISHED,RELATED pass rule - this is a mistake commonly made by new iptables users.



137 posts

Master Geek
Inactive user


  Reply # 126477 26-Apr-2008 12:37
Send private message

Cool, so no need for anything specifically setup on the router then as I don't use a local firewall on NIX-1.

Guess I will keep playing around with it see if I can sort it out.  Thanks for your help, at least I know I am on the right track.

Cheers,
Brad



137 posts

Master Geek
Inactive user


  Reply # 126925 28-Apr-2008 23:05
Send private message

ok, I think I broke something...  so how come I can register with 2talk and receive their calls, but not VFX?  Any assistance welcome... please :P


Connected to Asterisk 1.4.19.1 currently running on nix-1 (pid = 999)
Verbosity is at least 3

nix-1*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
2talk.co.nz:5060                028999999          105 Registered           Mon, 28 Apr 2008 22:53:22
as.wxcnz.net:5060               99500000           120 Request Sent

nix-1*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
Joseph/Joseph              192.168.1.101    D          53992    Unmonitored
Walter/Walter              192.168.1.100    D          38028    Unmonitored
2talk/028999999            202.180.76.161       N      5060     Unmonitored
VFX/d4w4rpc0r3c4nn4ad017    58.28.20.150         N      5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]

[Apr 28 22:53:42] NOTICE[1009]: chan_sip.c:7492 sip_reg_timeout:    -- Registration for '99500000@as.wxcnz.net' timed out, trying again (Attempt #1)



SIP.CONF
;sip.conf (/etc/asterisk/sip.conf)

[general]
port = 5060
dtmfmode = rfc2833
disallow = all
allow = ulaw
allow = alaw
allow = gsm
allow = g729
registerattempts = 0
registertimeout = 20
regseconds = 180
context = default
allowoverlap = no
;realm=home.megacityone.net.nz
bindport = 5060
bindaddr = 0.0.0.0
;srvlookup=yes
;domain=home.megacityone.net.nz
language = en
useragent = Asterisk PBX

register => 99500000:<SNIP>:<SNIP>@as.wxcnz.net/99500000
register => 028999999:<SNIP>@2talk.co.nz/028999999


;----------------------------- LINE CONFIG -----------------------------
[VFX]
context = vfx
type = peer
fromdomain = as.wxcnz.net
fromuser = 99500000
host = as.wxcnz.net
insecure = invite,port
canreinvite = no
nat = yes
disallow = all
allow = alaw
allow = ulaw
secret = <SNIP>
username = <SNIP>

[2talk]
context = 2talk
type = friend
fromuser = 028999999
host = 2talk.co.nz
insecure = invite,port
canreinvite = no
disallow = all
allow = alaw
allow = ulaw
allow = gsm
nat = yes
secret = <SNIP>
username = 028999999


;----------------------------- PHONE CONFIG -----------------------------
[Walter]
context = internal
type = friend
host = dynamic
defaultip = 192.168.1.100
dtmfmode = rfc2833
callerid = "Walter" <1001>
;username = Walter
;canreinvite = no
disallow = all
allow = alaw
allow = ulaw
allow = gsm
mailbox = 1001

[Joseph]
context = internal
type = friend
host = dynamic
defaultip = 192.168.1.101
dtmfmode = rfc2833
callerid = "Joseph" <1002>
;username = Joseph
;canreinvite = no
disallow = all
allow = alaw
allow = ulaw
allow = gsm
mailbox = 1002


EXTENSIONS.CONF
;extensions.conf (/etc/asterisk/extensions.conf)

[globals]


[general]
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = no

[default]
exten => s,1,Dial(SIP/Walter)

[2talk]
exten => _X.*,1,Dial(SIP/Walter)

[vfx]
exten => _X.*,1,Dial(SIP/Walter)

[internal]
include => default
exten => 1001,1,Dial(SIP/Walter,20,tr)
exten => 1002,1,Dial(SIP/Joseph,20,tr)



137 posts

Master Geek
Inactive user


  Reply # 127414 30-Apr-2008 22:27
Send private message

umm, yup its official, I should pack up all my computer equipment, take it back to where I bought it and tell em I am too stupid to own a computer.

It was the firewall on the router... when I finally got around to checking it it was blocking the packets from as.wxcnz.net...

30 posts

Geek


  Reply # 127417 30-Apr-2008 22:34
Send private message

Haha, glad to hear you have it sorted :D

Don't feel too bad, we've all made that kind of mistake at least once.... firewalling yourself out of a remote server is far more embarassing - trust me on that ;-)

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 »

Red Hat unveils production-ready open source hyperconverged infrastructure
Posted 23-Jun-2017 22:10


Whatever ailed Vodafone broadband … seems to be fixed
Posted 23-Jun-2017 14:10


VMware NSX Meets Stringent Government Security Standards with Common Criteria Certification
Posted 22-Jun-2017 19:05


Brother launches next-generation colour laser printers and all-in- ones for business
Posted 22-Jun-2017 18:56


Intel and IOC announce partnership
Posted 22-Jun-2017 18:50


Samsung Galaxy Tab S3: Best Android tablet
Posted 21-Jun-2017 12:05


Wellington-based company helping secure Microsoft browsers
Posted 20-Jun-2017 20:51


Endace delivers high performance with new 1/10/40 Gbps packet capture card
Posted 20-Jun-2017 20:50


You can now integrate SMX security into Microsoft Office 365, Google and other cloud email platforms
Posted 20-Jun-2017 20:47


Ravensdown launches new decision-making tool HawkEye
Posted 19-Jun-2017 15:38


Spark planning to take on direct management of all consumer stores
Posted 19-Jun-2017 10:03


Qrious acquires Ubiquity
Posted 14-Jun-2017 12:21


Spark New Zealand prepares for 5G with Nokia
Posted 14-Jun-2017 12:16


The future-proof 10.5-inch iPad Pro
Posted 13-Jun-2017 18:16


Mandatory data breach reporting in Australia
Posted 13-Jun-2017 11:30



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.