Wow,
I had to upgrade (I was on 0.8.12). Then I loaded avp and avpops and did the suggestion below.
avp_write("$from","i:678"); avp_pushto("$P-Asserted-ID","i:678");
Worked great, the output looks like:
P-Asserted-ID: sip:+12145551212@test.com
However, I need the output to look like:
P-Asserted-ID: sip:+12145551212@test.com
Does avp let me format the output at all? I tried a bunch of stuff that didn't work.
This avp stuff is great. I should have looked at it a long time ago. Variables, what a concept ;-)
-g
On 10/5/05, Daniel-Constantin Mierla daniel@voice-system.ro wrote:
On 10/05/05 09:18, Juha Heinanen wrote:
Greg Fausak writes:
I was going to hack a append_urihf() into a append_furihf() to accomplish the task...can I do this with an exec_dset or something else?
a more general purpose solution would be to load from uri into an avp and then include that avp value into appended hf. perhaps there already exists a way to do so, i just have not needed it yet.
with avpops module:
avp_write("$from","i:678"); avp_pushto("$P-Asserted-ID","i:678");
Daniel
-- juha
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Greg Fausak greg@thursday.com