Add transfer to IAX2, and transfer application

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-05-14 05:33:06 +00:00
parent 8e280ab712
commit 8f27350e65
10 changed files with 164 additions and 4 deletions

View File

@@ -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

View File

@@ -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