Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: mod_sofia
-
Labels:None
-
Environment:head
-
Platform:Linux x86/gcc
-
FreeSWITCH GIT Revision:head
-
Reproduced with GIT HEAD?:yes
Description
Sending authenticated sip message for IM is not pocible
example:
send 701 bytes to udp/[81.95.158.195]:5060 at 22:04:26.071247:
------------------------------------------------------------------------
MESSAGE sip:6411@sip.me.com SIP/2.0
Via: SIP/2.0/UDP 12.21.201.228;rport;branch=z9hG4bKeap3Fj3FH91gF
Max-Forwards: 70
From: "3850:12123333" <sip:9933850:12123333@sip.me.com>;tag=mv3g6DQyH
D7pc
To: <sip:6411@sip.me.com>
Call-ID: 87463629-d5e8-122f-4489-000c29bbcbd8
CSeq: 24508052 MESSAGE
Contact: <sip:12.21.201.228>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-fdaa155 2012-02-10 13-17-54 +00
00
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, RE
FER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Type: text/plain
Content-Length: 5
X-FS-Sending-Message: e13be935-112b-4a72-9bb8-4890ba78d562
hello
------------------------------------------------------------------------
recv 538 bytes from udp/[21.33.158.195]:5060 at 22:04:26.146416:
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 12.21.201.228;received=12.21.201.228;rport=5060;branch=z9h
G4bKeap3Fj3FH91gF
From: "3850:12123333" <sip:9933850:12123333@sip.me.com>;tag=mv3g6DQyH
D7pc
To: <sip:6411@sip.me.com>;tag=5525d7d1f3009ab7017a265f868dc5e9.94f1
Call-ID: 87463629-d5e8-122f-4489-000c29bbcbd8
CSeq: 24508052 MESSAGE
Proxy-Authenticate: Digest realm="sip.me.com", nonce="4f412e1a260428f4de
3da5527877a8db9a86c870"
Server: OpenSIPS (1.7.1-tls (x86_64/linux))
Content-Length: 0
------------------------------------------------------------------------
freeswitch should reply with ack and re send a authenticated sip message to the other parti, if i'm correct.
example:
send 701 bytes to udp/[81.95.158.195]:5060 at 22:04:26.071247:
------------------------------------------------------------------------
MESSAGE sip:6411@sip.me.com SIP/2.0
Via: SIP/2.0/UDP 12.21.201.228;rport;branch=z9hG4bKeap3Fj3FH91gF
Max-Forwards: 70
From: "3850:12123333" <sip:9933850:12123333@sip.me.com>;tag=mv3g6DQyH
D7pc
To: <sip:6411@sip.me.com>
Call-ID: 87463629-d5e8-122f-4489-000c29bbcbd8
CSeq: 24508052 MESSAGE
Contact: <sip:12.21.201.228>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-fdaa155 2012-02-10 13-17-54 +00
00
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, RE
FER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Type: text/plain
Content-Length: 5
X-FS-Sending-Message: e13be935-112b-4a72-9bb8-4890ba78d562
hello
------------------------------------------------------------------------
recv 538 bytes from udp/[21.33.158.195]:5060 at 22:04:26.146416:
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 12.21.201.228;received=12.21.201.228;rport=5060;branch=z9h
G4bKeap3Fj3FH91gF
From: "3850:12123333" <sip:9933850:12123333@sip.me.com>;tag=mv3g6DQyH
D7pc
To: <sip:6411@sip.me.com>;tag=5525d7d1f3009ab7017a265f868dc5e9.94f1
Call-ID: 87463629-d5e8-122f-4489-000c29bbcbd8
CSeq: 24508052 MESSAGE
Proxy-Authenticate: Digest realm="sip.me.com", nonce="4f412e1a260428f4de
3da5527877a8db9a86c870"
Server: OpenSIPS (1.7.1-tls (x86_64/linux))
Content-Length: 0
------------------------------------------------------------------------
freeswitch should reply with ack and re send a authenticated sip message to the other parti, if i'm correct.
<param name="auth-messages" value="true"/>