Skip to content

Issue with mutiple connections #7

@aseques

Description

@aseques

I am using free-smdr to get data from a single Avaya IP Office, I've observed that the pbx changes the source port from time to time (4790, 4791, 4792)

tcp        2      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      1548040/python      
tcp     3406      0 192.168.1.77:9000       10.33.77.200:4791       ESTABLISHED -                   
tcp    15901      0 192.168.1.77:9000       10.33.77.200:4792       ESTABLISHED -                   
tcp        0      0 192.168.1.77:9000       10.33.77.200:4790       ESTABLISHED 1548040/python  

It seems the only input that's processed is the one entering from the first port that was established (in this case 4790), if I restart the service it will work again normally.

I have two possible solutions:

  • Detect somehow that the first connection is closed and close the server in that case (timeout, ..)
  • Improve somehow the RecvHandler so it can deal better with this situation.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions