Hi Ray,
the bug is fixed on CVS, both on devel and 1.0.0 version.
regards,
Bogdan
Bogdan-Andrei Iancu wrote:
Hi Ray,
I did some tests and I can confirm your report. Only first non-space
string is parsed as display name if quotes are not used.
The problem originates in the TO parser. I look into the RFC to see if
spaces are allowed in non-quoted display names:
To = ( "To" / "t" ) HCOLON ( name-addr
/ addr-spec ) *( SEMI to-param )
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT
display-name = *(token LWS)/ quoted-string
token = 1*(alphanum / "-" / "." / "!" / "%" / "*"
/ "_" / "+" / "`" / "'" / "~" )
LWS = [*WSP CRLF] 1*WSP ; linear whitespace
based on this definition, IMHO spaces should be accepted in the
non-quoted display names, which means there is a bug in the TO
parser.....
regards,
bogdan
Raymond Chen wrote:
Dear all,
We have encountered a problem with uac_replace_from(“”, “$ru”) when
display name has a space. It only replace the first part of display
name before the space.
Thanks
Ray
INVITE sip:[EMAIL PROTECTED]:7296 SIP/2.0.
Record-Route: <sip:xxx.xxx.xxx.xxx:80;ftag=565410323;lr=on>.
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:80;branch=z9hG4bK08f5.b4c7e3.0.
Via: SIP/2.0/UDP
61.144.118.186:46278;rport=46278;branch=z9hG4bK009EDE8E72584BEC86D9BF3F84978C12.
From: Warren Smith <sip:[EMAIL PROTECTED]>;tag=565410323.
To: <sip:[EMAIL PROTECTED]>.
Contact: <sip:[EMAIL PROTECTED]:46278>.
Call-ID: [EMAIL PROTECTED]
CSeq: 7145 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-PRO build 1082.
Content-Length: 342.
P-hint: usrloc applied.
1(12909) xl_printf: final buffer length 36
1(12909) DEBUG:uac:replace_from: removing display [Warren]
1(12909) DEBUG:uac:replace_from: uri to replace
[sip:[EMAIL PROTECTED]
1(12909) DEBUG:uac:replace_from: replacement uri is
[sip:[EMAIL PROTECTED]:7296]
<mailto:%5bsip:[EMAIL PROTECTED]:7296%5d>
INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0.
Record-Route: <sip:xxx.xxx.xxx.xxx:80;ftag=565410323;lr=on>.
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:80;branch=z9hG4bK08f5.b4c7e3.1.
Via: SIP/2.0/UDP
61.144.118.186:46278;rport=46278;branch=z9hG4bK009EDE8E72584BEC86D9BF3F84978C12.
From: Chen <sip:[EMAIL PROTECTED]:7296>;tag=565410323.
To: <sip:[EMAIL PROTECTED]>.
Contact: <sip:[EMAIL PROTECTED]:46278>.
Call-ID: [EMAIL PROTECTED]
CSeq: 7145 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-PRO build 1082.
Content-Length: 342.
P-hint: usrloc applied.
P-hint: GATEWAY.
------------------------------------------------------------------------
_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel