The vpn server is running. I got a tun0 interface on the freepbx (ifconfig)
and got route : 10.8.0.0 * 255.255.255.0 U 0 0 0 tun0
IP phone plug in the cisco switch, so localy.
If the extension mapping is with no Client VPN the phone is SIP registered
can do a *43 echo test
sip show peer like 57 : sip show peers like 57
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
57/57 10.66.0.138 D Yes Yes A 5060 OK (7 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
If I add the client VPN in an extension mapping
Save and rebuild Apply
reboot phone
syslog of the phone, I find this:
[11-18 22:54:21 50:19:73] SIP: aid 0, cid 0, tid 47, did 18, REQUEST: SUBSCRIBE, Event: 40
[11-18 22:54:21 50:19:73] SIP: aid 0, cid 0, tid 47, did 18, RESPONSE: 401 Unauthorized, 4xx received for SUBSCRIBE!, Event: 40
[11-17 21:52:41 50:19:73] SIP: aid 0, cid 0, tid 63, did 0, REQUEST: SUBSCRIBE, Event: 40
[11-17 21:52:41 50:19:73] SIP: aid 0, cid 0, tid 63, did 0, RESPONSE: 404 Not Found, 4xx received for SUBSCRIBE!, Event: 40
Now I’m stuck. Where are the authentification informations? Or it’s an other probleme.
Thanks
Plug the phone localy (in the net of the freepbx) for all this procedure.
Set some port forwarding on the router in the net of the freepbx. Check Admin /System Admin / Port management : Http provisionning , server VPN and Endpoint manager / Global settings tab.
http port
VPN port
System admin / Provisionning protocole: HTTP(s)Authentification : BOTH