Hi.  I am trying to inspect the $fU variable to find out if it has a length
greater than 11 digits (US dialing) and, if so, only return the last 11
digits and store them to $fU.  So far, this is what I have:

        if ($(fU{s.len}) > 11)
        {
                $var(fU) = $(fU{s.substr,-1,11});
        }

Does this look correct?  Are there more efficient ways to do it?

Thank All,
Alex
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to