[Asterisk-Users] Re: SIP Problem - What did I screw up?
Race Vanderdecken
asterisk at vanderdecken.com
Fri Sep 24 07:51:33 MST 2004
1. Turn on CLI> sip debug
That will tell you what SIP is doing and why things are not registering.
2. Have you setup the SIP phone properly?
"Is the plugged in? " ;)
Can you telnet to the phone?
Can you ping the phone?
3. Use CLI> interface and try to call the phone
4. Start with a simpler sip phone declaration. Use type=user to cut
half the work.
[2225551212]
type=user
host=dynamic
nat=yes
username=sip:2225551212
accountcode=1212
context=from-sip
Move from context=default to context=from-sip
5. check your declarations by doing
sip show users
sip show peers
Let me know the results,
Race Vanderdecken
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alex
Zeffertt
Sent: Friday, September 24, 2004 08:47
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Re: SIP Problem - What did I screw up?
Check that the sip address that kphone needs to register is
sip:247417@<ipaddr or fqn of server>
with password
xyz123
I also find that using ethereal *really* helps debug these things.
But the real reason I'm writing is to ask: what did you do to get
asterisk to log to /dev/log?
Ta,
Alex
On Wed, 22 Sep 2004 23:37:29 +0000
C Wegrzyn <lists at garbagedump.com> wrote:
> I am a newbie to Asterisk (though not to SIP) . I am trying to setup a
> pure SIP environment for some testing. Here is my SIP.CONF file:
>
> [general]
> port = 5060
> bindaddr = 0.0.0.0
> context = default
>
> [247417]
> type=friend
> host=dynamic
> dtmfmode=inband
> secret=xyz123
> context=default
>
> And my EXTENSION.CONF file is:
>
>
> [general]
> static=yes
> writeprotect=no
>
> [globals]
>
> [default]
> exten => 247417,1,Dial(SIP/247417,15,t)
> exten => 247417,2,Voicemail2(u247417)
> exten => 247417,102,Voicemail2(b247417)
> exten => 247417,103,Hangup
>
>
> What I am seeing in the debug log is:
>
> ep 22 23:23:50 VERBOSE[16384]: == Parsing '/etc/asterisk/sip.conf':
> Sep 22 23:23:50 VERBOSE[16384]: == Parsing '/etc/asterisk/sip.conf':
> Found Sep 22 23:23:50 DEBUG[16384]: Unable to find key '247417' in
> family 'SIP/Registry'
> Sep 22 23:23:50 VERBOSE[16384]: = SIP Listening on 0.0.0.0:5060
> Sep 22 23:23:50 VERBOSE[16384]: == Using TOS bits 0
> Sep 22 23:23:50 VERBOSE[16384]: == Registered channel type 'SIP'
> (Session Initiation Protocol (SIP))
> Sep 22 23:23:50 VERBOSE[16384]: == Registered application
> 'SIPDtmfMode'
>
>
> What am I doing wrong? When I use KPhone I can't register the phone.
>
> TIA,
> Chuck Wegrzyn
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Alex Zeffertt
Software Engineer
Cambridge Broadband Ltd.
http://www.cambridgebroadband.com
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list