[SR-Users] kamailio re.subst question.

Daniel Tryba d.tryba at pocos.nl
Thu Mar 2 18:23:29 CET 2017


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.




More information about the sr-users mailing list