1 | initial version |
As for the WIreshark-related part of your issue: The switch you place between the router and the modem has to be capable of traffic mirroring in order to allow you to capture the traffic between the router and the modem. Unfortunately for your purpose, chances are that the password will not be available there in plaintext and that some challenge-response authentication is used.
As for the real issue you need to solve: I can understand that if a box has an FXS port on it, its SIP stack binds to 5060 as factory default and thus that port cannot be forwarded without disabling the VoIP gateway functionality of the box.
What I cannot understand is why you need exactly port 5060 for your purpose:
So I'd say don't waste time by trying to find the credentials and simply use some other port.
What would bother me much more than an exact port number would be eventual ALG functionality of the router, intended to modify the SIP messages forwarded so that the headers and SDP information contain the IP address of the WAN interface of the router - this functionality is often broken and makes things worse.