marcelog / Nami

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

Doubt using VoicemailUsersList #28

Open jesusprubio opened 9 years ago

jesusprubio commented 9 years ago

Hi guys, thanks for the library, it rocks! ;). But I have a problemv with the "VoicemailUsersList" function, I'm not able to capture this event, I've tried different options. Any idea please?

var action = new namiLib.Actions.VoicemailUsersList();

ami.on('VoicemailUserEntry', function (entry) { ami.on('namiVoicemailUserEntry', function (entry) { ami.on('namiEvent', function (evt) {

[2014-10-27 22:01:57.970] [WARN] Nami.Client - Discarded: |ActionID: 1 Event: VoicemailUserEntry VMContext: default VoiceMailbox: 2000 Fullname: Support Email: Pager: ServerEmail: MailCommand: Language: TimeZone: Callback: Dialout: UniqueID: ExitContext: SayDurationMinimum: 2 SayEnvelope: No SayCID: No AttachMessage: No AttachmentFormat: DeleteMessage: No VolumeGain: 0.00 CanReview: Yes CallOperator: Yes MaxMessageCount: 100 MaxMessageLength: 0 NewMessageCount: 1|

marcelog commented 9 years ago

hello!

can you paste the log line with the message "Building raw message: " ? the event should have been recogniced by https://github.com/marcelog/Nami/blob/master/src/nami.js#L128

jesusprubio commented 9 years ago

Finally I could get it working this way, but I'm not sure if it's the correct solution. ami.on('namiRawMessage', function (evt) { data.push(evt); });

I'm using your module here, thanks :) https://github.com/jesusprubio/bluebox-ng