本帖最後由 bubblestar 於 2012-10-1 21:37 編輯
If qualify is set to "yes" then, by the looks of it, Asterisk will use the information about round trip time to decide whether or not to bother registering. If the SIP OPTIONS packet doesn't receive a response, it assumes the server is unreachable and probably doesn't bother trying to register. Switching off "qualify" is obviously necessary with such providers.
It's also generally a good idea to have qualify=no for softphones and maybe some hardphones. the OPTIONS packets can cause problems with them.
Purpose of qualify=yes
On the other hand, one of the main benefits of qualify=yes is to detect network problems with peers.
We send a lot of calls via a service provider using SIP but we have qualify-yes set so that if it becomes unreachable the dial fails
immediatly without having to wait for a timeout which enables us to
seamlessly failover to an ISDN or other connection. |