[SR-Users] Strange core.tcp_list / tls.list output

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 4 13:15:51 CEST 2015



On 04/06/15 07:38, Mikko Lehto wrote:
> Daniel-Constantin Mierla <miconda at gmail.com>:
>
>> quickly checking the code it seems that the dst_ip is holding the local
>> address always, even for outbound connection.
>>
>> Not being the author of the code, my guess is that the lookup of
>> connection is done always on src_ip matching the remote peer address.
>> Also, the structure used there is the one specific for holding received
>> info for sip packets.
>>
>> The output is somehow misleading, maybe the fields should be renamed to
>> local_ip/port and remote_ip/port in the output of the rpc commands.
> Much more clear now, thanks!
>
> It propably is wise to touch only RPC output.
> I'll try to look into this again soon and come up with patch.
>
The code is in core, core_cmd.c or so...

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com




More information about the sr-users mailing list