;
> 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
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.
>
> --------
> *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
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:
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
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:
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