Skip to content

Commit

Permalink
WHISTLE-547: add call-id to the new voicemail AMQP API
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Sep 2, 2011
1 parent da7b0d7 commit f26a743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion whistle_apps/apps/callflow/include/cf_amqp.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

-define(NEW_VOICEMAIL_HEADERS, [<<"From-User">>, <<"From-Realm">>, <<"To-User">>, <<"To-Realm">>
,<<"Account-DB">>, <<"Voicemail-Box">>, <<"Voicemail-Name">>, <<"Voicemail-Timestamp">>]).
-define(OPTIONAL_NEW_VOICEMAIL_HEADERS, [<<"Caller-ID-Name">>, <<"Caller-ID-Number">>]).
-define(OPTIONAL_NEW_VOICEMAIL_HEADERS, [<<"Caller-ID-Name">>, <<"Caller-ID-Number">>, <<"Call-ID">>]).
-define(NEW_VOICEMAIL_VALUES, [{<<"Event-Category">>, <<"notification">>}
,{<<"Event-Name">>, <<"new_voicemail">>}
]).
Expand Down
1 change: 1 addition & 0 deletions whistle_apps/apps/callflow/src/module/cf_voicemail.erl
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ new_message(RecordingName, #mailbox{mailbox_id=Id}=Box, #cf_call{account_db=Db,
,{<<"Caller-ID-Name">>, CIDName}
,{<<"Caller-ID-Number">>, CIDNumber}
,{<<"Voicemail-Timestamp">>, Tstamp}
,{<<"Call-ID">>, CallID}
| wh_api:default_headers(<<>>, <<"notification">>, <<"new_voicemail">>, ?APP_NAME, ?APP_VERSION)
]),
?LOG("new voicemail message ~s whistle API broadcast", [MediaId]),
Expand Down

0 comments on commit f26a743

Please sign in to comment.