[OpenSIPS-Users] on from and to header.

2024-04-10 Thread Johan De Clercq
This is more a protocol question then anything else.

A sends a call B
INVITE B@5.6.7.8
from: ;tag=1
to: 
call-id: 1
..

B responds with from and to in e164 format
200 OK
from: ;tag=1
to: ; 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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] on from and to header.

2024-04-10 Thread Ben Newlin
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  on behalf of Johan De Clercq 

Date: Wednesday, April 10, 2024 at 9:44 AM
To: OpenSIPS users mailling list 
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 B@5.6.7.8<mailto:B@5.6.7.8>
from: http://sip:A@1.2.3.4:5060>>;tag=1
to: mailto:sip%3AB@5.6.7.8>>
call-id: 1
..

B responds with from and to in e164 format
200 OK
from: http://sip:+32A@1.2.3.4:5060>>;tag=1
to: mailto:sip%3A%2B32B@5.6.7.8>>; 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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users