<div dir="ltr">I have an AVP with multiple entires which I'd like to add to a header, but I can't for the life of me find a way to do this. It looks like once upon a time, avp_pushto could do this, but not anymore.<div>
<br></div><div>Basically, I load an AVP like this:</div><div><div><br></div><div> avp_db_load("$avp(userid)/uuid", "$avp(uuri)/$uuri", "1");</div></div><div><br></div><div style>
And I'm trying to do the equivalent of:</div><div style><br></div><div style><div> avp_pushto("$P-Associated-URI/reply", "s:uuri/g");</div><div><br></div><div style>Which doesn't seem to work anymore (I can only find reference in old docs).</div>
<div style><br></div><div style>Using this:</div><div style><br></div><div> append_to_reply("P-Associated-URI: $avp(uuri)\r\n");</div><div><br></div><div style>Only adds one of the AVP values, not all. </div>
<div style><br></div><div style>The way I see it, there are two ways this could work. Either, I need some way to "join" all the AVP values into one new string, or I need a way to add a header and have it take all the values and auto-join them in the usual SIP way (with comas).</div>
<div style><br></div><div style>Can anyone point me in the right direction here?</div><div style><br></div><div style>Thanks,</div><div style>Tolga</div></div></div>