You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/obsolete/uri
Victor Seva 4a31eece25
upstream 4.0.1 version. No sipwise patches.
13 years ago
..
doc upstream 4.0.1 version. No sipwise patches. 13 years ago
Makefile upstream 4.0.1 version. No sipwise patches. 13 years ago
README upstream 4.0.1 version. No sipwise patches. 13 years ago
checks.c upstream 4.0.1 version. No sipwise patches. 13 years ago
checks.h upstream 4.0.1 version. No sipwise patches. 13 years ago
uri_mod.c upstream 4.0.1 version. No sipwise patches. 13 years ago
uri_mod.h upstream 4.0.1 version. No sipwise patches. 13 years ago

README

1. Uri Module

Jan Janak

   FhG FOKUS

   Copyright © 2003 FhG FOKUS
     __________________________________________________________________

   1.1. Overview
   1.2. Functions

        1.2.1. is_user(username)
        1.2.2. has_totag()

1.1. Overview

   Various checks related to SIP URI.

1.2. Functions

1.2.1.  is_user(username)

   Check if the username in credentials matches the given username.

   Meaning of the parameters is as follows:
     * username - Username string or AVP.

   Example 1. is_user usage
...
if (is_user("jan")) {
    ...
};
...

1.2.2.  has_totag()

   Check if To header field uri contains tag parameter.

   Example 2. has_totag usage
...
if (has_totag()) {
    ...
};
...