Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Messages out of calls. Is it really possible?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pimenta at inatel.br
Guest





PostPosted: Fri Jul 10, 2015 11:52 am    Post subject: [asterisk-users] Messages out of calls. Is it really possibl Reply with quote

Hi.

I have read in some web sites that ASTERISK can support messages out of calls. What does it exactly means?

1 - Can a dialplan script accept and handle a message from a callee party, even before the call be connected?

2 - Can a ringing callee send SIP MESSAGE to the ASTERISK even before answer the call?

3- Could I use dialplan function MESSAGE() to receive SIP messages from callees, even before the call be connected?

Any hint will be very helpful!

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
mjordan at digium.com
Guest





PostPosted: Fri Jul 10, 2015 1:29 pm    Post subject: [asterisk-users] Messages out of calls. Is it really possibl Reply with quote

On Fri, Jul 10, 2015 at 11:51 AM, Rodrigo Pimenta Carvalho
<pimenta@inatel.br> wrote:
Quote:

Hi.

I have read in some web sites that ASTERISK can support messages out of calls. What does it exactly means?

1 - Can a dialplan script accept and handle a message from a callee party, even before the call be connected?

Since it is out of call, yes.

SIP MESSAGE requests are handled by the respective channel driver
(chan_sip or the res_pjsip stack) and passed to the dialplan using a
"special" hidden channel, Message. That channel caries the payload and
some meta information about the MESSAGE request, which can be accessed
using the generic out-of-call messaging functions [1].

Likewise, you can send an out of call SIP MESSAGE request using MessageSend [2].

Note that all of this has been supported since Asterisk 10.

Quote:
2 - Can a ringing callee send SIP MESSAGE to the ASTERISK even before answer the call?

Yes, hence the term "out-of-call".

Quote:
3- Could I use dialplan function MESSAGE() to receive SIP messages from callees, even before the call be connected?

It does not receive messages; it accesses data on the message
currently being serviced by the executing Message channel.

chan_sip/res_pjsip will receive and dispatch MESSAGE requests at any
point in time. They have nothing to do with your "normal" SIP or PJSIP
channels, and hence nothing to do with whatever INVITE request derived
channels are currently executing in the dialplan.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_MESSAGE
and https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_MESSAGE_DATA
[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_MessageSend

--
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services