MessageReceived Listener Event isnot working

Added by umarkashmiri 30 days ago

When i connect to GSM modem it is connected successfully,and i assigned all th necessary properties to gateway and its configuration,I also attached the event e.g.

mobileGateway.MessageReceived += new MessageReceivedEventHandler(mobileGateway_MessageReceived);
void mobileGateway_MessageReceived(object sender, MessageReceivedEventArgs e) {
MessageBox.Show("hi this is message received check");
}

but on receiving a new message this listener is not fired,Am i missing some property???


Replies

RE: MessageReceived Listener Event isnot working - Added by umarkashmiri 30 days ago

The problem has been resolved:
We have to call the following function before attaching the listener
mobileGateway.EnableMessageNotifications();