[SR-Users] kamailio re.subst question.

José Seabra joseseabra4 at gmail.com
Thu Mar 2 18:29:57 CET 2017


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 <d.tryba at pocos.nl>:

> On Thu, Mar 02, 2017 at 03:46:01PM +0000, 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 line, then i apply the following
> > regex: ^Calling-Name: ?(.{2,50}>)$.
> >
> > This way I get what i need, that is the sip uri and display name.
>
> Only thing I'd change would be to remove the $ for end of line, just to
> make it more generic. But if you are sure that these headerlines end
> with >, that would not make a difference.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Cumprimentos
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170302/8f8ef53a/attachment.html>


More information about the sr-users mailing list