[Asterisk-Users] Asterisk user/host registration

Mandar Pise scimandar at yahoo.co.in
Wed Jun 23 04:33:06 MST 2004


Hi Folks,
 
I am newbie to asterisk. Recentely I have installed asterisk on Linux Fedora 2 box. After reading some document, I tried to configure the server. 
 
When I connect to our server, SIP user-agent shows that I am logged in. But it doesn't show my system(client) IP when I issue command at astrisk CLI. The O/P is as below.
 
*CLI> sip show peers
Name/username    Host                 Mask             Port     Status
2001/2001        (Unspecified)   (D)  255.255.255.255  0        UNKNOWN
2000/2000        (Unspecified)   (D)  255.255.255.255  0        UNKNOWN

I am pasting  sip.conf & extension.conf
 
sip.conf
[general]
port = 5060
bindaddr = 0.0.0.0
context = INVALID
;Autocreatepeer= yes
 
[2000]
type=friend
username=2000
secret=2000
host=dynamic
context=from-sip
mailbox=100
canreinvite=no
qualify=300
nat=no
 
[2001]
type=friend
username=2001
secret=2001
host=dynamic
context=from-sip
mailbox=100
canreinvite=no
qualify=300
nat=no
 
extensions.conf
[globals]
CONSOLE=Console/dsp
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest
;IAXINFO=myuser:mypass
TRUNK=Zap/g2
TRUNKMSD=1
;TRUNK=IAX2/user:pass at provider
[bogon-calls]
exten => _.,1,Congestion

[from-sip]
exten => 2000,1,Dial(SIP/2000,20)
exten => 2000,2,Voicemail(u${EXTEN})
exten => 2000,3,Hangup
exten => 2000,102,Voicemail(b${EXTEN})
exten => 2000,103,Hangup
exten => 2001,1,Dial(SIP/2001,20)
exten => 2001,2,Voicemail(u${EXTEN})
exten => 2001,3,Hangup
exten => 2001,102,Voicemail(b${EXTEN})
exten => 2001,103,Hangup
exten => 2999,1,VoicemailMain(${CALLERIDNUM})

Immediate help is highly appreciated.
 
Thank you,
Mandar

Yahoo! India Matrimony: Find your partner online.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040623/b604eb7e/attachment.htm


More information about the asterisk-users mailing list