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 192.xxx.xxx.50 [calling party] ---> FreeSwitch ------192.xxx.xxx.0/24 network----------------------------------->(eth1) Kamailio(eth0) ----> next by IP, getting from LCR --> INVITE only numver, as by not registered gateway
I.e. if I am not registered on Kamailio that to me the given check does not approach?
My test change simple load_gws(1) to load_gws(1,$fU) and this bad routing: |Time | 192.xxx.xxx.59 | | | | 192.xxx.xxx.50 | |0,000 | INVITE SDP (iLBCRTPType-98 telephone-eventRTPT...-101 CN) |SIP From: "5714" <sip:5714@192.xxx.xxx.59 To:<sip:5499@192.xxx.xxx.50:5070 | |(5070) ------------------> (5070) | |0,001 | 100 trying -- your call is important to us |SIP Status | |(5070) <------------------ (5070) | |0,002 | INVITE SDP (iLBCRTPType-98 telephone-eventRTPT...-101 CN) |SIP Request | |(5070) <------------------ (5070) | |0,002 | 100 Trying| |SIP Status | |(5070) ------------------> (5070) | |0,046 | 480 Temporarily Unavailable |SIP Status | |(5070) ------------------> (5070) | |0,046 | ACK | |SIP Request | |(5070) <------------------ (5070) | |0,047 | 480 Temporarily Unavailable |SIP Status | |(5070) <------------------ (5070) | |0,048 | ACK | |SIP Request | |(5070) ------------------> (5070) |
I'm new to set up, and not all understand.
2012/4/11 Juha Heinanen jh@tutpro.com:
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]])