MWI from voice mail server to PBX

I configured two asterisk server
1 server as PBX server
2 server as voice mail server
everything works fine except mwi notification. Could you direct me how to configure mwi from voice mail server to PBX server?

You need to provide further details, such as what guide you’ve followed to configure it, the configuration, console output, SIP trace if SIP is in use.

Hello unais… I’m one step back of you… I’m trying to configure my voice mail server… Can you let me know what you did to configure it ? Do you have the steps to configure ? Thanks !

@jcolp
I am using pjsip, sharing the configuration. If I am using just one voice mail server alone I can see the notification of voicemail inbox status in soft phone, but not with PBX voice mail server configuration. Link I tried is https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples

pjsip config for voicemail server.

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[voicemail]
type=registration
transport=transport-udp
outbound_auth=voicemail_auth
server_uri=sip:<ip>
client_uri=sip:voicemail@<ip>
retry_interval=60
forbidden_retry_interval=600
expiration=3600
line=yes
endpoint=voicemail

[voicemail_auth]
type=auth
auth_type=userpass
password=securepassword
username=voicemail

[voicemail]
type=endpoint
transport=transport-udp
disallow=all
allow=ulaw
context=from-internal
outbound_auth=voicemail_auth
aors=voicemail
from_user=voicemail

[voicemail]
type=aor
contact=sip:<ip>

[voicemail]
type=identify
endpoint=voicemail
match=<ip>

pjsip config for PBX server

;
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[voicemail]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
transport=transport-udp
auth=voicemail
aors=voicemail

[voicemail]
type=auth
auth_type=userpass
password=securepassword
username=voicemail

[voicemail]
type=aor
remove_existing=True
max_contacts=1

[endpoint_internal](!)
type=endpoint
context=from-internal
disallow=all
allow=ulaw

[auth_userpass](!)
type=auth
auth_type=userpass

[aor_dynamic](!)
type=aor
max_contacts=1

[1000](endpoint_internal) ; Reserved for Admin
auth=1000
aors=1000
[1000](auth_userpass)
password=123
username=1000
[1000](aor_dynamic)

[1001](endpoint_internal)
auth=1001
aors=1001
[1001](auth_userpass)
password=123
username=1001
[1001](aor_dynamic)

[1002](endpoint_internal)
auth=1002
aors=1002
[1002](auth_userpass)
password=456
username=1002
[1002](aor_dynamic)

[1003](endpoint_internal)
auth=1003
aors=1003
[1003](auth_userpass)
password=789
username=1003
[1003](aor_dynamic)

[1004](endpoint_internal)
auth=1004
aors=1004
[1004](auth_userpass)
password=123
username=1004
[1004](aor_dynamic)

[1005](endpoint_internal)
auth=1005
aors=1005
[1005](auth_userpass)
password=123
username=1005
[1005](aor_dynamic)

[1006](endpoint_internal)
auth=1006
aors=1006
[1006](auth_userpass)
password=123
username=1006
[1006](aor_dynamic)

[1007](endpoint_internal)
auth=1007
aors=1007
[1007](auth_userpass)
password=123
username=1007
[1007](aor_dynamic)

[1008](endpoint_internal)
auth=1008
aors=1008
[1008](auth_userpass)
password=123
username=1008
[1008](aor_dynamic)

[1009](endpoint_internal)
auth=1009
aors=1009
[1009](auth_userpass)
password=123
username=1009
[1009](aor_dynamic)

[2000](endpoint_internal) ; Reserved for Customer care
auth=2000
aors=2000
[2000](auth_userpass)
password=123
username=2000
[2000](aor_dynamic)

You haven’t done anything to allow MWI to be shared. I’d suggest looking on the wiki as there are guides for doing such a thing.

Could you share the link . I tried the exchange mailbox state but that didn’t work.
https://wiki.asterisk.org/wiki/display/AST/Exchanging+Device+and+Mailbox+State+Using+PJSIP
could you help on this? Just links to look at?

That is the link for exchanging it using PJSIP. If it doesn’t work then you need to provide your configuration using that and show what happened in a SIP trace when you left a voicemail and such.

