ukd1 / node-twilio

A (deprecated) Twilio helper library for node. Use the official one:
https://github.com/twilio/twilio-node
177 stars 56 forks source link

Use on dev machines. #18

Closed jkarmel closed 7 years ago

jkarmel commented 12 years ago

Hey, this is my first twillio app ever and I am a newcomer to node as well so please forgive my ignorance. I'm trying to use the dial-list example you provided to create the application.

I keep on getting the following error:

 Error: Could not get number +NNNNNNNNNN

I just tried to do the demo app after verifying my personal number on the twillio website. I used that number for the outgoing number in the config file. I'm confused about what I should put for the hostname. I tried to use my IP address but that didn't work. I would like to try things from my dev machine, rather than push to heroku or ec2 to see if things are working. Any advice?

sjwalter commented 12 years ago

Is your devbox behind a router? The assumption made in node-twilio is that wherever your app is run from is publicly accessible from the rest of the internet. That means that if you're behind a router (maybe your dev box's address shows up as 192.168.X.XXX?) or some firewall that blocks incoming connections, you will see such failures.

I recommend verifying the IP address you're using. If you are, as I suspect, behind a normal router, check out that router's configuration and see if you can set up some port forwarding. If it's possible, pick some port at random (my favourite is 31337) and set that up to forward directly to your dev machine. Then, set the hostname parameter to the ROUTER'S public IP address (you can get this from the router's web configuration very easily) and the port parameter to 31337 (or whatever you chose instead).

No forgiveness needed--we are all ignorant in our own ways. Welcome to the Node community. Hope you have a (productive) blast. :)

On Wed, Jan 18, 2012 at 9:03 PM, Jeremy Karmel < reply@reply.github.com

wrote:

Hey, this is my first twillio app ever and I am a newcomer to node as well so please forgive my ignorance. I'm trying to use the dial-list example you provided to create the application.

I keep on getting the following error:

Error: Could not get number +NNNNNNNNNN

I just tried to do the demo app after verifying my personal number on the twillio website. I used that number for the outgoing number in the config file. I'm confused about what I should put for the hostname. I tried to use my IP address but that didn't work. I would like to try things from my dev machine, rather than push to heroku or ec2 to see if things are working. Any advice?


Reply to this email directly or view it on GitHub: https://github.com/sjwalter/node-twilio/issues/18

jkarmel commented 12 years ago

Thanks a lot, I'm going to try this tonight!

Really liking what I see in Node so far, it seems to have a really nice focus on simplicity (thats also what attracted me to your library).

ukd1 commented 7 years ago

This library is deprecated in favor of the official library - https://github.com/twilio/twilio-node