marcelog / Nami

Asterisk manager interface (ami) client for nodejs
http://marcelog.github.com/Nami
Apache License 2.0
99 stars 59 forks source link

Meteor cannot start when using with nami #37

Closed StrongBearCeo closed 9 years ago

StrongBearCeo commented 9 years ago

I am using npm nami package inside Meteor app to listen to events from an Asterisk server. In server side, I have this code:

namiLib = Meteor.npmRequire "nami"
namiConfig =
    "host": "..."
    "port": 5038
    "username": "..."
    "secret": "...
nami = new namiLib.Nami namiConfig

If I remove the line nami = new namiLib.Nami namiConfig, the server runs fine. But with that line, the server stops at following step, and I cannot access http://localhost:3000, which is the default url for Meteor app. Nami package prevents Meteor from starting.

Any idea to help resolve this issue?

I have posted this question on Stackoverflow but still no solution except using other package instead of nami.

http://stackoverflow.com/questions/28430613/meteor-cannot-start-when-using-meteorhacksnpm-nami-package-cannot-access-loca/28445368?noredirect=1#comment45222484_28445368

marcelog commented 9 years ago

Hello. I have to close this one until there's a clear sign of an issue in Nami itself and not in your code or meteor. Feel free to reopen it with specific details if you think this is a nami issue.

StrongBearCeo commented 9 years ago

I used other package, e.g., asterisk-manager and it works fine. Seems that Nami has blocked other execution.

marcelog commented 9 years ago

I'm not a meteor user, so perhaps you could try to debug and find out what could be wrong