How to handle Asterisk SendText cmd in Ozeki

111 Views Asked by At

We're trying to get custom data sent back from Asterisk to our Ozeki softphone (a TaskId).

So far I've found that Asterisk can send text messages via SIP using the asterisk-cmd-sendtext. I've debugged in Asterisk and have confirmed that the command is being executed.

In Ozeki, I first tried using the InstantMessaging.MessageReceived event listener, but it never got triggered.

Then I tried implementing SetSIPMessageManipulator(ISIPMessageManipulator manipulator) (documentation). That too, however, was never called.

How do I consume the message sent from Asterisk?

1

There are 1 best solutions below

0
On

Turns out the SetSIPMessageManipulator(ISIPMessageManipulator manipulator) should be added after the phone is registered, but before the event listeners (like the statechanged event) is wired up.