[Asterisk-Users] SIP REGISTER
Regovich, Timothy
timothy_regovich at merck.com
Tue Feb 17 12:00:33 MST 2004
Mike,
That is the only difference you see? Check out the Digest line.
I would have thought that you would be seeing a 401 instead of 403 though
(auth required instead of forbidden). The phone number part should be a
meaningless string. You can test by telneting directly to your provider and
entering the header information with the phone number and see what happens.
T
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Micke Andersson
Sent: Tuesday, February 17, 2004 12:05 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] SIP REGISTER
Hiyas..
I have a little problem ..
I try to register my Asterisk at a sip provider.. but it just wont work.
It works fine with eg xlite or Grandstream.. .but not with Asterisk.
I think it is in the Register process:
This is the difference I cen tell in the sip headers between Xlite and
Asterisk
( I have removed IPs and numbers and replaces them with text)
First Xlite: (this works)
-----snip----
SEND >> provider.ip.ip.ip:5060
REGISTER sip:provider.com SIP/2.0
Via: SIP/2.0/UDP
ip.ip.ip.ip:5060;rport;branch=z9hG4bK06595964B0AE46CF9271267AD534E632
From: pstn-number <sip:pstn-number at provider.com>
To: pstn-number <sip:pstn-number at provider.com>
Contact: "pstn-number" <sip:pstn-numer at ip.ip.ip.ip:5060>
Call-ID: 4EE3811126954242ACEC131F369A30A6 at telia.com
CSeq: 8823 REGISTER
Expires: 1800
Authorization: Digest
username="pstn-number",realm="provider.com",nonce="MTA3NzAyOTUwMjk2NWI2Y
jg4MjcxOGNlZWRkODRhYzg4NmEyZWE5NTYwN2Y0",response="f833201fd4a8719ea9a2e
c505debbd56",uri="sip:provider.com",opaque="dd5d790f90d0307c7390cdb8f6e9
4cc8",qop=auth,cnonce="4B86525A67C646469656D90AD4C1273C",nc=00000002
Max-Forwards: 70
User-Agent: X-Lite build 1101
Content-Length: 0
RECEIVE << provider.ip.ip.ip:5060
SIP/2.0 200 OK
--------- end snip -------------
This is Asterisk (does not work)
------snip------------
Reliably Transmitting:
REGISTER sip:provider.com SIP/2.0
Via: SIP/2.0/UDP ip.ip.ip:5060;branch=z9hG4bK56158c1f
From: <sip:pstn-number at provider.com>;tag=as017cdd56
To: <sip:pstn-number at provider.com>
Call-ID: 0597f20209eb7890424ba0d70eeb08b7 at ip.ip.ip
CSeq: 104 REGISTER
User-Agent: Asterisk PBX
Expires: 1200
Contact: <sip:s at ip.ip.ip.ip>
Event: registration
Content-length: 0
(no NAT) to provider.ip.ip.ip:5060
pbx1*CLI>
Sip read:
SIP/2.0 403 Forbidden
--- end snip ---
The difference as I can tell is in the From: and to: lines
xlite says "From: number <number at provider.com>"
asterisk only says "From: <number at provider.com>"
How do I tell my Asterisk to send the registration as xlite ?
/Mike
_______________________________________________
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
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New
Jersey, USA 08889), and/or its affiliates (which may be known outside the
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan as
Banyu) that may be confidential, proprietary copyrighted and/or legally
privileged. It is intended solely for the use of the individual or entity
named on this message. If you are not the intended recipient, and have
received this message in error, please notify us immediately by reply e-mail
and then delete it from your system.
------------------------------------------------------------------------------
More information about the asterisk-users
mailing list