RFC 3261 is explicit that the From and To headers in a response MUST be equal 
to those in the request, with the exception of the potential addition of a tag 
in the To header if not already present.

https://www.rfc-editor.org/rfc/rfc3261.html#section-8.2.6.2

Ben Newlin

From: Users <[email protected]> on behalf of Johan De Clercq 
<[email protected]>
Date: Wednesday, April 10, 2024 at 9:44 AM
To: OpenSIPS users mailling list <[email protected]>
Subject: [OpenSIPS-Users] on from and to header.
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
This is more a protocol question then anything else.

A sends a call B
INVITE [email protected]<mailto:[email protected]>
from: <sip:[email protected]:5060<http://sip:[email protected]:5060>>;tag=1
to: <sip:[email protected]<mailto:sip%[email protected]>>
call-id: 1
......

B responds with from and to in e164 format
200 OK
from: <sip:[email protected]:5060<http://sip:[email protected]:5060>>;tag=1
to: <sip:[email protected]<mailto:sip%3A%[email protected]>>; tag=2
call-id: 1

My gut feeling says to me that A will not like this and hence that B should 
respong with A and B instead of +32A and +32B.
But can somebody explain me why or why not?

Best regards, Johan.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to