Skip to content

Commit

Permalink
Android/ - Forward twilio custom parameters to RN context
Browse files Browse the repository at this point in the history
  • Loading branch information
mevanso01 committed Jan 13, 2021
1 parent d7d606c commit 11e6b2e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ private void handleIncomingCallIntent(Intent intent) {
params.putString("call_sid", activeCallInvite.getCallSid());
params.putString("call_from", activeCallInvite.getFrom());
params.putString("call_to", activeCallInvite.getTo()); // TODO check if needed

Map<String, String> customParameters = activeCallInvite.getCustomParameters();
for (Map.Entry<String, String> entry: customParameters.entrySet()) {
params.putString(entry.getKey(), entry.getValue());
}
eventManager.sendEvent(EVENT_DEVICE_DID_RECEIVE_INCOMING, params);
}
} else {
Expand Down

0 comments on commit 11e6b2e

Please sign in to comment.