[SR-Users] LCR routing and From Uri

Juha Heinanen jh at tutpro.com
Wed Apr 11 14:41:54 CEST 2012


Alexey Mechanoshin writes:

> Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO: <script>:
> request uri is <sip:5499 at 192.xxx.xxx.50:5070>
> Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO: lcr
> [lcr_mod.c:1835]: from uri <> did not match to from regex
> <sip:5714 at 192.xxx.xxx.59>

your from uri is empty string.  check that you call load_gws() with
proper arguments:

4.1.  load_gws(lcr_id[, uri_user[, caller_uri]])

   Loads attributes of matching gateways to gw_uri_avp (see Overview
   section). Argument lcr_id specifies the used LCR instance. It can be an
   integer or a pseudo variable containing an integer value. If uri_user
   is given, it is used, instead of Request-URI user part, to look for
   matching gateways. Caller's URI may be given by caller_uri argument. If
   caller_uri argument is omitted, it defaults to empty string. Both
   uri_user and caller_uri argument may be a string or a pseudo variable
   containing a sting value.

-- juha



More information about the sr-users mailing list