79{
80 char *parse;
82 const char *chanName;
83 int res;
84
88 );
89
90 int s = 0;
91 uuid_t uu;
92
93
95
96
101 return -1;
102 }
103 if (uuid_parse(
args.idStr, uu)) {
105 return -1;
106 }
108
109 return -1;
110 }
111
112
113
116
118 ast_log(
LOG_ERROR,
"Failed to set write format to SLINEAR for channel '%s'\n", chanName);
119 res = -1;
121 }
122
124 ast_log(
LOG_ERROR,
"Failed to set read format to SLINEAR for channel '%s'\n", chanName);
125 res = -1;
127 }
128
129
130
131
132
134
136
137
139 ast_log(
LOG_ERROR,
"Failed to restore write format for channel '%s'\n", chanName);
140 }
142 ast_log(
LOG_ERROR,
"Failed to restore read format for channel '%s'\n", chanName);
143 }
146 close(s);
147
148 return res;
149}
static int audiosocket_run(struct ast_channel *chan, const char *id, const int svc, const char *server)
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
#define ao2_bump(obj)
Bump refcount on an AO2 object by one, returning the object.
const char * ast_channel_name(const struct ast_channel *chan)
int ast_set_read_format(struct ast_channel *chan, struct ast_format *format)
Sets read format on channel chan.
struct ast_format * ast_channel_writeformat(struct ast_channel *chan)
int ast_set_write_format(struct ast_channel *chan, struct ast_format *format)
Sets write format on channel chan.
struct ast_format * ast_channel_readformat(struct ast_channel *chan)
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
const int ast_audiosocket_connect(const char *server, struct ast_channel *chan)
Send the initial message to an AudioSocket server.
static force_inline int attribute_pure ast_strlen_zero(const char *s)