Re: [OpenSIPS-Users] on from and to header.
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
[OpenSIPS-Users] on from and to header.
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
[OpenSIPS-Users] May From and To header fields of a SIP message be modified?
Hi, I know that uac_replace_from() and uac_replace_to() functions allow the From and To header fields of a SIP request to be replaced. However, these two functions are not enabled in the onreply_route block. Can someone tell me how to modify the From and To fields of a SIP response such as 200 OK. Appreciate the help. Best wishes, Chen-Che -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/May-From-and-To-header-fields-of-a-SIP-message-be-modified-tp7581991.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] May From and To header fields be modified?
Hi, I know that uac_replace_from() and uac_replace_to() functions allow the From and To header fields of a SIP request to be replaced. However, these two functions are not enabled in the onreply_route block. Can someone tell me how to modify the From and To fields of a SIP response such as 200 OK. Appreciate the help. Best wishes, Chen-Ch -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/May-From-and-To-header-fields-be-modified-tp7581997.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users