Re: [SR-Users] kamailio re.subst question.

2017-03-02 Thread José Seabra
Hi Daniel, Sorry, I misconfused you with Daniel Constantin :), Miconda was the who that sent that Email explaining the {line.sw,match} some time ago. Regarding with $, i will take your advice :) Once again, thank you. Best Regards José 2017-03-02 17:23 GMT+00:00 Daniel Tryba : > On Thu, Mar

Re: [SR-Users] kamailio re.subst question.

2017-03-02 Thread Daniel Tryba
On Thu, Mar 02, 2017 at 03:46:01PM +, José Seabra wrote: > I changed the way that i was trying to get it done. > > Now I'm using the {line.sw,match} ( you had already mentioned this function > on an old email), Im not that Daniel :) Or my memory starts to fail me. > to split the string by

Re: [SR-Users] kamailio re.subst question.

2017-03-02 Thread José Seabra
Hi Daniel, Just to give you feedback about the way i have implemented this. I changed the way that i was trying to get it done. Now I'm using the {line.sw,match} ( you had already mentioned this function on an old email), to split the string by line, then i apply the following regex: ^Calling-Nam

Re: [SR-Users] kamailio re.subst question.

2017-03-02 Thread José Seabra
Hi Daniel, Thank you for your hint. I will continuing investigating and try to reach my goal. Best regards José 2017-03-02 14:29 GMT+00:00 Daniel Tryba : > On Wed, Mar 01, 2017 at 04:58:00PM +, José Seabra wrote: > > #015#012Calling-Name-Status: available#015#012Calling-Name: "josé" < > > si

Re: [SR-Users] kamailio re.subst question.

2017-03-02 Thread Daniel Tryba
On Wed, Mar 01, 2017 at 04:58:00PM +, José Seabra wrote: > #015#012Calling-Name-Status: available#015#012Calling-Name: "josé" < > sip:52@10.10.10.10>#015#012Presentation-Indicator: allowed#015#012 > > The Kamailio re.subst function is constructed as the following: > > $sht(cnam=>$ci::

[SR-Users] kamailio re.subst question.

2017-03-01 Thread José Seabra
Hello There, I'm trying using the following regexp on re.subst function: (.*)Calling-Name: ?([\W|0-9A-Za-z_]{5,500} ?[<>:@.|0-9A-Za-z_]{5,500})(.*)$ And the string used for match is the following: #015#012Calling-Name-Status: available#015#012Calling-Name: "josé" < sip:52@10.10.10.10>#01