# Asterisk pjsip MWI with hotdesking

**URL:** <https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390>\
**Category:** Asterisk SIP\
**Created:** [January 21, 2020, 7:18pm UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390 "2020-01-21T19:18:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buschi](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Buschi](https://community.asterisk.org/u/Buschi)\
**Post date:** [January 21, 2020, 7:18pm UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390/1 "2020-01-21T19:18:27Z")

</div>

Hello,

I use asterisk with pjsip an yealink phones. I have implemented a hot desking function similar as the one described in the book “Asterisk The Definitve Guide”.

Now I would like to see the mwi status on the yealink phones.

The problem is that the endpoints are not bound to a fixed extension.

I could provision the phone to look for mwi for the currently used extension while I set them up for hotdesking.

But sadly, I have found nothing that shows how to configure pjsip.

I would be very grateful for any help.

Thanks in advance

Guido

---

<div class="post-metadata">

**Author:** ![penguinpbx](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/penguinpbx/32/8856_2.png) [@penguinpbx](https://community.asterisk.org/u/penguinpbx)\
**Post date:** [January 21, 2020, 10:58pm UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390/2 "2020-01-21T22:58:21Z")

</div>

Have you considered pjsip\_notify.conf to send MWI events ?

Something like…

```auto
[set-mwi]
Event=>message-summary
Content-type=>application/simple-message-summary
Content=>Messages-Waiting: yes
Content=>Message-Account: sip:asterisk@127.0.0.1
Content=>Voice-Message: 1/1 (1/1)
Content=>

```

…gives you the Asterisk CLI command “pjsip send notify set-mwi endpoint 1234” which could be bundled into a small shell script that you spool from dialplan just after the voicemail is deposited.

---

<div class="post-metadata">

**Author:** ![Buschi](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Buschi](https://community.asterisk.org/u/Buschi)\
**Post date:** [January 22, 2020, 6:14am UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390/3 "2020-01-22T06:14:39Z")

</div>

Thank you very very much. It works like a charm.

But now I have a new problem:

After I execute voicemailmain and hear every new voicemail, the phone still displays the “new messages” icon.

I found out, that I have to send:

[clear-mwi]  
Event=\>message-summary  
Content-type=\>application/simple-message-summary  
Content=\>Messages-Waiting: no  
Content=\>Message-Account: [sip:asterisk@127.0.0.1](mailto:sip:asterisk@127.0.0.1)  
Content=\>Voice-Message: 0/0 (0/0)

But how could I trigger that. Until now I find no way to be shure hat the user hears every new message after executing voicemailmain in the dialplan.

Any idea?

Thanks in advance.

Guido

---

<div class="post-metadata">

**Author:** ![penguinpbx](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/penguinpbx/32/8856_2.png) [@penguinpbx](https://community.asterisk.org/u/penguinpbx)\
**Post date:** [January 22, 2020, 4:56pm UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390/4 "2020-01-22T16:56:11Z")

</div>

If you are using file-system backed voicemail storage (the default) then check the INBOX directory, something like /var/spool/asterisk/voicemail/default/1234/INBOX/. Those contents should change as you navigate the voicemail playback.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [February 21, 2020, 4:56pm UTC](https://community.asterisk.org/t/asterisk-pjsip-mwi-with-hotdesking/82390/5 "2020-02-21T16:56:16Z")

</div>

Closed on February 21, 2020, 4:56pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
