{"push_id":1050786792,"size":4,"distinct_size":4,"ref":"refs/heads/master","head":"abf241b94f5b5f88b4c608b0f470e92e2df5386b","before":"433d2c4bbfa3f7d8bb3a194b16feb99874207f84","commits":[{"sha":"e2524fcee350e4336e67888a26c5f9656afe7d06","author":{"email":"3843e384a4fc83a40fc5d5724c52d17f7e9730ee@fairview5.com","name":"George Joseph"},"message":"res_pjsip_mwi:  Add voicemail extension and mwi_subscribe_replaces_unsolicited\n\nres_pjsip_mwi was missing the chan_sip \"vmexten\" functionality which adds\nthe Message-Account header to the MWI NOTIFY.  Also, specifying mailboxes\non endpoints for unsolicited mwi and on aors for subscriptions required\nthat the admin know in advance which the client wanted.  If you specified\nmailboxes on the endpoint, subscriptions were rejected even if you also\nspecified mailboxes on the aor.\n\nVoicemail extension:\n* Added a global default_voicemail_extension which defaults to \"\".\n* Added voicemail_extension to both endpoint and aor.\n* Added ast_sip_subscription_get_dialog for support.\n* Added ast_sip_subscription_get_sip_uri for support.\n\nWhen an unsolicited NOTIFY is constructed, the From header is parsed, the\nvoicemail extension from the endpoint is substituted for the user, and the\nresult placed in the Message-Account field in the body.\n\nWhen a subscribed NOTIFY is constructed, the subscription dialog local uri\nis parsed, the voicemail_extension from the aor (looked up from the\nsubscription resource name) is substituted for the user, and the result\nplaced in the Message-Account field in the body.\n\nIf no voicemail extension was defined, the Message-Account field is not added\nto the NOTIFY body.\n\nmwi_subscribe_replaces_unsolicited:\n* Added mwi_subscribe_replaces_unsolicited to endpoint.\n\nThe previous behavior was to reject a subscribe if a previous internal\nsubscription for unsolicited MWI was found for the mailbox.  That remains the\ndefault.  However, if there are mailboxes also set on the aor and the client\nsubscribes and mwi_subscribe_replaces_unsolicited is set, the existing internal\nsubscription is removed and replaced with the external subscription.  This\nallows an admin to configure mailboxes on both the endpoint and aor and allows\nthe client to select which to use.\n\nASTERISK-25865 #close\nReported-by: Ross Beer\n\nChange-Id: Ic15a9415091760539c7134a5ba3dc4a6a1217cea","distinct":true,"url":"https://api.github.com/repos/asterisk/asterisk/commits/e2524fcee350e4336e67888a26c5f9656afe7d06"},{"sha":"2b3261cd36f48437fe82eae3fb0a8eea1f292e2e","author":{"email":"3843e384a4fc83a40fc5d5724c52d17f7e9730ee@fairview5.com","name":"George Joseph"},"message":"res_pjsip_mwi:  Allow subscribe to vm access extension as an alias\n\nBackground:\n\nIf your extension is 1000 and the voicemail access extension is 1571 and you\ndial 1571, usually a dialplan rule calls voicemailmain with your extension and\nyou are placed directly in your mailbox.  Therefore most admins program the\nvoicemail (or other speed dial) button on their phones to the access extension.\nSome phones (Snom at least) use whatever is programmed there to also subscribe\nfor MWI and so can't dial one number and subscribe to another.  This works fine\nin chan_sip because chan_sip completely ignores the user portion of the\nSUBSCRIBE message request URI.  If it can match the peer, is subscribes to the\npeer's mailbox.  The user could be set to anything or nothing and you'd still\nget subscribed to your mailbox.\n\nIssue:\n\nchan_pjsip actually uses the user portion of the URI to find an aor and its\nmailboxes.  Therefore a subscribe to 1571 results in a 404.  Sure, you can\ncreate an aor for 1571 but you certainly can't add your entire voicemail\nsystem's mailboxes to it and everyone would get notified of every MWI.\n\nSolution:\n\nWhen an MWI subscribe comes in and an aor can't be found that matches the\nresource directly, check the resource against the endpoint's aors.  If an aor\nis found that has a voicemail_extension that matches the resource, use it.\n\nASTERISK-25865\nReported-by: Ross Beer\n\nChange-Id: I770ea185f751f1ada888fafb4b452115f1c06e9e","distinct":true,"url":"https://api.github.com/repos/asterisk/asterisk/commits/2b3261cd36f48437fe82eae3fb0a8eea1f292e2e"},{"sha":"96dcd811108db1570f914c8d401bbf93aadbfb23","author":{"email":"e7bf676187195e47c70a931cb0e87f318fea16b3@digium.com","name":"Joshua Colp"},"message":"Merge \"res_pjsip_mwi:  Add voicemail extension and mwi_subscribe_replaces_unsolicited\"","distinct":true,"url":"https://api.github.com/repos/asterisk/asterisk/commits/96dcd811108db1570f914c8d401bbf93aadbfb23"},{"sha":"abf241b94f5b5f88b4c608b0f470e92e2df5386b","author":{"email":"e7bf676187195e47c70a931cb0e87f318fea16b3@digium.com","name":"Joshua Colp"},"message":"Merge \"res_pjsip_mwi:  Allow subscribe to vm access extension as an alias\"","distinct":true,"url":"https://api.github.com/repos/asterisk/asterisk/commits/abf241b94f5b5f88b4c608b0f470e92e2df5386b"}]}