Webphone not working after upgrade 2.11 > 2.12

Hello all.

I did an upgrade from 2.11 to 2.12, but the webphone (WebRTC) is not working. It doesn’t even display the login on Asterisk console. The user has UCP and webphone enabled. I also enabled AVPF audio stream. I have created the certificates. Still nothing. The phone icon on user panel stays yellow.

Details:

FreePBX 2.12 with all modules updated with WebRTC module installed
Centos 6.5
Asterisk 11.13
Apache 2.2
PHP 5.3.3

On freepbx_dbug log, i got this:

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ’ expected

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: hr line 7 and body

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: body line 4 and html

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): Entity: line 10: parser error : Premature end of data in tag html line 2

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string():

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:85
[WARNING]: simplexml_load_string(): ^

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:88
[NOTICE]: Trying to get property of non-object

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:88
[NOTICE]: Trying to get property of non-object

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:88
[WARNING]: Invalid argument supplied for foreach()

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:98
[NOTICE]: Trying to get property of non-object

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:98
[NOTICE]: Trying to get property of non-object

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:98
[NOTICE]: Trying to get property of non-object

2015-Sep-07 22:07:13 /var/www/html/admin/modules/ucp/htdocs/modules/Home/Home.class.php:98
[NOTICE]: Trying to get property of non-object

I also got this line:

2015-Sep-07 22:19:45 /var/www/html/admin/modules/cxpanel/brand.php:3
[WARNING]: file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory

I have installed the FreePBX disto on a VM with 2.12, the webphone works, but not here. Am i missing something obvious?

Thanks for whatever insight on this.

Ok, the port 8088 was not open at the firewall and * had it listenning on localhost only.

http://community.freepbx.org/t/webrtc-phone-is-yellow/?source_topic_id=30917

It works now, i mean, sort of, it doesn’t get incoming calls. When i call directly the extension (99 + normal extension), it goes out to the SIP provider and not the webphone. It does outgoing calls tough. Any ideas please?

That’s not how you are suppose to use it. That extension is linked to the main extension.

Ok, but if i call the normal extension the webphone doesn’t ring. I tried with the softphone on and off. BTW the extension is 9999 so the webphone is 999999, in case this matters. I checked the outbound routes, i see no rule that may forward out a call to 999999.

This setup works as a secondary device of the primary user. It has nothing to do with outbound routes. The webrtc phone is linked as a secondary device to the primary user.

I suggest you turn off webrtc then save then turn it back on again

I made your suggestion. That worked, thanks!

BTW, is there a way to activate the webphone or doing a batch change for all users? This can be a pain going though all users and make the changes.