gmaruzz / saraphone

SaraPhone is an open source SIP WebRTC phone, complete with HotDesking, Redial, BLFs, MWI, DND, PhoneBook, Hold, Mute, Notifications. SaraPhone is fully integrated with FusionPBX. Based on SIP.js, SaraPhone works with all WebRTC compliant servers: FreeSWITCH, Asterisk, OpenSIPS, Kamailio, etc. SaraPhone gets its name from Giovanni's wife, Sara.
Mozilla Public License 2.0
157 stars 73 forks source link

No indications on the phoneweb #30

Closed vhatzist closed 4 years ago

vhatzist commented 4 years ago

Hello,

Saraphone performs a successful subscription and receives a NOTIFY packet like the one below, but there is no indication on the web page that the monitored phone is on or off hook.

The NOTIFY message is attached.

Saraphone replies with a 200 OK to this NOTIFY, but there is no on-hook indication on the web page for the monitored phone.

Is there a problem with the format of the message or the BLF labels and buttons should be named otherwise for this to work? Or perhaps additional Javascript coding is needed for this?

In saraphone.html I have used:

as a BLF button to monitor the state of phone 1127976.

The web phone is registering as phone 1127975.

Thank you in advance for any assistance.

notify.txt

gmaruzz commented 4 years ago

hello,

if the phone is on-hook the BLF button stay green

when the monitored phone is in a call, the button changes?

on webphone, if you click on ther BLF button, it calls the monitored phone?

can you attach a complete sip trace from webphone start (reload), so there is registration, subscriptions, notifys, etc etc then do a call from monitored, so there will be trace of the further notifys ?

thanks!

vhatzist commented 4 years ago

Hi @gmaruzz ,

Sorry for the late reply. To answer your questions:

BLF_button

I have attached 2 files, the first contains the registration and subscriptions with an initial NOTIFY about the monitored phone's status. The second contains NOTIFY messages while the monitored phone was calling another phone. The hostname and IP address have been changed for security reasons.

register_and_subscribe.txt notify.txt