Skip to content

Error "Unable to start call, PSTN user present with no alternateCallerId" when upgrading from v1.19.0-beta.1 to v1.28 #5925

Answered by prabhjot-msft
EmilioP94 asked this question in Q&A
Discussion options

You must be logged in to vote

@EmilioP94 Modify your code to pass alternateCallerId through the options parameter:

const callAdapterArgs = useMemo(
  () => ({
    userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,
    displayName,
    credential,
    targetCallees: createTargetCallees,
    options: {
      alternateCallerId: alternateCallerId || undefined
    }
  }),
  [userId, displayName, credential, alternateCallerId, createTargetCallees]
); 

This change aligns with how the current codebase handles alternateCallerId which is now expected to be passed through the options object and is used internally when starting calls with PSTN participants.

Let me know if this resolves the issue!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@EmilioP94
Comment options

Comment options

You must be logged in to vote
1 reply
@EmilioP94
Comment options

Answer selected by prabhjot-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants