From bce0e76750dc33766223ecd0c1e7f2c15082f169 Mon Sep 17 00:00:00 2001 From: lazedo Date: Sat, 21 Feb 2015 12:47:21 +0000 Subject: [PATCH] fix publish_voicemail_saved corrects commit https://github.com/2600hz/kazoo/commit/d0297321a3682928f341a1381796d51e5e45a0c2 (cherry picked from commit bf25313e8f23172d2b21e936d9336d60fca7bb26) --- core/whistle-1.0.0/src/api/wapi_notifications.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/whistle-1.0.0/src/api/wapi_notifications.erl b/core/whistle-1.0.0/src/api/wapi_notifications.erl index e542cef3aca..1b3e85d3209 100644 --- a/core/whistle-1.0.0/src/api/wapi_notifications.erl +++ b/core/whistle-1.0.0/src/api/wapi_notifications.erl @@ -913,7 +913,7 @@ declare_exchanges() -> -spec publish_voicemail_saved(api_terms(), ne_binary()) -> 'ok'. publish_voicemail_saved(JObj) -> publish_voicemail_saved(JObj, ?DEFAULT_CONTENT_TYPE). publish_voicemail_saved(Voicemail, ContentType) -> - {'ok', Payload} = wh_api:prepare_api_payload(Voicemail, ?VOICEMAIL_VALUES, fun ?MODULE:voicemail_saved/1), + {'ok', Payload} = wh_api:prepare_api_payload(Voicemail, ?VOICEMAIL_SAVED_VALUES, fun ?MODULE:voicemail_saved/1), amqp_util:notifications_publish(?NOTIFY_VOICEMAIL_SAVED, Payload, ContentType). -spec publish_voicemail(api_terms()) -> 'ok'.