]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_send_to_voicemail: transferring to voicemail for digium phones
authorKevin Harwell <kharwell@digium.com>
Tue, 25 Feb 2014 17:45:27 +0000 (17:45 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 25 Feb 2014 17:45:27 +0000 (17:45 +0000)
commit138767895cf5626c5385e9bb9afd5b8c233a6f15
tree41c6a5334e5b929d54837a3e8d26eaff2da5e06e
parentfdbad7a21f245c5b239581b51f11317f3bca18ea
res_pjsip_send_to_voicemail: transferring to voicemail for digium phones

Added the ability for transferring directly to voicemail on digium phones.
Added a new module that checks for the presence of a custom header and/or
diversion header within a sip REFER.  If either is found and they specify
a sending to voicemail action then variables are added to the channel
allowing the user access to them in the dialplan.  Dialplan can then be
written that branches based upon these values allowing, for instace, for
a single number to be used for dialing and/or accessing voicemail directly.

Also fixed a problem where the PJSIP_HEADER function was allowing non pjsip
channels through (checked to make sure it has the correct channel type before
proceeding).

Review: https://reviewboard.asterisk.org/r/3245/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@408880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_header_funcs.c
res/res_pjsip_send_to_voicemail.c [new file with mode: 0644]