<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> </blockquote></div>
<div><br>Now I have two phones connect to my hardware PBX,and want to Make two calls from within Asterisk and switch them together. I now have the two numbers and the other parameter should how to set. for example: the value of data, type and format ,I set the type "Local" and type AST_FORMAT_SLINEAR but I don't know it is write. and the data is don't know how to set.
</div>
<div>struct ast_channel *ast_request_and_dial(const char *type, int format, void *data, int timeout, int *reason, const char *cidnum, const char *cidname);<br> </div>