Hi, Thanks for your reply :)
I can confirm load_gws arguments are the same compared to kamcmd lcr.load_gws. Except that in kamailio.cfg load_gws can only load lcr_id + 2 args (uri_user[, caller_uri])
in kamcmd I must enter 4 args (lcr_id, prefix, caller_uri and request_uri)
Le mer. 20 avr. 2022 à 19:46, Juha Heinanen jh@tutpro.com a écrit :
to test gws, I use kamcmd for example : kamcmd lcr.load_gws 1 s:0600000001 s:02111111111 s:0600000001 arg 1 : prefix or $rU arg 2 : from_uri arg 3 : request_uri
result is OK with 5 gateways selected
but in real test situation with the following config file :
kamailio.cfg :
request_route { ... if(!load_gws(1,$rU,$fU)) { sl_send_reply("500", "Cannot load gateways"); exit; } ## - dumping the list of lcr gateways $var(i) = 0; while( $(avp(lcr_gw_uri)[$var(i)]) != $null) { xlog("L_ERR","loaded gw_uri_avp[$var(i)]=’$(avp(lcr_gw_uri)[$var(i)])’\n"); $var(i) = $var(i) + 1; }
if(!next_gw()) { sl_send_reply("503", "No gateways found"); exit; }
Log values of load_gws arguments to see if they are the same as in kamcmd test.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: