-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
create outbound dial from webhook ws #581
Conversation
lib/session/call-session.js
Outdated
} | ||
} | ||
|
||
async _validateCreateCall(opts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to validate here? The endpoint we are calling /createCall
will do this validation. So it seems duplicated...can't we just capture the error response (typically a 400 Bad Request) and send it back over the websocket in some form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the part of code for data validation, I just now keep the code for transforming data that feature server can understand and process the outbound call
@xquanluu is this completed ? |
e2d579a
to
5195f6c
Compare
@xquanluu @vdharashive is this PR tested and ready for merge? |
From my site, It's tested and working together with conference example app. |
But wait me to clean up the code as you mentioned above |
029f54a
to
e2a9925
Compare
Hi @davehorton I have clean up the code and retested on jambonz.me Please help me to review the code one again |
* wip, create outbound dial from webhook ws * wip, create outbound dial from webhook ws * clean
No description provided.