voice mail pjsip configuration

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[voicemail]
type=registration
transport=transport-udp
outbound_auth=voicemail_auth
server_uri=sip:<ip>
client_uri=sip:voicemail@<ip>
retry_interval=60
forbidden_retry_interval=600
expiration=3600
line=yes
endpoint=voicemail

[voicemail_auth]
type=auth
auth_type=userpass
password=securepassword
username=voicemail

[voicemail]
type=endpoint
transport=transport-udp
disallow=all
allow=ulaw
context=from-internal
outbound_auth=voicemail_auth
aors=voicemail
from_user=voicemail

[voicemail]
type=aor
contact=sip:<ip>

[voicemail]
type=identify
endpoint=voicemail
match=<ip>


[instance2]
type=endpoint

[instance2-mwi]
type=outbound-publish
server_uri=sip:instance1@<ip>
event=asterisk-mwi

[instance2]
type=inbound-publication
event_asterisk-mwi=instance2

[instance2]
type=asterisk-publication
mailboxstate_publish=instance2-mwi
mailbox_state=yes

PBX pjsip config

; PJSIP Configuration
;
; Basic UDP transport
;
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[voicemail]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
transport=transport-udp
auth=voicemail
aors=voicemail

[voicemail]
type=auth
auth_type=userpass
password=securepassword
username=voicemail

[voicemail]
type=aor
remove_existing=True
max_contacts=1

[endpoint_internal](!)
type=endpoint
context=from-internal
disallow=all
allow=ulaw

[auth_userpass](!)
type=auth
auth_type=userpass

[aor_dynamic](!)
type=aor
max_contacts=1

[1000](endpoint_internal) ; Reserved for Admin
auth=1000
aors=1000
[1000](auth_userpass)
password=123
username=1000
[1000](aor_dynamic)

[1001](endpoint_internal)
auth=1001
aors=1001
[1001](auth_userpass)
password=123
username=1001
[1001](aor_dynamic)

[1002](endpoint_internal)
auth=1002
aors=1002
[1002](auth_userpass)
password=456
username=1002
[1002](aor_dynamic)

[1003](endpoint_internal)
auth=1003
aors=1003
[1003](auth_userpass)
password=789
username=1003
[1003](aor_dynamic)

[1004](endpoint_internal)
auth=1004
aors=1004
mailboxes=1004@vm-demo  
[1004](auth_userpass)
password=123
username=1004
[1004](aor_dynamic)

[1005](endpoint_internal)
auth=1005
aors=1005
[1005](auth_userpass)
password=123
username=1005
[1005](aor_dynamic)

[1006](endpoint_internal)
auth=1006
aors=1006
[1006](auth_userpass)
password=123
username=1006
[1006](aor_dynamic)

[1007](endpoint_internal)
auth=1007
aors=1007
[1007](auth_userpass)
password=123
username=1007
[1007](aor_dynamic)

[1008](endpoint_internal)
auth=1008
aors=1008
[1008](auth_userpass)
password=123
username=1008
[1008](aor_dynamic)

[1009](endpoint_internal)
auth=1009
aors=1009
[1009](auth_userpass)
password=123
username=1009
[1009](aor_dynamic)

[2000](endpoint_internal) ; Reserved for Customer care
auth=2000
aors=2000
[2000](auth_userpass)
password=123
username=2000
[2000](aor_dynamic)

[instance1]
type=endpoint

logger after registration endpoint 1004

