diff options
author | Mark Spencer <markster@digium.com> | 2003-05-14 05:33:06 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-05-14 05:33:06 +0000 |
commit | 8f27350e65509ac51e7e922b6934217226664634 (patch) | |
tree | 23b90a95ccbc1acc8ade932120bf3a913ab9b097 /include | |
parent | 8e280ab712912b526a44021cd84915a491e80faa (diff) |
Add transfer to IAX2, and transfer application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/channel.h | 4 | ||||
-rwxr-xr-x | include/asterisk/channel_pvt.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 97f8af91f..e40a5378f 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -676,6 +676,10 @@ int ast_autoservice_stop(struct ast_channel *chan); timer fd */ int ast_settimeout(struct ast_channel *c, int ms); +/* Transfer a channel (if supported). Returns -1 on error, 0 if not supported + and 1 if supported and requested */ +int ast_transfer(struct ast_channel *chan, char *dest); + /* Misc. functions below */ //! Waits for activity on a group of channels diff --git a/include/asterisk/channel_pvt.h b/include/asterisk/channel_pvt.h index a815f5c4a..d52a90fc6 100755 --- a/include/asterisk/channel_pvt.h +++ b/include/asterisk/channel_pvt.h @@ -65,6 +65,8 @@ struct ast_channel_pvt { int (*setoption)(struct ast_channel *chan, int option, void *data, int datalen); /*! Query a given option */ int (*queryoption)(struct ast_channel *chan, int option, void *data, int *datalen); + /*! Blind transfer other side */ + int (*transfer)(struct ast_channel *chan, char *newdest); }; //! Create a channel structure |