Skip to content

Commit

Permalink
KAZOO-2193: function expects a binary not the json object, also added…
Browse files Browse the repository at this point in the history
… the missing /binary
  • Loading branch information
k-anderson committed Mar 19, 2014
1 parent fa14eb3 commit 36a84f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/stepswitch/src/stepswitch_local_extension.erl
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ build_local_extension(#state{number_props=Props
{CIDNum, CIDName} = local_extension_caller_id(JObj),
lager:debug("set outbound caller id to ~s '~s'", [CIDNum, CIDName]),
Number = props:get_value('number', Props),
Realm = get_account_realm(JObj),
AccountId = props:get_value('account_id', Props),
Realm = get_account_realm(AccountId),
CCVs = wh_json:get_value(<<"Custom-Channel-Vars">>, JObj, wh_json:new()),
CCVUpdates = props:filter_undefined(
[{<<"Inception">>, <<Number/binary, "@", Realm>>}
[{<<"Inception">>, <<Number/binary, "@", Realm/binary>>}
,{<<"Retain-CID">>, <<"true">>}
,{<<"Global-Resource">>, <<"false">>}
,{<<"Account-ID">>, AccountId}
Expand Down

0 comments on commit 36a84f4

Please sign in to comment.