Re: [Asterisk-Users] cisco 7960 registration fails

2006-01-03 Thread Tzafrir Cohen
On Tue, Jan 03, 2006 at 10:47:59AM +, Ben Fitzgerald wrote:
 Hi,
 
 Apologies for hitting the list with such a long mail on my first post!
 Having seen the archives this seems like a list that likes debugging
 output. If I have left any information out please let me know.

What do you see on 'sip show peers' ?

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] cisco 7960 registration fails

2006-01-03 Thread miguel saravia

What is your firmware version? I have a few problems with the release 7.5

Miguel

Ben Fitzgerald wrote:


Hi,

Apologies for hitting the list with such a long mail on my first post!
Having seen the archives this seems like a list that likes debugging
output. If I have left any information out please let me know.

I have recently begun using asterisk on debian.

[EMAIL PROTECTED] /usr/sbin/asterisk -V
Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k

[EMAIL PROTECTED] dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ NameVersion Description
+++-===-===-==
ii  asterisk1.0.7.dfsg.1-2  Private Branch Exchange (PBX)

I have an odd problem that may be known as I saw one similar posting.

I have the following config on my cisco 7940:

line1_name : localuser
line1_authname : localuser
line1_password : localpass
line1_shortname : asterisk
line1_displayname : myphone

Then in sip.conf:

[localuser]
type=friend
username=localuser
secret=localpass
auth=md5
host=dynamic
dtmfmode=rfc2833
nat=no
allow=all
canreinvite=no

Phone IP: 192.168.1.50.

I startup asterisk and connect to the console, and set:

sip debug ip 192.168.1.50
set verbose 255
set debug 255

The console output is as follows:

## Start asterisk debug output ###
Sip read:
REGISTER sip:192.168.1.4 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK4b1f5669
From: sip:[EMAIL PROTECTED]
To: sip:[EMAIL PROTECTED]
Call-ID: [EMAIL PROTECTED]
Date: Mon, 02 Jan 2006 21:11:05 GMT
CSeq: 646 REGISTER
User-Agent: CSCO/7
Contact: sip:[EMAIL PROTECTED]:5060
Content-Length: 0
Expires: 3600


11 headers, 0 lines
Jan  2 21:11:05 DEBUG[6128]: chan_sip.c:2355 sip_alloc: Allocating new SIP call 
for [EMAIL PROTECTED]
Using latest request as basis request
Sending to 192.168.1.50 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK4b1f5669
From: sip:[EMAIL PROTECTED]
To: sip:[EMAIL PROTECTED];tag=as01aba5cf
Call-ID: [EMAIL PROTECTED]
CSeq: 646 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: sip:[EMAIL PROTECTED]
Content-Length: 0


to 192.168.1.50:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK4b1f5669
From: sip:[EMAIL PROTECTED]
To: sip:[EMAIL PROTECTED];tag=as01aba5cf
Call-ID: [EMAIL PROTECTED]
CSeq: 646 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: sip:[EMAIL PROTECTED]
WWW-Authenticate: Digest realm=mail.bfitzgerald.co.uk, nonce=773ad211
Content-Length: 0


to 192.168.1.50:5060
Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms
Urgent handler


Sip read:
REGISTER sip:192.168.1.4 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK1f807b05
From: sip:[EMAIL PROTECTED]
To: sip:[EMAIL PROTECTED]
Call-ID: [EMAIL PROTECTED]
Date: Mon, 02 Jan 2006 21:11:06 GMT
CSeq: 647 REGISTER
User-Agent: CSCO/7
Contact: sip:[EMAIL PROTECTED]:5060
Authorization: Digest 
username=localuser,realm=mail.bfitzgerald.co.uk,uri=sip:192.168.1.4,response=56cf80cc6dc37af4e3f6e036cb45a7bd,nonce=773ad211,algorithm=md5
Content-Length: 0
Expires: 3600


12 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.50 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK1f807b05
From: sip:[EMAIL PROTECTED]
To: sip:[EMAIL PROTECTED];tag=as01aba5cf
Call-ID: [EMAIL PROTECTED]
CSeq: 647 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: sip:[EMAIL PROTECTED]
Content-Length: 0


to 192.168.1.50:5060
Urgent handler

*
## End asterisk debug output ###

The tethereal capture on my asterisk server is as below:

39.943108  192.168.1.4 - 192.168.1.50 SIP Status: 100 Trying(1 bindings)
39.943335  192.168.1.4 - 192.168.1.50 SIP Status: 401 Unauthorized(1 
bindings)
40.184716 192.168.1.50 - 192.168.1.4  SIP Request: REGISTER sip:192.168.1.4
40.185768  192.168.1.4 - 192.168.1.50 SIP Status: 100 Trying(1 bindings)
59.999521  192.168.1.1 - BroadcastARP Who has 192.168.1.50?  Tell 
192.168.1.1

