anchor.diff:      kz_account_numbers_info(AccountId, Context).
   
   kz_account_numbers_info(AccountId, Context) ->
  -    API_String = <<?V2/binary, ?ACCOUNTS/binary, (z_convert:to_binary(AccountId))/binary, ?PHONE_NUMBERS/binary>>,
  +    API_String = <<?V2/binary, ?ACCOUNTS/binary, ?TO_BIN(AccountId)/binary, ?PHONE_NUMBERS/binary>>,
       case crossbar_account_request('get', API_String, [], Context) of
           <<>> -> [<<"">>];
           Result -> Result
  
positive.code:     [StartDay,StartMonth,StartYear] = z_string:split(z_context:get_q("start_date",Context),"/"),
      StartDate = calendar:datetime_to_gregorian_seconds({{z_convert:to_integer(StartYear),z_convert:to_integer(StartMonth),z_convert:to_integer(StartDay)},{0,0,0}}),
      Id = z_context:get_q("id",Context),
      Props = [{<<"time_window_start">>, z_convert:to_binary(TimeWindowStart)}
              ,{<<"time_window_stop">>, z_convert:to_binary(TimeWindowStop)}
              ,{<<"wdays">>, case Wdays of 'undefined' -> 'undefined'; _ -> lists:map(fun(Wday) -> z_convert:to_binary(Wday) end, Wdays) end}
              ,{<<"days">>, case Days of 'undefined' -> 'undefined'; _ -> lists:map(fun(Day) -> z_convert:to_binary(Day) end, [Days]) end}
              ,{<<"interval">>, z_convert:to_binary(z_context:get_q("interval",Context))}
              ,{<<"cycle">>, z_convert:to_binary(z_context:get_q("cycle",Context))}
              ,{<<"name">>, z_convert:to_binary(z_context:get_q("name",Context))}
              ,{<<"type">>, z_convert:to_binary(z_context:get_q("type",Context))}
              ,{<<"start_date">>, StartDate}
              ,{<<"id">>, z_convert:to_binary(Id)}
              ,{<<"enabled">>, z_convert:to_atom(z_context:get_q("enabled",Context))}
              ,{<<"ordinal">>, z_convert:to_binary(z_context:get_q("ordinal",Context))}
              ,{<<"month">>, z_convert:to_binary(z_context:get_q("month",Context))}],
      DataBag = ?MK_DATABAG(modkazoo_util:set_values(modkazoo_util:filter_empty(Props), modkazoo_util:new())),
      case Id of
          'undefined'->
              API_String = <<?V1/binary, ?ACCOUNTS(Context)/binary, ?TEMPORAL_RULES/binary>>,
              crossbar_account_request('put', API_String, DataBag, Context);
          _ ->
              API_String = <<?V1/binary, ?ACCOUNTS(Context)/binary, ?TEMPORAL_RULES/binary, "/", (z_convert:to_binary(Id))/binary>>,
              crossbar_account_request('post', API_String, DataBag, Context)
      end.
  
  cf_delete_time_of_the_day_rule(RuleId,Context) ->
      API_String = <<?V1/binary, ?ACCOUNTS(Context)/binary, ?TEMPORAL_RULES/binary, "/", (z_convert:to_binary(RuleId))/binary>>,
      crossbar_account_request('delete', API_String, [], Context).
  
  upload_media(Context) ->
  
negative.code: kz_channel_info(CallId, 'undefined', Context) ->
      kz_channel_info(CallId, z_context:get_session('kazoo_account_id', Context), Context);
  kz_channel_info(CallId, AccountId, Context) ->
      API_String = <<?V1/binary, ?ACCOUNTS/binary, ?TO_BIN(AccountId)/binary, ?CHANNELS/binary, "/" , ?TO_BIN(CallId)/binary>>,
      crossbar_account_request('get', API_String, [], Context).
  
  kz_channel_action(CallId, DataBag, Context) ->
  