blank space missing after ":" character in each attributre of SIP messages encoded by SIPmsg_PT
This is a sample SIP message generated by SIPmsg_PT:
REGISTER sip:172.18.50.10 SIP/2.0
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFER,UPDATE
Call-ID:F3145853EF71599@172.18.50.103
Contact:sip:0501@172.18.50.103:5060
CSeq:191316662 REGISTER
Expires:7200
From:"Anonymous" <sip:0501@172.18.50.10>;tag=EAC461BB
To:"Anonymous" <sip:0501@172.18.50.10>
User-Agent: osmo-ttcn3-hacks/0.23
Via:SIP/2.0/UDP 172.18.50.103:5060;branch=z9hG4bK4B90553FB683C01718C8896983394F8F
As it can be seen, most attributes are missing a blank space character after the ":" character separating the attribute name from the value, ie. "s/:/: /".
This is probably a SIP violation despite other implementations accepting it, such as Asterisk.
Interestingly, "User-Agent:" doesn't seem to have that problem there.
Here one can see how Asterisk (pjsip) encodes with the blank space, which at least helps in improving readibility:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.18.50.103:5060;rport=5060;received=172.18.50.103;branch=z9hG4bK4B90553FB683C01718C8896983394F8F
Call-ID: F3145853EF71599@172.18.50.103
From: "Anonymous" <sip:0501@172.18.50.10>;tag=EAC461BB
To: "Anonymous" <sip:0501@172.18.50.10>;tag=z9hG4bK4B90553FB683C01718C8896983394F8F
CSeq: 191316662 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1712329453/1a7b280ec680e8c307d3ab31f941ae11",opaque="681a93e5420d2547",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.7.0
Content-Length: 0