Hello,

  I've got a problem with connection to my SIP provider. In general,
everything works, but I get lots of these messages:

Oct 17 19:10:06 DEBUG[29707]: chan_sip.c:11148 handle_request: That's
odd...  Got a response on a call we dont know about. Cseq 42710 Cmd
SIP/2.0

       Oct 17 19:10:06 DEBUG[29707]: chan_sip.c:11148 handle_request:
That's odd...  Got a response on a call we dont know about. Cseq 42686
Cmd SIP/2.0

           Oct 17 19:10:06 DEBUG[29707]: chan_sip.c:11148
handle_request: That's odd...  Got a response on a call we dont know
about. Cseq 42686 Cmd SIP/2.0

  That itself would not be a problem, but my provider is complaining
about lots of faulty registrations. I ran ngrep on that traffic. This
is ngrep output after fresh start of asterisk:

U 200.100.100.123:5060 -> 195.195.12.223:5060
 REGISTER sip:sip1.provider.com SIP/2.0..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK6cb7aba7;rport..From:
<sip:[EMAIL PROTECTED]
 xtra.sk>;tag=as04cc5746..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 102 REGIST
 ER..User-Agent: Asterisk PBX..Max-Forwards: 70..Expires:
1200..Contact: <sip:[EMAIL PROTECTED]>..Event:
registration..Content-Lengt
 h: 0....

U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 100 Trying..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK6cb7aba7;received=200.100.100.123;rport=5060..From:
<sip:[EMAIL PROTECTED]
 1.provider.sk>;tag=as04cc5746..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 102
  REGISTER..User-Agent: SoftSwitch v1.0..Allow: INVITE, ACK, CANCEL,
OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: <sip:4212326
 [EMAIL PROTECTED]>..Content-Length: 0....

U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK6cb7aba7;received=200.100.100.123;rport=5060..From:
<sip:4212326601
 [EMAIL PROTECTED]>;tag=as04cc5746..To:
<sip:[EMAIL PROTECTED]>;tag=as17802cd7..Call-ID:
[EMAIL PROTECTED]
 7.67.16.43..CSeq: 102 REGISTER..User-Agent: SoftSwitch v1.0..Allow:
INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..
 Contact: <sip:[EMAIL PROTECTED]>..WWW-Authenticate:
Digest realm="provider", nonce="70495064"..Content-Length: 0....

U 200.100.100.123:5060 -> 195.195.12.223:5060
 REGISTER sip:sip1.provider.com SIP/2.0..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK1362d770;rport..From:
<sip:[EMAIL PROTECTED]
 xtra.sk>;tag=as51ddb092..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 103 REGIST
 ER..User-Agent: Asterisk PBX..Max-Forwards: 70..Authorization:
Digest username="4221917293125", realm="provider", algorithm=MD5,
uri="sip:s
 ip1.provider.sk", nonce="70495064",
response="1c6b0193890a8e1c9c6b3a9287d1d30b", opaque=""..Expires:
1200..Contact: <sip:[EMAIL PROTECTED]
 67.16.43>..Event: registration..Content-Length: 0....

U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 100 Trying..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK1362d770;received=200.100.100.123;rport=5060..From:
<sip:[EMAIL PROTECTED]
 1.provider.sk>;tag=as51ddb092..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 103
  REGISTER..User-Agent: SoftSwitch v1.0..Allow: INVITE, ACK, CANCEL,
OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: <sip:4212326
 [EMAIL PROTECTED]>..Content-Length: 0....

U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 200 OK..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK1362d770;received=200.100.100.123;rport=5060..From:
<sip:[EMAIL PROTECTED]
 sprovider.sk>;tag=as51ddb092..To:
<sip:[EMAIL PROTECTED]>;tag=as17802cd7..Call-ID:
[EMAIL PROTECTED]
 ..CSeq: 103 REGISTER..User-Agent: SoftSwitch v1.0..Allow: INVITE,
ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Expires: 1
 200..Contact:
<sip:[EMAIL PROTECTED]>;expires=1200..Date: Tue, 17 Oct
2006 16:38:19 GMT..Content-Length: 0....

(******)

U 200.100.100.123:5060 -> 195.195.12.223:5060
 REGISTER sip:my-provider-link SIP/2.0..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK102b43da;rport..From:
<sip:[EMAIL PROTECTED]
 sprovider.sk>;tag=as6550d352..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 42620 R
 EGISTER..User-Agent: Asterisk PBX..Max-Forwards: 70..Authorization:
Digest username="4221917293125", realm="provider", algorithm=MD5,
uri="
 sip:my-provider-link", nonce="58c9238d",
response="9d6439e3894f6a7e70fd09d683df073e", opaque=""..Expires:
120..Contact: <sip:4212326601
 [EMAIL PROTECTED]>..Event: registration..Content-Length: 0....


U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 100 Trying..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK102b43da;received=200.100.100.123;rport=5060..From:
<sip:[EMAIL PROTECTED]
 1.provider.sk>;tag=as6550d352..To:
<sip:[EMAIL PROTECTED]>..Call-ID:
[EMAIL PROTECTED]: 426
 20 REGISTER..User-Agent: SoftSwitch v1.0..Allow: INVITE, ACK,
CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: <sip:42123
 [EMAIL PROTECTED]>..Content-Length: 0....

U 195.195.12.223:5060 -> 200.100.100.123:5060
 SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP
200.100.100.123:5060;branch=z9hG4bK102b43da;received=200.100.100.123;rport=5060..From:
<sip:4212326601
 [EMAIL PROTECTED]>;tag=as6550d352..To:
<sip:[EMAIL PROTECTED]>;tag=as12748c70..Call-ID:
[EMAIL PROTECTED]
 7.67.16.43..CSeq: 42620 REGISTER..User-Agent: SoftSwitch
v1.0..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY
 ..Contact: <sip:[EMAIL PROTECTED]>..WWW-Authenticate:
Digest realm="provider", nonce="311081ba"..Content-Length: 0....


  Until (******) it seems like a standard registration. Everything
after that is repeated several times a second. I don't know why it
tries to register, when it has clearly already done so. Even sip show
registry shows that provider as registered. Please note the difference
in URI, first time it's sip1.provider.com, second time it's
sip:my-provider-link. This is my sip.conf (relevant parts of it):

register => 4221917293125:[EMAIL PROTECTED]/4221917293125

[my-provider-link]
type=friend
username=4221917293125
secret=secret123
host=sip1.provider.com
nat=no
context=provider-in
canreinvite=no
insecure=very
qualify=no


  It seems to me, that it tries to register also this
my-provider-link somehow, but I have no idea how and why. Just for the
record, I have several accounts of this SIP provider in my sip.conf
(about 10). All other providers are working correctly, this one
(except for these excessive registrations) is working too (all of the
accounts). I've been told by my voice provider, that they are also
using Asterisk on their side.

 I've tried upgrading from Asterisk 1.2.10 to Asterisk 1.2.12.1 and
it did not help. Any ideas or help would be greatly appreciated.


      Juraj Bednar.
_______________________________________________
--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

Reply via email to