Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-17 Thread Samusenko Andrey
Not bad! Thank you! On пятница, 17 августа 2018 г. 16:02:19 MSK Bogdan-Andrei Iancu wrote: > Indeed, the $hdr() returns the whole SIP RR hdr, not the only one RR body. > > Try $(hdr(Record-Route){s.select,0,,}) - this is a bit ugly, but it > should do the trick. > > Regards, > > Bogdan-Andrei

Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-17 Thread Bogdan-Andrei Iancu
Indeed, the $hdr() returns the whole SIP RR hdr, not the only one RR body. Try $(hdr(Record-Route){s.select,0,,}) - this is a bit ugly, but it should do the trick. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Bootcamp 2018

Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-17 Thread Самусенко Андрей
xlog("Found \"Record-Route\" 1 header: $(hdr(Record-Route)[1])\n"); in log: Found "Record-Route" 1 header: Index is for lines, not routes. How to split by comma? No core function?) On пятница, 17 августа 2018 г. 11:17:28 MSK Răzvan Crainea wrote: > Hello! > > You can index the hdr variable,

Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-17 Thread Răzvan Crainea
Hello! You can index the hdr variable, like $(hdr(Record-Route)[1]). Best regards, Răzvan On 08/17/2018 10:51 AM, Самусенко Андрей wrote: Hello. xlog("Found \"Record-Route\" header: $hdr(Record-Route)\n"); gives Found "Record-Route" header: , There are simple way to get first uri ?

Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-17 Thread Самусенко Андрей
Hello. xlog("Found \"Record-Route\" header: $hdr(Record-Route)\n"); gives Found "Record-Route" header: , There are simple way to get first uri ? Thanks! On четверг, 16 августа 2018 г. 20:08:06 MSK Bogdan-Andrei Iancu wrote: > Hi, > > Try $(hdr(Record-Route)[*]) - this will give all the RR

Re: [OpenSIPS-Users] How to get top Record-Route URI?

2018-08-16 Thread Bogdan-Andrei Iancu
Hi, Try $(hdr(Record-Route)[*]) - this will give all the RR hdr. To get the first one, do $hdr(Record-Route) Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Bootcamp 2018 http://opensips.org/training/OpenSIPS_Bootcamp_2018/ On

[OpenSIPS-Users] How to get top Record-Route URI?

2018-08-15 Thread Samusenko Andrey
Hello. RRs in one line, comma separated. RRs is in reply. Only regular expression can help? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users