aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-14 05:33:06 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-14 05:33:06 +0000
commit67b5919a15a97bce261c4dc98a14c5d8aeab0154 (patch)
tree23b90a95ccbc1acc8ade932120bf3a913ab9b097 /include/asterisk
parent1fbfb13dba848484eb0bcf1364c35d348b96ca8d (diff)
Add transfer to IAX2, and transfer application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1016 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/channel.h4
-rwxr-xr-xinclude/asterisk/channel_pvt.h2
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