[Spce-user] inbound calls set accounting.cdr source_ip to null
pushakk at limbo.deathwing.net
Thu Feb 8 05:53:46 EST 2018
finally a could patch it in proxy.cfg.customtt.tt2 (thank you danilo) In
the route route[ROUTE_ACC_CALLER] line 1469 I added
1469 xlog("L_NOTICE", "caller_ip_val a null, configurando a
1470 if($avp(s:caller_ip_val) == $null)
1472 $avp(s:caller_ip_val) = $avp(s:acc_caller_domain);
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.
El 06/02/18 a las 13:42, pushakk escribió:
> Hello Rene,
> by the way I have to change the template
> /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2 and modify
> 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)' *and
> (('$avp(s:protoid)' = '1' and vph.port = $avp(s:port)) or
> ('$avp(s:protoid)' != '1')) *and vph.transport = $avp(s:protoid) order
> by vpg.priority asc", "$avp(s:peer_group_ids)");
> I have to quit the bold part because in cisco is no way to set fixed
> port to SIP invites.
> Just in case.
> Thank you.
> El 06/02/18 a las 13:33, pushakk escribió:
>> Hello Rene,
>> 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: <sip:667xxxxxx at 10.0.1.13>".
>> thank you very much.
>> El 06/02/18 a las 13:27, Rene Krenn escribió:
>>> thx for reporting; created an issue for providing a fix to make
>>> rate-o-mat tolerate these empty fields.
>>> Roaming billing (see billing networks) cannot be used then however.
>>> -----Ursprüngliche Nachricht-----
>>> Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im
>>> Auftrag von pushakk
>>> Gesendet: Dienstag, 6. Februar 2018 13:06
>>> An: spce-user at lists.sipwise.com
>>> Betreff: [Spce-user] inbound calls set accounting.cdr source_ip to null
>>> Hello everyone,
>>> 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
>>> Feb 6 10:20:11 sip (warning) rate-o-mat: 1/100 - rating CDR ID
>>> 114 aborted : Can't call method "version" on an undefined value at
>>> /usr/sbin/rate-o-mat line 1510.
>>> and then it stops rating the calls.
>>> 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.
>>> Thank you.
>>> Spce-user mailing list
>>> Spce-user at lists.sipwise.com
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Spce-user