Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
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

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Juha Heinanen
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 : > >

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
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

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Alex Balashov
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 >

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
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

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Juha Heinanen
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

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
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

2018-09-17 Thread Juha Heinanen
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) -

Re: [SR-Users] Record-Route Parameters

2018-09-15 Thread Mojtaba
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

Re: [SR-Users] Record Route Parameters

2018-09-15 Thread Mojtaba
--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

[SR-Users] Record-Route Parameters

2018-09-14 Thread Duarte Rocha
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

Re: [SR-Users] Record Route Parameters

2018-09-14 Thread Alex Balashov
. 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

[SR-Users] Record Route Parameters

2018-09-14 Thread Duarte Rocha
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