Re: [SR-Users] remove_hf_value

2015-03-23 Thread Daniel-Constantin Mierla
; > And for initial SUBSCRIBE INVITE > > if (is_method("INVITE|SUBSCRIBE")) { > remove_hf("Route"); > insert_hf("Record-Route: <"sip" + ":" + > $sel(cfg_get.kamailio.bindip) + ":" + > $sel(cfg_ge

Re: [SR-Users] remove_hf_value

2015-03-22 Thread Slava Bendersky
uot;:" + $sel(cfg_get.kamailio.bindip) + ":" + $sel(cfg_get.kamailio.bindport); } } } } And for initial SUBSCRIBE INVITE if (is_method("INVITE|SUBSCRIBE")) { remove_hf("Route"); insert_hf("Record-Route: <"sip" + ":" + $sel(cfg_get.kamailio.

Re: [SR-Users] remove_hf_value

2015-03-18 Thread Daniel-Constantin Mierla
> > -------- > *From: *"Daniel-Constantin Mierla" > *To: *"sr-users" > *Sent: *Monday, March 16, 2015 7:01:54 AM > *Subject: *Re: [SR-Users] remove_hf_value > > Hello, > > can you give

Re: [SR-Users] remove_hf_value

2015-03-16 Thread Slava Bendersky
ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Expires: 3600 Contact: ;expires=3600 Content-Length: 0 Slava. From: "Daniel-Constantin Mierla" To: "sr-users" Sent: Monday, March 16, 2015 7:01:54 AM Subject: Re:

Re: [SR-Users] remove_hf_value

2015-03-16 Thread Daniel-Constantin Mierla
Hello, can you give an example of incoming header and how you want to be after modification? It is not clear for me what end result you want/expect. Cheers, Daniel On 14/03/15 06:41, Slava Bendersky wrote: > Hello Everyone, > Here updated version. Trying remove Record-Route after the coma. > M

Re: [SR-Users] remove_hf_value

2015-03-13 Thread Slava Bendersky
Hello Everyone, Here updated version. Trying remove Record-Route after the coma. My log shows Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: INFO:

[SR-Users] remove_hf_value

2015-03-13 Thread Slava Bendersky
Hello Everyone, I am trying adjust Record-Route, but can't match headers value And I am call route(ROUTE_HDR_ORG); right after route(WITHINDLG); route[ROUTE_HDR_ORG] { # Getting record routes if(is_present_hf("Record-Route")) { if(is_method("SUBSCRIBE")) { xlog("$sel(@hf_value.Record_Route