Hi all,

I'm  working on converting an Asterisk App over to SEMS using DSM...

I need to see if the USER of @local_uri is a "*" at the beginning...

Here's the code ($lparty is already split out):
        set($lus = $lparty.user);
        substr($lus,0,1);
        if test($lus == "*") {set(type=FUNCTION);}


Problem is, it matches everything!

It matches "*97" and "222"... I need it to ONLY match "*"

I'll probably have a bunch more questions... patience is greatly appreciated...
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to