InnovateAsterisk / Browser-Phone

A fully featured browser based WebRTC SIP phone for Asterisk
https://www.innovateasterisk.com
GNU Affero General Public License v3.0
495 stars 245 forks source link

Voicemail: Icon and Notify not Display #247

Open rgonzalez-in opened 2 years ago

rgonzalez-in commented 2 years ago

Hello:

I have Asterisk 18.11.2 and not working: Icon Voicemail and Notify not Display.

Anything idea?

Regards.

InnovateAsterisk commented 2 years ago

If the system has been sent a message-summery report, like this

NOTIFY sip:s3agu7up@172.31.46.70:55874;transport=WS SIP/2.0
Via: SIP/2.0/WS 172.31.25.159:8080;rport;branch=z9hG4bKPjb7879062-418b-407c-96c5-1a1eeca3410c;alias
From: <sip:yAS43lAg8L@ws-eu-west-1.innovateasterisk.com>;tag=a297d6ff-7677-4f61-921b-7964ca60bb33
To: "Conrad De Wet" <sip:yAS43lAg8L@ws-eu-west-1.innovateasterisk.com>;tag=1318mk42ft
Contact: <sip:172.31.25.159:8080;transport=ws>
Call-ID: s4di2vaoq0bi20t167mj
CSeq: 18889 NOTIFY
Event: message-summary
Subscription-State: active;expires=299
Allow-Events: message-summary, presence, dialog, refer
Max-Forwards: 70
User-Agent: Innovate Asterisk
Content-Type: application/simple-message-summary
Content-Length:    49

Messages-Waiting: yes
Voice-Message: 1/1 (0/0)

Then in the Browser Console log. You should get:

Messages Waiting!
Voicemail:  1 1 0 0

At this point the notification appears.

If you are not getting the SIP message summery report, you need to check that first.

prathibhacdac commented 2 years ago

Any documentation available on configuring voicemail?

InnovateAsterisk commented 2 years ago

just make sure you have created a voicemail entry, and point to it in the endpoint mailboxes=100@default Normally I add this to the aor section tho. https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Configuration_res_pjsip

prathibhacdac commented 2 years ago

Screenshot (185)

I'm getting voicemail notification. How to read this message? Does it show only the number of voice messages?

prathibhacdac commented 2 years ago

The tooltip shows lang.voicemessages.

InnovateAsterisk commented 2 years ago

Make sure you update the style sheets.

The tooltip shows lang.voicemessages.

I'll update that.

rgonzalez-in commented 2 years ago

Hello:

Sorry for the delay in writing... I was able to solve the voicemail problem.

My experience is the following:

I have a IP Phone Grandstream GXP2170 and the voicemail configuration must be included in type=endpoint. And Web Phone the voicemail configuration must be included in type=aor.

Thank you all for your support.

Regards.

prathibhacdac commented 2 years ago

Pls share the contents in /etc/asterisk/voicemail.conf.

prathibhacdac commented 2 years ago

In which document to mention the type?

InnovateAsterisk commented 2 years ago

I have also written an update to allow to out-of-dialog message-summary messages. This way you don't need to actually SUBSCRIBE to the voice messages (with AOR), Asterisk will just push down a message to the endpoint if message-summery state changes.

No need to subscribe (out-of-dialog)

type=endpoint
mailboxes=100@default

With subscribe

type=aor
mailboxes=100@default