I have just installed Asterisk from scratch, Asterisk 184.108.40.206-1digium1~natty, on Ubuntu 11.04 natty.
After have made some basic configuration of sip.conf to register Asterisk as a client for my SIP provider, I found that, Asterisk is sending SIP packages with 20 seconds pauses. For example:
No. Time Source Destination Protocol Info
3 18:13:52.173448 192.168.1.200 87.xx.xx.xxx SIP Request: REGISTER sip:somedomain.com
4 18:13:52.216283 87.xx.xx.xxx 192.168.1.200 SIP Status: 401 Unauthorized (0 bindings)
5 18:14:12.189177 192.168.1.200 87.xx.xx.xxx SIP Request: REGISTER sip:somedomain.com
6 18:14:12.219504 87.xx.xx.xxx 192.168.1.200 SIP Status: 200 OK (1 bindings)
This causes the server to remove the registrastion for a while. And Asterisk is also reporting errors like:
Registration for 'email@example.com’ timed out, trying again (Attempt #2)
Is there a way to make Asterisk immediately respond “401 Unauthorized” message containing nonce information?
Why Asterisk always waits such 20 seconds before sending next SIP package? Can I turn it off, how?