Review Board 1.7.16


Add ability for Channel Drivers to provide Presence State information

Review Request #4050 - Created Oct. 5, 2014 and submitted

gareth
ASTERISK-24363
Reviewers
asterisk-dev
Asterisk
This patch adds the ability for channel drivers to supply presence information in a similar manner to device state.

eg: exten => XXX,hint,,<Technology>/<Resource>
Code is originally written as part of ASTERISK-13145 which has undergone extensive testing.

Diff revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

1 2 3
1 2 3

  1. /trunk/include/asterisk/channel.h: Loading...
  2. /trunk/main/channel.c: Loading...
  3. /trunk/main/pbx.c: Loading...
  4. /trunk/main/presencestate.c: Loading...
/trunk/include/asterisk/channel.h
Revision 425756 New Change
[20] 628 lines
[+20] [+] struct ast_channel_tech {
629
	 * \retval non-NULL channel on success
629
	 * \retval non-NULL channel on success
630
	 */
630
	 */
631
	struct ast_channel *(* const requester)(const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
631
	struct ast_channel *(* const requester)(const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
632

    
   
632

   
633
	int (* const devicestate)(const char *device_number);	/*!< Devicestate call back */
633
	int (* const devicestate)(const char *device_number);	/*!< Devicestate call back */

    
   
634
	int (* const presencestate)(const char *presence_provider, char **subtype, char **message); /*!< Presencestate callback */
634

    
   
635

   
635
	/*!
636
	/*!
636
	 * \brief Start sending a literal DTMF digit
637
	 * \brief Start sending a literal DTMF digit
637
	 *
638
	 *
638
	 * \note The channel is not locked when this function gets called.
639
	 * \note The channel is not locked when this function gets called.
[+20] [20] 3951 lines
/trunk/main/channel.c
Revision 425756 New Change
 
/trunk/main/pbx.c
Revision 425756 New Change
 
/trunk/main/presencestate.c
Revision 425756 New Change
 
  1. /trunk/include/asterisk/channel.h: Loading...
  2. /trunk/main/channel.c: Loading...
  3. /trunk/main/pbx.c: Loading...
  4. /trunk/main/presencestate.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.