I'm setting up a FreePBX instance and doing some testing. Right now I have two extensions, one a SIP extension using Zoiper softphone and the other a virtual extension with voicemail enabled, just for something to test with.
I seem to be able to make a call from the softphone to the virtual extension with no problem in that it seems to connect each time but the audio to hear the voicemail greeting is not received most of the time.
I've broke out wireshark to see if I could determine anything. One thing I noticed is that when my Zoiper softphone first registers with the server it seems to receive a 401 Unauthorized from the server before successfully registering. Is it normal to receive receive 401 Unauthorized before a successful registration? .248 is the server and .139 is the softphone.
Source,Destination,Protocol,Length,Info
192.168.2.139,192.168.2.248,SIP,619,Request: REGISTER sip:192.168.2.248;transport=UDP (1 binding) |
192.168.2.248,192.168.2.139,SIP,604,Status: 401 Unauthorized |
192.168.2.139,192.168.2.248,SIP,787,Request: REGISTER sip:192.168.2.248;transport=UDP (1 binding) |
192.168.2.248,192.168.2.139,SIP,683,Request: OPTIONS sip:[email protected]:56778;rinstance=b05461348c8fdb80;transport=UDP |
192.168.2.248,192.168.2.139,SIP,661,Status: 200 OK (1 binding) |
192.168.2.139,192.168.2.248,SIP,712,Status: 200 OK |
192.168.2.139,192.168.2.248,SIP,784,Request: REGISTER sip:192.168.2.248;transport=UDP (remove 1 binding) |
192.168.2.248,192.168.2.139,SIP,616,Status: 401 Unauthorized |
192.168.2.139,192.168.2.248,SIP,784,Request: REGISTER sip:192.168.2.248;transport=UDP (remove 1 binding) |
192.168.2.248,192.168.2.139,SIP,567,Status: 200 OK (0 bindings) |
192.168.2.139,192.168.2.248,SIP,619,Request: REGISTER sip:192.168.2.248;transport=UDP (1 binding) |
192.168.2.248,192.168.2.139,SIP,604,Status: 401 Unauthorized |
192.168.2.139,192.168.2.248,SIP,787,Request: REGISTER sip:192.168.2.248;transport=UDP (1 binding) |
192.168.2.248,192.168.2.139,SIP,683,Request: OPTIONS sip:[email protected]:56778;rinstance=3b911898cd7a2274;transport=UDP |
192.168.2.248,192.168.2.139,SIP,661,Status: 200 OK (1 binding) |
192.168.2.139,192.168.2.248,SIP,712,Status: 200 OK |
192.168.2.139,192.168.2.248,UDP,46,56778 > 5060 Len=4
I notice also that if I capture then the softphone is constantly sending RTP packets to the server but the server is not sending any RTP packets back to the softphone, which I presume is why I'm not hearing the audio of the voicemail greeting from the server.