Errores #100

Core start error when invalid STUN host

Added by Saúl Ibarra Corretgé over 2 years ago. Updated over 2 years ago.

Status:Resuelta Start:07/30/2009
Priority:Normal Due date:
Assigned to:Saúl Ibarra Corretgé % Done:

0%

Category:YASS - core
Target version:0.5.2

Description

Today I noticed that when an invalid STUN host is provided YASS core isn't able to start properly. we need to capture that error code and disable STUN in that case.

Status code is 70018.

History

Updated by Saúl Ibarra Corretgé over 2 years ago

  • Status changed from Nueva to Resuelta

Pseudofixed :-/ There isn't a function to check if a STUN host is valid in PJSIP. Thus, when the core starts we get an exception. The following workaround has been implemented:

- Capture that specific error code
- Disable stun host
- Raise an exception so that the user sees a message telling her to restart the application

I don't really like it much, but because the GUI interacts with the core, we can't restart the core, it would break the application!

In the future, I'd do the following:

- When saving a stun host, first use some pjsip function to check if it's a valid one, else don't store it and try to use it!

Also available in: Atom PDF