[asterisk-dev] Questions about dialplan function MessageSend in Asterisk 10

David Vossel dvossel at digium.com
Thu Oct 13 12:02:52 CDT 2011


----- Original Message -----
> From: "Kamal Ahmed" <kamal2222ahmed at yahoo.com>
> To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
> Sent: Thursday, October 13, 2011 10:09:47 AM
> Subject: [asterisk-dev] Questions about dialplan function MessageSend in Asterisk 10
> I am testing Asterisk 10 SIP messaging functionality. I can use
> MessageSend() in dialplan to send messages outside calls between two
> SIP phones in the same Asterisk. However, I can’t find any document or
> example to route messages between different Asterisk instances. If I
> have a phone with extension “123” connect to Asterisk server
> 10.0.1.105, I am not able to route the message using “exten =>123, 1,
> MessageSend(sip:123 at 10.0.1.105)” from other Asterisk servers. Could
> you give me some advices or point me to related documents on this
> issue?
> 
> Thanks,

Sending a message to another Asterisk instance shouldn't be any different than sending it to any other SIP endpoint. If you are routing through two Asterisk boxes, you just have to make sure your dialplan on both boxes will relay the incoming messages, otherwise they will not make it through.  No automatic relaying of message 123 at 10.0.1.105 will be done.  The message will hit the dialplan and then it has to be relayed to the actual sip peer.  This is the same pattern used for incoming calls.  If it helps you conceptualize this, just replace Dial with MessageSend when you are thinking about the message framework.

-- 
David Vossel
Digium, Inc. | Software Developer, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
The_Boy_Wonder in #asterisk-dev



More information about the asterisk-dev mailing list