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.tr...@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@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > -- Cumprimentos José Seabra
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users