[sr-dev] [kamailio/kamailio] could not resolve hostname (#1443)
Fyodor
notifications at github.com
Thu Feb 15 22:03:11 CET 2018
Shame on me -__-
It was mistake in my config, i forgot to set `$var(nu)`
```
# get user name
$var(nu) = $rU;
```
so fixed kamailio.cfg:
```
...
request_route {
if($rU=~"^(z\#)[0-9][0-9]{1,20}$"){
# get user name
$var(nu) = $rU;
# get normal DestNum without prefix
$var(nuu) = $(var(nu){s.strip,2});
#set FROM Caller ID /TEST/
# @TODO: Set from callerID HERE
$fU = "74951277197";
# new sip uri
$ru = "sip:" + $var(nuu) + "@sip.zadarma.com";
route(RELAY);
}
...
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1443#issuecomment-366060726
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180215/b91ace2d/attachment.html>
More information about the sr-dev
mailing list