I don't see that this particular header is made available by any of the core vars or scripting vars.
<div><br></div><div>I tried using $(hdr(P-Called-Party-Id)) but OS comes back with /usr/sbin/opensips[7981]: P-Called-Party-Id equals <null></div><div><br></div><div>It seems to think that I'm looking for:</div>
<div><br></div><div><div>/usr/sbin/opensips[7981]: DBG:core:pv_get_ppi_attr: no <b>P-Preferred-Identity header</b></div></div><div><br></div><div>The provider actually has a P-Called-Party-Id, and I need it's uri.user portion because they don't preserve any of the other headers between transmissions for me to perform some modification. </div>
<div><br></div><div>It's a real pain - any advice on how to grab this header and put it into a variable that will <i>persist</i> between two separate dialogues? </div><div><br></div><div>The dialogue from the provider to the proxy is A, and the proxy pushes a new call into Asterisk B. There isn't a to tag between the INVITES, but there is a FROM tag (double-tag).</div>
<div><br></div><div>I'm trying to mentally twist my head around how to reference the from-tag from a separate transaction within the loose_route function - but I'm coming up empty.</div><div><br></div><div>Help would be great!</div>
<div><br></div>