[Spce-user] inbound calls set accounting.cdr source_ip to null
Danilo Smaldone - sip:wise
dsmaldone at sipwise.com
Fri Feb 9 05:23:03 EST 2018
Hi Pushakk,
happy to read this!
You are always welcome
Danilo
On 2018-02-08 11:53, pushakk wrote:
>
> Hello everyone,
>
> 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
> acc_caller_domain\n");
> 1470 if($avp(s:caller_ip_val) == $null)
> 1471 {
> 1472 $avp(s:caller_ip_val) = $avp(s:acc_caller_domain);
> 1473 }
>
> 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.
>
> Thank you.
>
>
> 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ó:
>>>> 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
--
Danilo Smaldone
Operations Engineer
Sipwise GmbH , Campus 21/Europaring F15
AT-2345 Brunn am Gebirge
Phone: +43 (0)1 3012059
Email: dsmaldone at sipwise.com
Website: www.sipwise.com
Particulars according Austrian Companies Code paragraph 14
"Sipwise GmbH" - Europaring F15 - 2345 Brunn am Gebirge
FN:305595f, Commercial Court Vienna, ATU64002206
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20180209/32b18104/attachment-0001.html>
More information about the Spce-user
mailing list