<--- Received SIP request (948 bytes) from UDP:10.7.20.62:59861 --->
REGISTER sip:10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-e2f6cb0579d21017-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;rinstance=36822b6a8eafb91e;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=68f64853
Call-ID: ZDAxYzkwNTE0ZTYyNjU2NjBlZjRjNDdmN2RiNDA1YzE.
CSeq: 60 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Authorization: Digest username="1004",realm="asterisk",nonce="1530352677/70892d46b3672f4751ed5079c34f0cbb",uri="sip:10.7.20.65;transport=UDP",response="c86d4cfd93bf28b58373fb745ec52a0d",cnonce="3c7adaa7b07054370110b28cf8b68e04",nc=00000002,qop=auth,algorithm=md5,opaque="78807a9020cdb00d"
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (520 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-e2f6cb0579d21017-1---d8754z-
Call-ID: ZDAxYzkwNTE0ZTYyNjU2NjBlZjRjNDdmN2RiNDA1YzE.
From: <sip:1004@10.7.20.65>;tag=68f64853
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-e2f6cb0579d21017-1---d8754z-
CSeq: 60 REGISTER
Date: Sat, 30 Jun 2018 09:58:14 GMT
Contact: <sip:1004@10.7.20.62:59861;transport=UDP;rinstance=36822b6a8eafb91e>;expires=3599
Expires: 3600
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Transmitting SIP request (690 bytes) to UDP:10.7.20.62:59861 --->
NOTIFY sip:1004@10.7.20.62:59861;transport=UDP;rinstance=36822b6a8eafb91e SIP/2.0
Via: SIP/2.0/UDP 10.7.20.65:5060;rport;branch=z9hG4bKPj57c03861-5465-4b2b-b952-72001b99cd3e
From: <sip:1004@10.7.20.65>;tag=74aa054b-0f49-4de3-bbfe-ab76449d59bf
To: <sip:1004@10.7.20.62;rinstance=36822b6a8eafb91e>
Contact: <sip:1004@10.7.20.65:5060>
Call-ID: 68fc5ee1-40af-4a43-90aa-3447b868fb12
CSeq: 59739 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: Asterisk PBX 15.4.0
Content-Type: application/simple-message-summary
Content-Length:    48

Messages-Waiting: no
Voice-Message: 0/0 (0/0)

<--- Received SIP request (945 bytes) from UDP:10.7.20.62:59861 --->
PUBLISH sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-3fc8b4ccc9ac468f-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=53f2970e
Call-ID: OWFkODJkZWI5YmJjOTM1M2M1OTdiNDNjZWM3ZmI0M2M.
CSeq: 1 PUBLISH
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/pidf+xml
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Event: presence
Allow-Events: presence, kpml
Content-Length: 258

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          entity="sip:1004@10.7.20.65;transport=UDP">
  <tuple id="1004" >
     <status><basic>open</basic></status>
     <note>Online</note>
  </tuple>
</presence>

<--- Transmitting SIP response (531 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-3fc8b4ccc9ac468f-1---d8754z-
Call-ID: OWFkODJkZWI5YmJjOTM1M2M1OTdiNDNjZWM3ZmI0M2M.
From: <sip:1004@10.7.20.65>;tag=53f2970e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-3fc8b4ccc9ac468f-1---d8754z-
CSeq: 1 PUBLISH
WWW-Authenticate: Digest  realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",opaque="6f481f3d205dfb05",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Received SIP request (696 bytes) from UDP:10.7.20.62:59861 --->
SUBSCRIBE sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-f2d82fcc741e6493-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=421bb62e
Call-ID: NTg4ZTZkYTRiNjEwNzgzMzQwNTFiMTdlM2U0MmMwMjA.
CSeq: 1 SUBSCRIBE
Expires: 600
Accept: application/watcherinfo+xml
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Event: presence.winfo
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (533 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-f2d82fcc741e6493-1---d8754z-
Call-ID: NTg4ZTZkYTRiNjEwNzgzMzQwNTFiMTdlM2U0MmMwMjA.
From: <sip:1004@10.7.20.65>;tag=421bb62e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-f2d82fcc741e6493-1---d8754z-
CSeq: 1 SUBSCRIBE
WWW-Authenticate: Digest  realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",opaque="5cf6353b6bba82b5",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Received SIP response (404 bytes) from UDP:10.7.20.62:59861 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.7.20.65:5060;rport=5060;branch=z9hG4bKPj57c03861-5465-4b2b-b952-72001b99cd3e
Contact: <sip:10.7.20.62:59861>
To: <sip:1004@10.7.20.62;rinstance=36822b6a8eafb91e>;tag=7dfc1767
From: <sip:1004@10.7.20.65>;tag=74aa054b-0f49-4de3-bbfe-ab76449d59bf
Call-ID: 68fc5ee1-40af-4a43-90aa-3447b868fb12
CSeq: 59739 NOTIFY
User-Agent: Z 3.3.25608 r25552
Content-Length: 0


<--- Received SIP request (1240 bytes) from UDP:10.7.20.62:59861 --->
PUBLISH sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-7faa5e4349d8e970-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=53f2970e
Call-ID: OWFkODJkZWI5YmJjOTM1M2M1OTdiNDNjZWM3ZmI0M2M.
CSeq: 2 PUBLISH
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/pidf+xml
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Authorization: Digest username="1004",realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",uri="sip:1004@10.7.20.65;transport=UDP",response="712c31ba0a3e801d11cf46b82ccbdf01",cnonce="7e9eb5a35e0738b77d3a4e10387170ba",nc=00000001,qop=auth,algorithm=md5,opaque="6f481f3d205dfb05"
Event: presence
Allow-Events: presence, kpml
Content-Length: 258

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          entity="sip:1004@10.7.20.65;transport=UDP">
  <tuple id="1004" >
     <status><basic>open</basic></status>
     <note>Online</note>
  </tuple>
</presence>

[Jun 30 15:28:14] WARNING[13166]: res_pjsip_pubsub.c:3305 pubsub_on_rx_publish_request: No registered publish handler for event presence
<--- Transmitting SIP response (381 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 489 Bad Event
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-7faa5e4349d8e970-1---d8754z-
Call-ID: OWFkODJkZWI5YmJjOTM1M2M1OTdiNDNjZWM3ZmI0M2M.
From: <sip:1004@10.7.20.65>;tag=53f2970e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-7faa5e4349d8e970-1---d8754z-
CSeq: 2 PUBLISH
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Received SIP request (705 bytes) from UDP:10.7.20.62:59861 --->
SUBSCRIBE sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-fdfbf160119f8d32-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=715fc03e
Call-ID: NTU2OWFlNmQzMDQzODdhOWY4MTU1YTEzYjZhZmZmZDA.
CSeq: 1 SUBSCRIBE
Expires: 3600
Accept: application/simple-message-summary
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Event: message-summary
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (533 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-fdfbf160119f8d32-1---d8754z-
Call-ID: NTU2OWFlNmQzMDQzODdhOWY4MTU1YTEzYjZhZmZmZDA.
From: <sip:1004@10.7.20.65>;tag=715fc03e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-fdfbf160119f8d32-1---d8754z-
CSeq: 1 SUBSCRIBE
WWW-Authenticate: Digest  realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",opaque="39c42834779c15df",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Received SIP request (991 bytes) from UDP:10.7.20.62:59861 --->
SUBSCRIBE sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-a3f8f8786ccc9e5c-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=421bb62e
Call-ID: NTg4ZTZkYTRiNjEwNzgzMzQwNTFiMTdlM2U0MmMwMjA.
CSeq: 2 SUBSCRIBE
Expires: 600
Accept: application/watcherinfo+xml
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Authorization: Digest username="1004",realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",uri="sip:1004@10.7.20.65;transport=UDP",response="0e5b4b5d0c626b0a28fe29fcb6d25846",cnonce="a8e33ff38fb4f73a902c3569e7a69934",nc=00000001,qop=auth,algorithm=md5,opaque="5cf6353b6bba82b5"
Event: presence.winfo
Allow-Events: presence, kpml
Content-Length: 0


[Jun 30 15:28:14] WARNING[13166]: res_pjsip_pubsub.c:776 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
<--- Transmitting SIP response (383 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 489 Bad Event
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-a3f8f8786ccc9e5c-1---d8754z-
Call-ID: NTg4ZTZkYTRiNjEwNzgzMzQwNTFiMTdlM2U0MmMwMjA.
From: <sip:1004@10.7.20.65>;tag=421bb62e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-a3f8f8786ccc9e5c-1---d8754z-
CSeq: 2 SUBSCRIBE
Server: Asterisk PBX 15.4.0
Content-Length:  0


<--- Received SIP request (1000 bytes) from UDP:10.7.20.62:59861 --->
SUBSCRIBE sip:1004@10.7.20.65;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.7.20.62:59861;branch=z9hG4bK-d8754z-f5129750cbf611ef-1---d8754z-
Max-Forwards: 70
Contact: <sip:1004@10.7.20.62:59861;transport=UDP>
To: <sip:1004@10.7.20.65;transport=UDP>
From: <sip:1004@10.7.20.65;transport=UDP>;tag=715fc03e
Call-ID: NTU2OWFlNmQzMDQzODdhOWY4MTU1YTEzYjZhZmZmZDA.
CSeq: 2 SUBSCRIBE
Expires: 3600
Accept: application/simple-message-summary
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Authorization: Digest username="1004",realm="asterisk",nonce="1530352694/ccf0c7a14a7d92828683699b9e7845f3",uri="sip:1004@10.7.20.65;transport=UDP",response="02a42dc4bc250b0026ef322ec96fceb2",cnonce="7e1090ff63959f667a5df48dabf7b499",nc=00000001,qop=auth,algorithm=md5,opaque="39c42834779c15df"
Event: message-summary
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (383 bytes) to UDP:10.7.20.62:59861 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.7.20.62:59861;rport=59861;received=10.7.20.62;branch=z9hG4bK-d8754z-f5129750cbf611ef-1---d8754z-
Call-ID: NTU2OWFlNmQzMDQzODdhOWY4MTU1YTEzYjZhZmZmZDA.
From: <sip:1004@10.7.20.65>;tag=715fc03e
To: <sip:1004@10.7.20.65>;tag=z9hG4bK-d8754z-f5129750cbf611ef-1---d8754z-
CSeq: 2 SUBSCRIBE
Server: Asterisk PBX 15.4.0
Content-Length:  0

Getting logs in pbx messages

[Jun 30 15:23:46] WARNING[13145] res_pjsip_pubsub.c: No registered subscribe handler for event presence.winfo
[Jun 30 15:26:51] WARNING[13154] res_pjsip_pubsub.c: No registered publish handler for event presence
[Jun 30 15:26:51] WARNING[13154] res_pjsip_pubsub.c: No registered subscribe handler for event presence.winfo
[Jun 30 15:27:57] WARNING[13166] res_pjsip_pubsub.c: No registered publish handler for event presence
[Jun 30 15:27:57] WARNING[13166] res_pjsip_pubsub.c: No registered subscribe handler for event presence.winfo
[Jun 30 15:28:14] WARNING[13166] res_pjsip_pubsub.c: No registered publish handler for event presence
[Jun 30 15:28:14] WARNING[13166] res_pjsip_pubsub.c: No registered subscribe handler for event presence.winfo

There is no logging or seemingly traffic from the server containing the payload for MWI. Have you looked at the console at startup to see if there are any warnings?

{“type”:“mailboxstate”,“eid”:“e0:69:95:d1:a9:26”,“uniqueid”:“1004@vm-demo”,“old”:0,“new”:1}
<— Received SIP response (417 bytes) from UDP:10.7.20.65:5060 —>
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.7.20.63:5060;rport=5060;received=10.7.20.63;branch=z9hG4bKPjd725d72d-6829-49ce-9b04-3ff0ff506356
Call-ID: b5f10c89-3fd3-43f1-bbcb-c0af95ffaf43
From: sip:instance2@10.7.20.65;tag=b0eb607c-49d9-481c-9081-c6b33b1b49fa
To: sip:instance2@10.7.20.65;tag=z9hG4bKPjd725d72d-6829-49ce-9b04-3ff0ff506356
CSeq: 19363 PUBLISH
Server: Asterisk PBX 15.4.0
Content-Length: 0

voice mail is publishing but PBX is throwing error not found.

Your configuration seems to be incorrect for it. Specifically inbound-publication. There needs to be one on the receiving end.

You are right. Found working. Great!, thanks. Can I make it as unidirectional?

It is by default unidirectional. You have to have an outbound-publish configured in order for it to be sent.

1 Like