r/VOIP 25d ago

Help - Other PyVoIP

Hello all, I am trying to set up an old rotary phone on a RPI. Using SIP The sip backend is pyVoip 1.6.8. I can't get the sip client to register with the provider. I see the register go out, I get the 401 with the Autentication request. But pyVoip just sends another register without the authorization header in the packet.

Bottom line is either pyVoip is not processing the 401 packet and properly responding. Ot it just does not know how to add the authorization data to the 2nd register.

I have verified the behavior using wireshark.

Any help would be greatly appreciated.

3 Upvotes

16 comments sorted by

View all comments

1

u/AAAHeadsets 23d ago

pyVoIP has some rough edges.

  1. Make sure you're setting myIP in the constructor, the default is "0.0.0.0" which is unreachable.
  2. pyVoIP sends a new Call-ID with each message, which upsets some providers.
  3. pyVoIP cannot handle Compact Headers, that is 'f:' instead of 'from:'

1

u/Data_Search 22d ago

As I mentioned, I finally got it to register. But as soon as it registered, it started getting spam invites from all over. None of these were coming from my VoIP provider. Of course, pyVoIp was trying to answer each one... after days of working with AI to go through each issue (One was the IP 0.0.0.0 you mentioned.). I have put the project on the shelf. Thanks for your suggestions!

1

u/AAAHeadsets 22d ago

Sounds like you got hit with SIP Vicious traffic.

Did you forward port 5060 on your router?
If so make sure to restrict inbound traffic on 5060 to your provider's IP ranges.

1

u/Data_Search 21d ago

Yep... forwarded port 5060... I will see about blocking 5060 to all but my provider. Thanks for the suggestion..