The main problem is I cannot get my 7940 to register. But in attempting
to debug this I have seen another problem.

Asterisk stops outputting to the console after the above output. Even
when subsequent REGISTER requests are seen by tethereal I do not get any
more asterisk console messages. This makes me wonder if the debian
distro package is correct. Surely this is a problem with the package?

The phone starts to register but doesn't quite manage it:

SIP Phone sh reg

LINE REGISTRATION TABLE
Proxy Registration: ENABLED, state: IDLE
line  APR  state  timer   expires proxy:port
  ---  

Re: [Asterisk-Users] cisco 7960 registration fails

2006-01-03 Thread Ben Fitzgerald
On Tue, Jan 03, 2006 at 01:34:28PM +0200, Tzafrir Cohen wrote:
 On Tue, Jan 03, 2006 at 10:47:59AM +, Ben Fitzgerald wrote:
  Hi,
  
  Apologies for hitting the list with such a long mail on my first post!
  Having seen the archives this seems like a list that likes debugging
  output. If I have left any information out please let me know.
 
 What do you see on 'sip show peers' ?

That does show the device, but when I set qualify=yes in sip.conf I
get:

deb-tv*CLI sip show peers
Name/usernameHost Dyn Nat ACL MaskPort Status
localuser/local  192.168.1.50 D  255.255.255.255  5060 UNKNOWN

As I understand it the Status should not be UNKNOWN.

Many thanks for the pointer to Rapid. I will add this to my sources.list
and try re-installing asterisk, as I'm sure that the loss of console
output does not bode well, however poor my configuration may be!

I will let you know how I get on.

Cheers,

Ben.

-- 
Registered Linux user number 339435
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] cisco 7960 registration fails

2006-01-03 Thread Ben Fitzgerald
On Tue, Jan 03, 2006 at 09:46:32AM -0300, miguel saravia wrote:
 What is your firmware version? I have a few problems with the release 7.5

It's 7.4. I have read a few comments about 7.5 so only went to 7.4:

Loadid:  SW: P0S3-07-4-00  ARM: PAS3ARM1  Boot: PC030301  DSP: PS03AT45

Thanks,

Ben.

-- 
Registered Linux user number 339435
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] cisco 7960 registration fails

2006-01-03 Thread Rich Adamson
 Apologies for hitting the list with such a long mail on my first post!
 Having seen the archives this seems like a list that likes debugging
 output. If I have left any information out please let me know.
 
 I have recently begun using asterisk on debian.
 
 [EMAIL PROTECTED] /usr/sbin/asterisk -V
 Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k
 
 [EMAIL PROTECTED] dpkg -l asterisk
 Desired=Unknown/Install/Remove/Purge/Hold
 |
 Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
 |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
 uppercase=bad)
 ||/ NameVersion Description
 +++-===-===-==
 ii  asterisk1.0.7.dfsg.1-2  Private Branch Exchange (PBX)
 
 I have an odd problem that may be known as I saw one similar posting.
 
 I have the following config on my cisco 7940:
 
 line1_name : localuser
 line1_authname : localuser
 line1_password : localpass
 line1_shortname : asterisk
 line1_displayname : myphone

If the above is a copy/paste, then remove the quotes. Format should
be like this: line1_authname: 1234
Quotes can be used in displayname and shortname.

 Then in sip.conf:
 
 [localuser]
 type=friend
 username=localuser
 secret=localpass
 auth=md5

Try removing auth=md5; not sure the 7940 supports it (never tried it).

 host=dynamic
 dtmfmode=rfc2833
 nat=no
 allow=all
 canreinvite=no

If you want the above definitions to fit a specific context, then add:
 context=from-sip
or whatever extensions.conf context you'd like. The above definitions
assume a default context which might not be all that obvious later
when you're playing with other functions. The rest of the definitions
in the above are fine.
 
 The phone starts to register but doesn't quite manage it:
 
 SIP Phone sh reg
 
 LINE REGISTRATION TABLE
 Proxy Registration: ENABLED, state: IDLE
 line  APR  state  timer   expires proxy:port
   ---  -  --  -- -
 1 11x  REGISTERING3600204 192.168.1.4:5060

Try 'sip show peers' from the CLI. You should see something like:

phoenix*CLI sip show peers
Name/username  HostDyn Nat ACL Port Status
3000/3000  206.222.193.90   D  5060 Unmonitored

when the phone successfully registers.

If you see something like this:
Name/username  HostDyn Nat ACL Port Status
3050/3050  (Unspecified)D  0Unmonitored

the registration process is a problem.

Rich


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users