[Kamailio-Users] append_hf

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 24 09:51:54 CET 2008


Hello,

On 11/24/08 04:01, Matteo D'Amato wrote:
> Hello,
> 	 I'm trying to append trunk group information to my Contact header
> so I'm, using append_hf as follows
>
>
>     append_hf("tgrp=30001 \r\n", "Contact");
>   
this appends a new header. For what you need try subst() or 
search_append() functions.

Alternative:

remove_hf("Contact");

append_hf("Contact: $hdr(contact);tgrp=30001\r\n", "Contact");

Cheers,
Daniel


>
> but it seems to go on the second line. How do I remove the line feed?
>
>
> Max-Forwards: 69.
> Contact: <sip:1001 at 192.168.1.2:44114>.
> tgrp=DMS19 

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the sr-users mailing list