Instant Messaging between endpoints which are on two different Asterisk Servers over IAX2

Lots of good information in the the forums on getting IM working on a single Asterisk Instance (“13.14.0”) between endpoints. Works well… (with the exception that

  • exten => _.,n,MessageSend(${ACTUALTO},${MESSAGE(from)}) always returns a SUCCESS in the ${MESSAGE_SEND_STATUS} variable, but I can live with that. (there is already a sw bug reported on this).

The questions I have are:

  1. Is it even possible to do a MessageSend() to second asterisk server over an IAX2 trunk that links them?

  2. If so, what would be the syntax to accomplish this in the ‘to’ and ‘from’ parameters of MessageSend()?

Thanks in advance…

The IAX2 protocol does not allow out of call messaging so it is not possible to send messages between Asterisk servers like that.

Ahhh. That makes sense.

So, a SIP trunk would work then?

Thanks in advance…