On Thu, Feb 22, 2007 at 12:45:53AM +0000, Jon Farmer wrote:
Hi
I am trying to find a way to detect if the Invite URI starts with a *.
Perhaps I'm not really enlightened in the realms of URIs, but can a URI really contain a * ? I was under the impression that the only allowed characters were [A-z0-9-.] plus @ as a separator of username and domain.
How do I match this as ser normally sees * as a wildcard.
I believe SER uses regular expression type of matching and thus * is not really a wildcard, but rather "0 or more instances of the previous character". Anyway to match a request-URI starting with '*' you simply do if (uri =~ /^*/) { #blaha }
I'm from the OpenSER world so request-URI might not be called 'uri'.
Kristian