Scott Yagel wrote:
I'm still looking for some help in understanding the syntax used in the cfg
files, such as what the following statement fragment really is doing:

if(uri =~"^sip:[0-9]{10}@")

uri is the request URI of the request, e.g:
INVITE sip:[EMAIL PROTECTED] SIP/2.0
then uri would be "sip:[EMAIL PROTECTED]"

=~ means regular expression comparison, thus the following regular expression will be applied and if it matches the if condition returns TRUE, otherwise false.

^sip:[0-9]{10}@
this is the regular expression. The uri must start (^) with "sip:". Then there must be 10 digits followed by an "@". In short: the username must be a 10 digit phone number.

regards
klaus


        etc, etc,

Is there a manual that interprets this in detail so that I can make changes
to the checking of dialed digits, for example?

The cookbook has helped some, but I have not found this type of detail in
it. Maybe I have just not looked in the right section?

Thanks,

Scott Yagel
PacketCall, Inc.
[EMAIL PROTECTED]



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to