[Serusers] AVPOPS - How do I to write Call-ID to an AVP???

Marian Dumitru marian.dumitru at voice-sistem.ro
Tue Mar 22 21:28:13 CET 2005


Hi Paul,

Try:
	avp_write("$hdr[call-id]","i:11");
	avp_print();

I just gave it a try and worked perfect. Note the feature is present 
only on development branch.

Best regards,
Marian


Java Rockx wrote:
> Hi All.
> 
> The AVPOPS documentation says that any header can be written to an AVP.
> 
> For example
> 
> avp_write("$hdr[My-header]","i:11");
> 
> This would right the body of the "My-header" header to AVP i:11
> 
> But this does not work.
> 
> I want to write the Call-ID header to an AVP. How do I do this?
> 
> Regards,
> Paul
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 

-- 
Voice System
http://www.voice-system.ro




More information about the sr-users mailing list