Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Dialing Internal Twilio Clients #39

Open
patrickappelman opened this issue Jul 3, 2019 · 0 comments
Open

Issues with Dialing Internal Twilio Clients #39

patrickappelman opened this issue Jul 3, 2019 · 0 comments

Comments

@patrickappelman
Copy link

I have two accounts—one is able to dial other internal Twilio client numbers and one is not.

Case 1: Working Internal Call - John Calls Roger
A task is created with the following attributes and assigned to the current worker.

{
	"internal":"true",
	"name":"client:john",
	"autoAnswer":"true",
	"from":"John",
	"to":"client:john",
	"targetWorker":"client:roger",
	"url":"https://runtime-domain",
	"worker_call_sid":"CAfccbc6b114e52f7704924772c8b02b5d",
	"direction":"outbound"
}

Another task is created, reserving the recipient client, with the following attributes:

{
	"internal":"true",
	"name":"John",
	"autoAnswer":"false",
	"from":"+18448144627",
	"to":"client:john",
	"targetWorker":"client:john",
	"conferenceSid":"WT39224f8996e032d1cfcdd148bc36a95c",
	"direction":"outbound"
}

Case 2: Non-Working Internal Call - Roger Calls John
A task is created with the following attributes and assigned to the current worker.

{
	"internal":"true",
	"name":"client:roger",
	"autoAnswer":"true",
	"from":"Roger",
	"to":"client:roger",
	"targetWorker":"client:john",
	"url":"https:\/\/runtime-domain",
	"direction":"outbound"
}

No reservation task is created.

For Case 2, I receive the following error in Debugger:

Error - 40113
Error Making Outgoing Call - Call Instruction
The call instruction encountered an error when requesting an outgoing call be made from the API. Code: [21212] - From is not a valid phone number: Roger - ReservationSid: WRd438f23011207f9926e5966c4d4c2e0b

{
    "message": "From is not a valid phone number: Roger",
    "code": 21212,
    "user_error": false,
    "http_status_code": -1,
    "params": {}
}

Any idea why one account would be able to call internally but the other account cannot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant