Skip to content

Commit

Permalink
add missing vars to probe (2600hz#6509)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored May 1, 2020
1 parent 127bbf5 commit 1d61f9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion applications/ecallmgr/src/node/ecallmgr_fs_notify.erl
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,17 @@ resp_to_probe(State, User, Realm) ->
PresenceId = <<User/binary, "@", Realm/binary>>,
PresenceUpdate = [{<<"Presence-ID">>, PresenceId}
,{<<"From">>, <<"sip:", PresenceId/binary>>}
,{<<"From-User">>, User}
,{<<"From-Realm">>, Realm}
,{<<"To">>, <<"sip:", PresenceId/binary>>}
,{<<"To-User">>, User}
,{<<"To-Realm">>, Realm}
,{<<"State">>, State}
,{<<"Call-ID">>, kz_term:to_hex_binary(crypto:hash(md5, PresenceId))}
| kz_api:default_headers(?APP_NAME, ?APP_VERSION)
],
kz_amqp_worker:cast(PresenceUpdate, fun kapi_presence:publish_update/1).
lager:debug("sending probe reply '~s' for ~s", [State, PresenceId]),
kapi_presence:publish_update(PresenceUpdate).

-spec notify_api(kz_json:object(), kz_term:proplist()) -> 'ok'.
notify_api(JObj, _Props) ->
Expand Down

0 comments on commit 1d61f9c

Please sign in to comment.