proxy - Kamailio 4.4 seturi Only Accepts Explicit Strings? -


i've been working @ implementing simple serial forking described in tm module's documentation (the q values stored priority weight in mysql table) proxy querying database determine domain forward to.

i've verified through extensive use of xlog variable i'm using build new uri use seturi getting correctly. use append_branch call in subsequent while loop iterating on sql query results, doesn't have problems taking formatted parameter. however, when go restart kamailio gripes @ me string expected. line corresponds console seturi call. i've tried casting string, doesn't seem part of 4.4 (or syntax wrong).

i've thought building uri strings , storing avp, suspect i'd have same problem.

for reference, i'm doing:

$var(basedest) = "sip:" + $var(number) + "@" + $(dbr(destination=>[0,0]))+ ":" + $var(port); seturi($var(basedest)); 

and it's outputting when trying load config:

<core> [cfg.y:3368]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 570, column 9-22: syntax error <core> [cfg.y:3371]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 570, column 23: bad argument, string expected 

naturally, when put $var(basedest) in double quotes, it's literally interpreted string. single quotes behave similarly. there can work around this? when feed explicit hardcoded string, it's happy can , routing works fine. when try simple above, gets upset. if possible, i'd avoid updating grabbed kamailio yum repo.

thanks in advance - has been bugging me while.

apparently, not new problem. ended finding out can work around it.

for reference, seturi , $ru pseudo variable refer same thing. you'd do:

$var(mynewru) = "sip:user@domain:5060"; $ru = $var(mynewru); 

this achieve same thing attempting before based on tm module's documentation. serial forking, issuing number of append_branch calls fine.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -