[SIPForum-discussion] =3F?=
正军 陆
hohailzj at yahoo.com.cn
Fri Aug 29 03:05:00 UTC 2008
Thank you for your comment.
And now, I find that step 3 did not do its work just because that UAC failed to send the new INVITE message with authentication.
Are there any reasons which can lead to the failure of "eXosip_call_send_initial_invite(invite)" in step 3?
Thank you again for all of you!!!
vijay kant gupta <vijaykant.it2002 at gmail.com> 写道:
401 Unauthorized (Used only by registrars or user agent. Proxies should use proxy authorization 407)
in this case once you recive 401, then u have to create second invite with correct credintal .O {color:black; font-size:149%;} a:link {color:#4D4D4D !important;} a:active {color:#993333 !important;} a:visited {color:#EAEAEA !important;} <!--.sld {left:0px !important; width:6.0in !important; height:4.5in !important; font-size:103% !important;} --> or call may be lost due to dialouge
F1 REGISTER Bob -> SIP Server
REGISTER sips:ss2.biloxi.example.com SIP/2.0
Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashds7
;received=192.0.2.201
From: Bob <sips:bob at biloxi.example.com>;tag=a73kszlfl
To: Bob <sips:bob at biloxi.example.com>
Call-ID: 1j9FpLxk3uxtm8tn at biloxi.example.com
CSeq: 1 REGISTER
Contact: <sips:bob at client.biloxi.example.com>
Content-Length: 0
F2 Unauthorized SIP Server -> Bob
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashds7
;received=192.0.2.201
From: Bob <sips:bob at biloxi.example.com>;tag=a73kszlfl
To: Bob <sips:bob at biloxi.example.com>;tag=1410948204
Call-ID: 1j9FpLxk3uxtm8tn at biloxi.example.com
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm="atlanta.example.com", qop="auth",
nonce="f1cec4341ae6ca9c8e88df84be55a359",
opaque="", stale=FALSE, algorithm=MD5
Content-Length: 0
F3 REGISTER Bob -> SIP Server
REGISTER sips:ss2.biloxi.example.com SIP/2.0
Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashd92
Max-Forwards: 70
From: Bob <sips:bob at biloxi.example.com>;tag=JueHGuidj28dfga
To: Bob <sips:bob at biloxi.example.com>
Call-ID: 1j9FpLxk3uxtm8tn at biloxi.example.com
CSeq: 2 REGISTER
Contact: <sips:bob at client.biloxi.example.com>
Authorization: Digest username="bob", realm="atlanta.example.com",
nonce="f1cec4341ae6ca9c8e88df84be55a359", opaque="",
uri="sips:ss2.biloxi.example.com",
response="61f8470ceb87d7ebf508220214ed438b"
Content-Length: 0
2008/8/28 正军 陆 <hohailzj at yahoo.com.cn>
Yeah. Actually, in step 2, UAC successfully received a 401 Unauthorized message and also an EXOSIP_CALL_CLOSED event at the same time.
What's more, UAS seems to consider step 3 as the same as step 1, and then take the same action.
steven <steven at seawolftech.com.cn> 写道:
Are you sure that correct user name/password is included in invite message in step 3?
---------------------------------
steven
2008-08-28
---------------------------------
发件人: 正军 陆
发送时间: 2008-08-27 21:37:11
收件人: discussion at sipforum.org
抄送:
主题: [SIPForum-discussion] Which events can trigger anEXOSIP_CALL_CLOSED event?
Hello, everybody:
I ran into a problem today. And I don't know what actually the problem is.
I send an INVITE to initialize a call, as the following describes:
UAC<-------------------------------------------------------------------------------->UAS
1)-----------------------------an INVITE message------------------------->
2)<-------------------a 401 Unauthorized message-----------------------
3)---------a new INVITE message with authentication------------->
4).....
but, before step 3) does its work, UAS always receive an EXOSIP_CALL_CLOSED event. Where is the problem? Thank you for your kind help.
SEU, zhjlu
---------------------------------
雅虎邮箱,您的终生邮箱!
---------------------------------
雅虎邮箱,您的终生邮箱!
_______________________________________________
This is the SIP Forum discussion mailing list
TO UNSUBSCRIBE, or edit your delivery options, please visit http://sipforum.org/mailman/listinfo/discussion
Post to the list at discussion at sipforum.org
---------------------------------
雅虎邮箱,您的终生邮箱!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20080829/699818c6/attachment-0002.html>
More information about the discussion
mailing list