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@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
It seems your sip.conf is correct. Maybe the problem is on your client side. You can use SJphone to do a test. Look at this websit http://www.voip-info.org/wiki-Asterisk+phone+sjphone It tell you how to set the configuration file. Mandar Pise wrote:> 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@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* > <http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/>*:* > Find your partner online > <http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/community.php>. > >