<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello everyone,</p>
<p>finally a could patch it in proxy.cfg.customtt.tt2 (thank you
danilo) In the route route[ROUTE_ACC_CALLER] line 1469 I added</p>
<p>1469 xlog("L_NOTICE", "caller_ip_val a null, configurando
a acc_caller_domain\n");<br>
1470 if($avp(s:caller_ip_val) == $null)<br>
1471 {<br>
1472 $avp(s:caller_ip_val) =
$avp(s:acc_caller_domain);<br>
1473 }</p>
<p>I use IP address like domain names in peers so It's ok for me,
sure It's not the better way but I am new with sip and kamailio.<br>
</p>
<p>Thank you.<br>
</p>
<br>
<div class="moz-cite-prefix">El 06/02/18 a las 13:42, pushakk
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:d9d3e2c9-4dad-b72e-deed-f839f7d37f88@limbo.deathwing.net">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Hello Rene,</p>
<p>by the way I have to change the template
/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2 and
modify <br>
</p>
<p> avp_db_query("select vpg.id from
provisioning.voip_peer_groups vpg left join
provisioning.voip_peer_hosts vph on vph.group_id = vpg.id where
vpg.has_inbound_rules = 1 and vph.ip = '$avp(s:ip)' <b>and
(('$avp(s:protoid)' = '1' and vph.port = $avp(s:port)) or
('$avp(s:protoid)' != '1')) </b>and vph.transport =
$avp(s:protoid) order by vpg.priority asc",
"$avp(s:peer_group_ids)");</p>
<p>I have to quit the bold part because in cisco is no way to set
fixed port to SIP invites.</p>
<p>Just in case.</p>
<p>Thank you.<br>
</p>
<br>
<div class="moz-cite-prefix">El 06/02/18 a las 13:33, pushakk
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:5401d562-4712-6c4d-2ece-3fbef65eb9ab@limbo.deathwing.net">Hello
Rene, <br>
<br>
in triying to fix it in the peer "preferences" -> "inner"
-> "ip_header". I guess I should put there the field "From:"
for example? It's the only sip field where I can see the IP
address but in the form "From: <a class="moz-txt-link-rfc2396E"
href="sip:667xxxxxx@10.0.1.13" moz-do-not-send="true"><sip:667xxxxxx@10.0.1.13></a>".
<br>
<br>
thank you very much. <br>
<br>
<br>
El 06/02/18 a las 13:27, Rene Krenn escribió: <br>
<blockquote type="cite">Hi, <br>
<br>
thx for reporting; created an issue for providing a fix to
make rate-o-mat tolerate these empty fields. <br>
Roaming billing (see billing networks) cannot be used then
however. <br>
<br>
regards <br>
<br>
-----Ursprüngliche Nachricht----- <br>
Von: Spce-user [<a class="moz-txt-link-freetext"
href="mailto:spce-user-bounces@lists.sipwise.com"
moz-do-not-send="true">mailto:spce-user-bounces@lists.sipwise.com</a>]
Im Auftrag von pushakk <br>
Gesendet: Dienstag, 6. Februar 2018 13:06 <br>
An: <a class="moz-txt-link-abbreviated"
href="mailto:spce-user@lists.sipwise.com"
moz-do-not-send="true">spce-user@lists.sipwise.com</a> <br>
Betreff: [Spce-user] inbound calls set accounting.cdr
source_ip to null <br>
<br>
Hello everyone, <br>
<br>
I have a problem with inbound calls setting the source_ip
field to NULL in the CDR. The rate-o-mat process gives me a
waning <br>
<br>
Feb 6 10:20:11 sip (warning) rate-o-mat[16944]: 1/100 -
rating CDR ID <br>
114 aborted : Can't call method "version" on an undefined
value at /usr/sbin/rate-o-mat line 1510. <br>
<br>
and then it stops rating the calls. <br>
<br>
Why is kamailio setting the source_ip to NULL in inbound calls
but not in the outbound ones? I have tried to look for this
same problem in the forum and in the /etc/kamailio/proxy
routing logic but I can't find anything. <br>
<br>
Thank you. <br>
<br>
_______________________________________________ <br>
Spce-user mailing list <br>
<a class="moz-txt-link-abbreviated"
href="mailto:Spce-user@lists.sipwise.com"
moz-do-not-send="true">Spce-user@lists.sipwise.com</a> <br>
<a class="moz-txt-link-freetext"
href="https://lists.sipwise.com/listinfo/spce-user"
moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________ <br>
Spce-user mailing list <br>
<a class="moz-txt-link-abbreviated"
href="mailto:Spce-user@lists.sipwise.com"
moz-do-not-send="true">Spce-user@lists.sipwise.com</a> <br>
<a class="moz-txt-link-freetext"
href="https://lists.sipwise.com/listinfo/spce-user"
moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>