Thanks, it works as expected.
>2012/4/12 Juha Heinanen :
> if (!load_gws(1, $rU, $fu)) {
--
"В связи с отсутствием интереса общественности, конец света отменяется" (с) ?
С Уважением, Механошин Алексей
___
SIP Express Router (SER) and Kamailio (OpenSER)
Alexey Mechanoshin writes:
> > If uri_user is given, it is used, instead of Request-URI user part,
> > to look for matching gateways.
yes, but since you need also caller's uri, you must call load_gw() like
this:
if (!load_gws(1, $rU, $fu)) {
> My test change simple load_gws(1) to load_gws(1,$f
> If uri_user is given, it is used, instead of Request-URI user part, to look
> for matching gateways
In my config only lcr_id:
...
mhomed=1
...
if (!load_gws(1)) {
...
and not local registered user and not allow local users subscribe.
A'm this calls:
192.xxx.xxx.59
Alexey Mechanoshin writes:
> Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO:
Ok, change to LM_INFO and retry invite from master branch, by kamailio:
#make FLAVOUR=kamailio cfg
...
#make deb
(Debian squeze)
Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO:
i added a dbg statement in lcr_mod.c that prints log message if from uri
matching fails. you can try with latest master and see what you get
into syslog at debug level 3 or convert load_gws() LM_DBG statement to
LM_INFO statements and try at debug level 2.
-- juha
___
Thanks for reply.
Ok, my change in DB to :
| 5 | 1 | 5499 | sip:5...@192.xxx.xxx.59 | 0 | 1 |
and restart kamailio.
Then, in cfg:
request_route {
xlog("L_INFO", "New request - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n");
Log:
New request - M=INVITE RURI=sip:5...@192.x
Alexey Mechanoshin writes:
> Please help me change my config to working routing by checking 'from_uri' .
> Apr 10 17:01:23 r59vredfs /usr/sbin/kamailio[29582]: INFO:
Hello all.
In my config added LCR routing by this manual:
http://www.amitnepal.com/using-lcr-with-kamailio/ and if added, to
'lcr_rule' table, uri to 'from_uri' column - kamailio always reply 503
- 'No More Gateways' :-( If remove data - routing work. A'm using last
kamailio from git ...
Please