Re: [SR-Users] Record-Route Parameters
Thanks for all your help. With record_route_preset(string[,string2]) i can place the parameters as i want. The only problem is that using record_route_preset, it doesn't add all the parameters that it usually does, like "vst", vsf" and "r2", only the ftag. However, it might be possible get those values as a variable in order to mannually add them to the Record-Route. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
Duarte Rocha writes: > When Kamailio receives the INVITE, it relays it with two Record-Route like > this : > > Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx > Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx > What i want is : > > Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=10 > Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=20 If you now call record_route(), try calling record_route_preset(string [,string2]). -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
I want to add to Kamailio's. This INVITE arrives at Kamailio with no Record-Route. It leaves Kamailio with two Record-Routes since i'm using one IP for receiving and another for sending. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
You want to add new parameters to someone else's Record-Routes, or Kamailio's? On Mon, Sep 17, 2018 at 03:59:14PM +0100, Duarte Rocha wrote: > When Kamailio receives the INVITE, it relays it with two Record-Route like > this : > > Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx > Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx > What i want is : > > Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=10 > Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=20 > I hope this make sense now. > > Thanks for your help > > > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
When Kamailio receives the INVITE, it relays it with two Record-Route like this : Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx What i want is : Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=10 Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=20 I hope this make sense now. Thanks for your help > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
Duarte Rocha writes: > Can you show me where? I've tried add_rr_param() but it still adds every > parameter to the two record-routes. I didn't quite understand your question. Perhaps you need to add the r-r headers using append_hf() function that allows you to customize them. -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
Can you show me where? I've tried add_rr_param() but it still adds every parameter to the two record-routes ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
Duarte Rocha writes: > I need all of my kamailio's IPs in Record Routes and i can do that already. > What i want to do is add different parameters to each Record-Route. Is that > possible? Yes, read rr module README. -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record-Route Parameters
Let me know do you need to add all IP's of kamailio in Record_Routes ? of course you need it when using cross-protocol forwarding. If you needed, you should add them by re-writing headers directly, else you could work with "enable_double_rr" parameter, to add one Record_Route in header. With Regards.Mojtaba On Fri, Sep 14, 2018 at 9:25 PM Duarte Rocha wrote: > > Greetings, > > My Kamailio has 2 IP's and, as such, it will generate two Record-Routes when > the Request is relayed. > > I want to add one parameter to one of the Record Routes and another parameter > to the other Record-Route. However, if i use add_rr_param() it will > automatically add the parameters to the two Record-Route Headers. > > Is there a way to do what i want without me re-writing the headers directly ? > > Cheers, > > Duarte Rocha > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- --Mojtaba Esfandiari.S ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record Route Parameters
Hi, As Alex mentioned, "they will not be changed by comaliance UA", But be notice that if you want to relay your request to other network, and these is a SBC on upstream networks, These parameters could be removed by them, As in your Kamailio as SBC, you remove all record_route, and add its IP as record_route. remove_hf("Route"); if (is_method("INVITE|SUBSCRIBE")) { record_route(); } With Regards.Mojtaba On Fri, Sep 14, 2018 at 6:24 PM Alex Balashov wrote: > > They will not be changed by compliance user agents. In that sense it's safe. > However, be mindful of the fact that these parameters can be intercepted or > altered by a malicious user agent, and that adding them in multiplicity > contributes to the overall size of the message. > > -- > Sent from mobile. Apologies for brevity and errors. > > -Original Message- > From: Duarte Rocha > To: sr-users@lists.kamailio.org > Sent: Fri, 14 Sep 2018 9:46 AM > Subject: [SR-Users] Record Route Parameters > > Greetings, > > I have Kamailio as an SBC with mutiple IP's and I need to save some > information in the first Invite about the routing made internally in the > Kamailio. > > I'm thinking about adding some parameters to Record-Route and retrieve them > in the Route header. Is this safe ? Can I be sure that those parameters > won't be deleted or changed? > > Best Regards, > > Duarte Rocha > > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- --Mojtaba Esfandiari.S ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Record-Route Parameters
Greetings, My Kamailio has 2 IP's and, as such, it will generate two Record-Routes when the Request is relayed. I want to add one parameter to one of the Record Routes and another parameter to the other Record-Route. However, if i use add_rr_param() it will automatically add the parameters to the two Record-Route Headers. Is there a way to do what i want without me re-writing the headers directly ? Cheers, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Record Route Parameters
They will not be changed by compliance user agents. In that sense it's safe. However, be mindful of the fact that these parameters can be intercepted or altered by a malicious user agent, and that adding them in multiplicity contributes to the overall size of the message. -- Sent from mobile. Apologies for brevity and errors. -Original Message- From: Duarte Rocha To: sr-users@lists.kamailio.org Sent: Fri, 14 Sep 2018 9:46 AM Subject: [SR-Users] Record Route Parameters Greetings, I have Kamailio as an SBC with mutiple IP's and I need to save some information in the first Invite about the routing made internally in the Kamailio. I'm thinking about adding some parameters to Record-Route and retrieve them in the Route header. Is this safe ? Can I be sure that those parameters won't be deleted or changed? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Record Route Parameters
Greetings, I have Kamailio as an SBC with mutiple IP's and I need to save some information in the first Invite about the routing made internally in the Kamailio. I'm thinking about adding some parameters to Record-Route and retrieve them in the Route header. Is this safe ? Can I be sure that those parameters won't be deleted or changed? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users