What is the proper way to actively subscribe the MWI of a (PJSIP) trunk, given the SIP server of the trunk provider does not send any unsolicited NOTIFY messages
(As far as I understand in chan_sip this can be achieved by adding sth. like
mwi => user[:secret[:authuser]]@host[:port]/mailbox
to sip.conf.)
I donāt have a solution, but what you are asking seems very unusual.
When the PBX is working, you would normally want it to handle all voicemail (multiple mailboxes, better notifications, etc.)
If the PBX is down or for some reason is unreachable and the trunking provider takes a voicemail (failover mechanism), attempting to notify the PBX wouldnāt help. In any case, this should be an urgent notification as you may not know that itās down. Can your provider send an SMS or push, or at least an email, when they take a āfailoverā voicemail?
That is, of course, assuming this is failover. The amount of people that put their PBX on standard VoIP services (aka meant for ATAs, IP Phones and follows traditional phone service) and then have issues with the calls rolling over to voicemail due to NAT issues or whatever.
A SIP Trunk provider isnāt going to have voicemail as part of the normal services. They are there to provide origination/termination services only. Subscriber level services are left to the subscriber (aka the owner of the PBX). Their failover options would be to send the call to another SIP URI or to a phone number over the PSTN.
@hobbit378 What kind of service is actually being given by the provider? Is this a SIP Trunk service meant for PBXes or is this just some SIP/VoIP line service and youāre putting a PBX on it?
Indeed this is meant as a mere additional failover solution for calls coming in when my FreePBX is temporarily down/unreachable for some reason with incoming voicemail then instead being received by and stored directly in the voicemail box at the SIP provider.
(@Blaze Studios: I have subscriptions with several SIP Providers for (mere) SIP/VoIP line service (including also a voicemail box) which I have connected to my FreePBX)
Of course, (most of) those voicemail services can be configured to send an email notification in case of an incoming voicemail. Yet, I thought it would also be a nice idea to have an additional reminder in form of a flashing MWI LED once my own FreePBX is up and running again.
Thanks for your reply, yet what slightly puzzles me about your answer is that the pjsip stack appears to contains an API for supporting the SIP MWI Extension (including API calls āpjsip_mwi_create_uacā and āpjsip_mwi_create_uasā for āCreating MWI client/server subscription sessionā , c.f. ).
Could you elaborate a bit further what you mean by ānormalā MWI notifications, thus are there different types of it, or differences in the way they are handled by chan_sip and chan_pjsip respectively?