How add "user=phone" in the INVITE

Hi,teams

How add “user=phone” in the INVITE
INVITE sip:123456789@192.168.1.2 SIP/2.0
modify
INVITE sip:123456789@192.168.1.2 user=phone SIP/2.0

Hats off to you

why you need it?

When I was testing ISP line, the ISP asked to add it.
now I use “Term append headers req”,add “P-Asserted-Identity: sip:$fU@192.168.1.3;user=phone\r\n”,
testing in this way .

Use “Term append headers req” to add “P-Asserted-Identity: sip:$fU@192.168.1.3; User = phone \ r \ n”
$fU gets legA, not legB.
example:
LegA:
NVITE sip:+12345678866@192.168.1.34:5061 SIP/2.0
Via: SIP/2.0/UDP 10.87.182.164;branch=z9hG4bKZyUnpaMP;rport
From: sip:88888888@10.87.182.164;tag=8-704ABE88-63540271000909E0-D08AD700
To: sip:+123456788666@192.168.168.34:5061
CSeq: 10 INVITE
Call-ID: 8-52F8A152-63540271000909E1-D08AD700
Max-Forwards: 70
Content-Type: application/sdp
Contact: sip:10.87.182.164:5060;transport=udp
Content-Length: 205

LegB:
NVITE sip:+12345678866@192.168.1.34:5061 SIP/2.0
Via: SIP/2.0/UDP 10.87.182.164;branch=z9hG4bKZyUnpaMP;rport
From: sip:099996666@10.87.182.164;tag=8-704ABE88-63540271000909E0-D08AD700
To: sip:+123456788666@192.168.168.34:5061
CSeq: 10 INVITE
Call-ID: 8-52F8A152-63540271000909E1-D08AD700
Max-Forwards: 70
P-Asserted-Identity: sip:88888888@10.87.182.164;user=phone
Content-Type: application/sdp
Contact: sip:10.87.182.164:5060;transport=udp
Content-Length: 205

legB call trace

In initial post you asked about R-URI, now about PAI. Currently yeti support just relaying PAI from one leg to another, PAI adding/rewriting in our roadmap and we expecting it in 1.13.

Thank you very much for your work.
I’m just reporting problems on the test.
I am also studying program development. I hope I can make my contribution.
In my tests, with version 1.11, the PAI was unable to relay from one leg to another leg.

have you tried https://yeti-switch.org/docs/en/headers-filtering.html ?

I haven’t tested the Headers filtering feature.