[Spce-user] inbound calls set accounting.cdr source_ip to null
Danilo Smaldone - sip:wise
dsmaldone at sipwise.com
Tue Feb 6 10:05:43 EST 2018
Hi,
just an already given (to the group) hint!
Always create (or edit) a .customtt.tt2 file instead of editing the .tt2
one.
In this way, you can preserve and reuse customtt.tt2 file after
upgrading the system.
Check it out here:
https://www.sipwise.com/doc/mr5.5.2/sppro/ar01s09.html#_configuration_templates
Cheers
Danilo
On 2018-02-06 13:42, pushakk wrote:
>
> 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ó:
>>> Hi,
>>>
>>> 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.
>>>
>>> regards
>>>
>>> -----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[16944]: 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
>>> https://lists.sipwise.com/listinfo/spce-user
>>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20180206/f88974e0/attachment-0001.html>
More information about the Spce-user
mailing list