Files | |
file | app_adsiprog.c |
Program Asterisk ADSI Scripts into phone. | |
file | app_alarmreceiver.c |
Central Station Alarm receiver for Ademco Contact ID. | |
file | app_authenticate.c |
Execute arbitrary authenticate commands. | |
file | app_cdr.c |
Applications connected with CDR engine. | |
file | app_chanisavail.c |
Check if Channel is Available. | |
file | app_channelredirect.c |
ChannelRedirect application. | |
file | app_chanspy.c |
ChanSpy: Listen in on any channel. | |
file | app_controlplayback.c |
Trivial application to control playback of a sound file. | |
file | app_dahdibarge.c |
Zap Barge support. | |
file | app_dahdiras.c |
Execute an ISDN RAS. | |
file | app_dahdiscan.c |
Zap Scanner. | |
file | app_db.c |
Database access functions. | |
file | app_dial.c |
dial() & retrydial() - Trivial application to dial a channel and send an URL on answer | |
file | app_dictate.c |
Virtual Dictation Machine Application For Asterisk. | |
file | app_directed_pickup.c |
Directed Call Pickup Support. | |
file | app_directory.c |
Provide a directory of extensions. | |
file | app_disa.c |
DISA -- Direct Inward System Access Application. | |
file | app_dumpchan.c |
Application to dump channel variables. | |
file | app_echo.c |
Echo application -- play back what you hear to evaluate latency. | |
file | app_exec.c |
Exec application. | |
file | app_externalivr.c |
External IVR application interface. | |
file | app_festival.c |
Connect to festival. | |
file | app_flash.c |
App to flash a DAHDI trunk. | |
file | app_followme.c |
Find-Me Follow-Me application. | |
file | app_forkcdr.c |
Fork CDR application. | |
file | app_getcpeid.c |
Get ADSI CPE ID. | |
file | app_hasnewvoicemail.c |
HasVoicemail application. | |
file | app_ices.c |
Stream to an icecast server via ICES (see contrib/asterisk-ices.xml). | |
file | app_image.c |
App to transmit an image. | |
file | app_ivrdemo.c |
IVR Demo application. | |
file | app_lookupblacklist.c |
App to lookup the callerid number, and see if it is blacklisted. | |
file | app_lookupcidname.c |
App to set callerid name from database, based on directory number. | |
file | app_macro.c |
Dial plan macro Implementation. | |
file | app_meetme.c |
Meet me conference bridge and Shared Line Appearances. | |
file | app_milliwatt.c |
Digital Milliwatt Test. | |
file | app_mixmonitor.c |
MixMonitor() - Record a call and mix the audio during the recording. | |
file | app_morsecode.c |
Morsecode application. | |
file | app_mp3.c |
Silly application to play an MP3 file -- uses mpg123. | |
file | app_nbscat.c |
Silly application to play an NBScat file -- uses nbscat8k. | |
file | app_osplookup.c |
Open Settlement Protocol (OSP) Applications. | |
file | app_page.c |
page() - Paging application | |
file | app_parkandannounce.c |
ParkAndAnnounce application for Asterisk. | |
file | app_playback.c |
Trivial application to playback a sound file. | |
file | app_privacy.c |
Block all calls without Caller*ID, require phone # to be entered. | |
file | app_queue.c |
True call queues with optional send URL on answer. | |
file | app_random.c |
Random application. | |
file | app_read.c |
Trivial application to read a variable. | |
file | app_readfile.c |
ReadFile application -- Reads in a File for you. | |
file | app_realtime.c |
RealTime App. | |
file | app_record.c |
Trivial application to record a sound file. | |
file | app_sayunixtime.c |
SayUnixTime application. | |
file | app_senddtmf.c |
App to send DTMF digits. | |
file | app_sendtext.c |
App to transmit a text message. | |
file | app_setcallerid.c |
App to set callerid. | |
file | app_setcdruserfield.c |
Applictions connected with CDR engine. | |
file | app_settransfercapability.c |
App to set the ISDN Transfer Capability. | |
file | app_skel.c |
Skeleton application. | |
file | app_sms.c |
SMS application - ETSI ES 201 912 protocol 1 implimentation. | |
file | app_softhangup.c |
SoftHangup application. | |
file | app_speech_utils.c |
Speech Recognition Utility Applications. | |
file | app_stack.c |
Stack applications Gosub, Return, etc. | |
file | app_system.c |
Execute arbitrary system commands. | |
file | app_talkdetect.c |
Playback a file with audio detect. | |
file | app_test.c |
Applications to test connection and produce report in text file. | |
file | app_transfer.c |
Transfer a caller. | |
file | app_url.c |
App to transmit a URL. | |
file | app_userevent.c |
UserEvent application -- send manager event. | |
file | app_verbose.c |
Verbose logging application. | |
file | app_voicemail.c |
Comedian Mail - Voicemail System. | |
file | app_waitforring.c |
Wait for Ring Application. | |
file | app_waitforsilence.c |
Wait for Silence
| |
file | app_while.c |
While Loop Implementation. | |
file | app_zapateller.c |
Playback the special information tone to get rid of telemarketers. | |
Functions | |
static int | iax2_prov_app (struct ast_channel *chan, void *data) |
static int | pbx_builtin_answer (struct ast_channel *, void *) |
static int | pbx_builtin_background (struct ast_channel *, void *) |
static int | pbx_builtin_busy (struct ast_channel *, void *) |
static int | pbx_builtin_congestion (struct ast_channel *, void *) |
static int | pbx_builtin_execiftime (struct ast_channel *, void *) |
static int | pbx_builtin_goto (struct ast_channel *, void *) |
static int | pbx_builtin_gotoiftime (struct ast_channel *, void *) |
static int | pbx_builtin_hangup (struct ast_channel *, void *) |
static int | pbx_builtin_progress (struct ast_channel *, void *) |
static int | pbx_builtin_resetcdr (struct ast_channel *, void *) |
static int | pbx_builtin_ringing (struct ast_channel *, void *) |
static int | pbx_builtin_setamaflags (struct ast_channel *, void *) |
static int | pbx_builtin_wait (struct ast_channel *, void *) |
static int | pbx_builtin_waitexten (struct ast_channel *, void *) |
static int iax2_prov_app | ( | struct ast_channel * | chan, | |
void * | data | |||
) | [static] |
iax2provision
Definition at line 9132 of file chan_iax2.c.
References ast_inet_ntoa(), ast_log(), ast_strdupa, ast_strlen_zero(), ast_verbose(), iax2_provision(), iax2_tech, iaxs, LOG_NOTICE, option_verbose, PTR_TO_CALLNO, create_addr_info::sockfd, ast_channel::tech, ast_channel::tech_pvt, and VERBOSE_PREFIX_3.
Referenced by load_module().
09133 { 09134 int res; 09135 char *sdata; 09136 char *opts; 09137 int force =0; 09138 unsigned short callno = PTR_TO_CALLNO(chan->tech_pvt); 09139 if (ast_strlen_zero(data)) 09140 data = "default"; 09141 sdata = ast_strdupa(data); 09142 opts = strchr(sdata, '|'); 09143 if (opts) 09144 *opts='\0'; 09145 09146 if (chan->tech != &iax2_tech) { 09147 ast_log(LOG_NOTICE, "Can't provision a non-IAX device!\n"); 09148 return -1; 09149 } 09150 if (!callno || !iaxs[callno] || !iaxs[callno]->addr.sin_addr.s_addr) { 09151 ast_log(LOG_NOTICE, "Can't provision something with no IP?\n"); 09152 return -1; 09153 } 09154 res = iax2_provision(&iaxs[callno]->addr, iaxs[callno]->sockfd, NULL, sdata, force); 09155 if (option_verbose > 2) 09156 ast_verbose(VERBOSE_PREFIX_3 "Provisioned IAXY at '%s' with '%s'= %d\n", 09157 ast_inet_ntoa(iaxs[callno]->addr.sin_addr), 09158 sdata, res); 09159 return res; 09160 }
static int pbx_builtin_answer | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5470 of file pbx.c.
References ast_channel::_state, ast_answer(), ast_safe_sleep(), AST_STATE_UP, and ast_strlen_zero().
05471 { 05472 int delay = 0; 05473 int res; 05474 05475 if (chan->_state == AST_STATE_UP) 05476 delay = 0; 05477 else if (!ast_strlen_zero(data)) 05478 delay = atoi(data); 05479 05480 res = ast_answer(chan); 05481 if (res) 05482 return res; 05483 05484 if (delay) 05485 res = ast_safe_sleep(chan, delay); 05486 05487 return res; 05488 }
static int pbx_builtin_background | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5703 of file pbx.c.
References ast_channel::_state, ast_answer(), AST_APP_ARG, ast_app_parse_options(), ast_copy_string(), AST_DECLARE_APP_ARGS, AST_DIGIT_ANY, ast_log(), ast_matchmore_extension(), AST_STANDARD_APP_ARGS, AST_STATE_UP, ast_stopstream(), ast_strdupa, ast_streamfile(), ast_strlen_zero(), ast_test_flag, ast_waitstream(), ast_waitstream_exten(), BACKGROUND_MATCHEXTEN, BACKGROUND_NOANSWER, background_opts, BACKGROUND_PLAYBACK, BACKGROUND_SKIP, ast_channel::cid, ast_callerid::cid_num, ast_channel::context, ast_channel::exten, ast_flags::flags, ast_channel::language, LOG_WARNING, ast_channel::name, parse(), and ast_channel::priority.
05704 { 05705 int res = 0; 05706 struct ast_flags flags = {0}; 05707 char *parse, exten[2] = ""; 05708 AST_DECLARE_APP_ARGS(args, 05709 AST_APP_ARG(filename); 05710 AST_APP_ARG(options); 05711 AST_APP_ARG(lang); 05712 AST_APP_ARG(context); 05713 ); 05714 05715 if (ast_strlen_zero(data)) { 05716 ast_log(LOG_WARNING, "Background requires an argument (filename)\n"); 05717 return -1; 05718 } 05719 05720 parse = ast_strdupa(data); 05721 05722 AST_STANDARD_APP_ARGS(args, parse); 05723 05724 if (ast_strlen_zero(args.lang)) 05725 args.lang = (char *)chan->language; /* XXX this is const */ 05726 05727 if (ast_strlen_zero(args.context)) 05728 args.context = chan->context; 05729 05730 if (args.options) { 05731 if (!strcasecmp(args.options, "skip")) 05732 flags.flags = BACKGROUND_SKIP; 05733 else if (!strcasecmp(args.options, "noanswer")) 05734 flags.flags = BACKGROUND_NOANSWER; 05735 else 05736 ast_app_parse_options(background_opts, &flags, NULL, args.options); 05737 } 05738 05739 /* Answer if need be */ 05740 if (chan->_state != AST_STATE_UP) { 05741 if (ast_test_flag(&flags, BACKGROUND_SKIP)) { 05742 return 0; 05743 } else if (!ast_test_flag(&flags, BACKGROUND_NOANSWER)) { 05744 res = ast_answer(chan); 05745 } 05746 } 05747 05748 if (!res) { 05749 char *back = args.filename; 05750 char *front; 05751 ast_stopstream(chan); /* Stop anything playing */ 05752 /* Stream the list of files */ 05753 while (!res && (front = strsep(&back, "&")) ) { 05754 if ( (res = ast_streamfile(chan, front, args.lang)) ) { 05755 ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char*)data); 05756 res = 0; 05757 break; 05758 } 05759 if (ast_test_flag(&flags, BACKGROUND_PLAYBACK)) { 05760 res = ast_waitstream(chan, ""); 05761 } else if (ast_test_flag(&flags, BACKGROUND_MATCHEXTEN)) { 05762 res = ast_waitstream_exten(chan, args.context); 05763 } else { 05764 res = ast_waitstream(chan, AST_DIGIT_ANY); 05765 } 05766 ast_stopstream(chan); 05767 } 05768 } 05769 05770 /* 05771 * If the single digit DTMF is an extension in the specified context, then 05772 * go there and signal no DTMF. Otherwise, we should exit with that DTMF. 05773 * If we're in Macro, we'll exit and seek that DTMF as the beginning of an 05774 * extension in the Macro's calling context. If we're not in Macro, then 05775 * we'll simply seek that extension in the calling context. Previously, 05776 * someone complained about the behavior as it related to the interior of a 05777 * Gosub routine, and the fix (#14011) inadvertently broke FreePBX 05778 * (#14940). This change should fix both of these situations, but with the 05779 * possible incompatibility that if a single digit extension does not exist 05780 * (but a longer extension COULD have matched), it would have previously 05781 * gone immediately to the "i" extension, but will now need to wait for a 05782 * timeout. 05783 */ 05784 if ((exten[0] = res) && !ast_matchmore_extension(chan, args.context, exten, 1, chan->cid.cid_num)) { 05785 snprintf(chan->exten, sizeof(chan->exten), "%c", res); 05786 ast_copy_string(chan->context, args.context, sizeof(chan->context)); 05787 chan->priority = 0; 05788 res = 0; 05789 } 05790 return res; 05791 }
static int pbx_builtin_busy | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5440 of file pbx.c.
References ast_channel::_state, ast_cdr_busy(), AST_CONTROL_BUSY, ast_indicate(), ast_setstate(), AST_STATE_BUSY, AST_STATE_UP, and wait_for_hangup().
05441 { 05442 ast_indicate(chan, AST_CONTROL_BUSY); 05443 /* Don't change state of an UP channel, just indicate 05444 busy in audio */ 05445 if (chan->_state != AST_STATE_UP) { 05446 ast_setstate(chan, AST_STATE_BUSY); 05447 ast_cdr_busy(chan->cdr); 05448 } 05449 wait_for_hangup(chan, data); 05450 return -1; 05451 }
static int pbx_builtin_congestion | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5456 of file pbx.c.
References ast_channel::_state, AST_CONTROL_CONGESTION, ast_indicate(), ast_setstate(), AST_STATE_BUSY, AST_STATE_UP, and wait_for_hangup().
05457 { 05458 ast_indicate(chan, AST_CONTROL_CONGESTION); 05459 /* Don't change state of an UP channel, just indicate 05460 congestion in audio */ 05461 if (chan->_state != AST_STATE_UP) 05462 ast_setstate(chan, AST_STATE_BUSY); 05463 wait_for_hangup(chan, data); 05464 return -1; 05465 }
static int pbx_builtin_execiftime | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5583 of file pbx.c.
References app, ast_build_timing(), ast_check_timing(), ast_log(), ast_strdupa, ast_strlen_zero(), LOG_WARNING, pbx_exec(), pbx_findapp(), s, and S_OR.
05584 { 05585 char *s, *appname; 05586 struct ast_timing timing; 05587 struct ast_app *app; 05588 static const char *usage = "ExecIfTime requires an argument:\n <time range>|<days of week>|<days of month>|<months>?<appname>[|<appargs>]"; 05589 05590 if (ast_strlen_zero(data)) { 05591 ast_log(LOG_WARNING, "%s\n", usage); 05592 return -1; 05593 } 05594 05595 appname = ast_strdupa(data); 05596 05597 s = strsep(&appname,"?"); /* Separate the timerange and application name/data */ 05598 if (!appname) { /* missing application */ 05599 ast_log(LOG_WARNING, "%s\n", usage); 05600 return -1; 05601 } 05602 05603 if (!ast_build_timing(&timing, s)) { 05604 ast_log(LOG_WARNING, "Invalid Time Spec: %s\nCorrect usage: %s\n", s, usage); 05605 return -1; 05606 } 05607 05608 if (!ast_check_timing(&timing)) /* outside the valid time window, just return */ 05609 return 0; 05610 05611 /* now split appname|appargs */ 05612 if ((s = strchr(appname, '|'))) 05613 *s++ = '\0'; 05614 05615 if ((app = pbx_findapp(appname))) { 05616 return pbx_exec(chan, app, S_OR(s, "")); 05617 } else { 05618 ast_log(LOG_WARNING, "Cannot locate application %s\n", appname); 05619 return -1; 05620 } 05621 }
static int pbx_builtin_goto | ( | struct ast_channel * | chan, | |
void * | data | |||
) | [static] |
Goto
Definition at line 5796 of file pbx.c.
References ast_parseable_goto(), ast_verbose(), ast_channel::context, ast_channel::exten, option_verbose, ast_channel::priority, and VERBOSE_PREFIX_3.
Referenced by pbx_builtin_gotoif(), and pbx_builtin_gotoiftime().
05797 { 05798 int res = ast_parseable_goto(chan, data); 05799 if (!res && (option_verbose > 2)) 05800 ast_verbose( VERBOSE_PREFIX_3 "Goto (%s,%s,%d)\n", chan->context,chan->exten, chan->priority+1); 05801 return res; 05802 }
static int pbx_builtin_gotoiftime | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5557 of file pbx.c.
References ast_build_timing(), ast_check_timing(), ast_log(), ast_strdupa, ast_strlen_zero(), LOG_WARNING, pbx_builtin_goto(), and s.
05558 { 05559 int res=0; 05560 char *s, *ts; 05561 struct ast_timing timing; 05562 05563 if (ast_strlen_zero(data)) { 05564 ast_log(LOG_WARNING, "GotoIfTime requires an argument:\n <time range>|<days of week>|<days of month>|<months>?[[context|]extension|]priority\n"); 05565 return -1; 05566 } 05567 05568 ts = s = ast_strdupa(data); 05569 05570 /* Separate the Goto path */ 05571 strsep(&ts,"?"); 05572 05573 /* struct ast_include include contained garbage here, fixed by zeroing it on get_timerange */ 05574 if (ast_build_timing(&timing, s) && ast_check_timing(&timing)) 05575 res = pbx_builtin_goto(chan, ts); 05576 05577 return res; 05578 }
static int pbx_builtin_hangup | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5527 of file pbx.c.
References AST_CAUSE_NORMAL_CLEARING, ast_log(), ast_str2cause(), ast_strlen_zero(), ast_channel::hangupcause, and LOG_NOTICE.
05528 { 05529 if (!ast_strlen_zero(data)) { 05530 int cause; 05531 char *endptr; 05532 05533 if ((cause = ast_str2cause(data)) > -1) { 05534 chan->hangupcause = cause; 05535 return -1; 05536 } 05537 05538 cause = strtol((const char *) data, &endptr, 10); 05539 if (cause != 0 || (data != endptr)) { 05540 chan->hangupcause = cause; 05541 return -1; 05542 } 05543 05544 ast_log(LOG_NOTICE, "Invalid cause given to Hangup(): \"%s\"\n", (char *) data); 05545 } 05546 05547 if (!chan->hangupcause) { 05548 chan->hangupcause = AST_CAUSE_NORMAL_CLEARING; 05549 } 05550 05551 return -1; 05552 }
static int pbx_builtin_progress | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5422 of file pbx.c.
References AST_CONTROL_PROGRESS, and ast_indicate().
05423 { 05424 ast_indicate(chan, AST_CONTROL_PROGRESS); 05425 return 0; 05426 }
static int pbx_builtin_resetcdr | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5499 of file pbx.c.
References ast_app_parse_options(), ast_cdr_reset(), ast_strdupa, ast_strlen_zero(), ast_channel::cdr, ast_flags::flags, and resetcdr_opts.
05500 { 05501 char *args; 05502 struct ast_flags flags = { 0 }; 05503 05504 if (!ast_strlen_zero(data)) { 05505 args = ast_strdupa(data); 05506 ast_app_parse_options(resetcdr_opts, &flags, NULL, args); 05507 } 05508 05509 ast_cdr_reset(chan->cdr, &flags); 05510 05511 return 0; 05512 }
static int pbx_builtin_ringing | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5431 of file pbx.c.
References AST_CONTROL_RINGING, and ast_indicate().
05432 { 05433 ast_indicate(chan, AST_CONTROL_RINGING); 05434 return 0; 05435 }
static int pbx_builtin_setamaflags | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5517 of file pbx.c.
References ast_cdr_setamaflags().
05518 { 05519 /* Copy the AMA Flags as specified */ 05520 ast_cdr_setamaflags(chan, data ? data : ""); 05521 return 0; 05522 }
static int pbx_builtin_wait | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5626 of file pbx.c.
References ast_safe_sleep(), and s.
05627 { 05628 double s; 05629 int ms; 05630 05631 /* Wait for "n" seconds */ 05632 if (data && (s = atof(data)) > 0) { 05633 ms = s * 1000.0; 05634 return ast_safe_sleep(chan, ms); 05635 } 05636 return 0; 05637 }
static int pbx_builtin_waitexten | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5642 of file pbx.c.
References AST_APP_ARG, ast_app_parse_options(), AST_CONTROL_HOLD, AST_CONTROL_UNHOLD, AST_DECLARE_APP_ARGS, ast_exists_extension(), ast_indicate(), ast_indicate_data(), ast_log(), AST_SOFTHANGUP_TIMEOUT, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), ast_test_flag, ast_verbose(), ast_waitfordigit(), ast_flags::flags, LOG_WARNING, option_verbose, parse(), set_ext_pri(), VERBOSE_PREFIX_3, WAITEXTEN_MOH, and waitexten_opts.
05643 { 05644 int ms, res; 05645 double sec; 05646 struct ast_flags flags = {0}; 05647 char *opts[1] = { NULL }; 05648 char *parse; 05649 AST_DECLARE_APP_ARGS(args, 05650 AST_APP_ARG(timeout); 05651 AST_APP_ARG(options); 05652 ); 05653 05654 if (!ast_strlen_zero(data)) { 05655 parse = ast_strdupa(data); 05656 AST_STANDARD_APP_ARGS(args, parse); 05657 } else 05658 memset(&args, 0, sizeof(args)); 05659 05660 if (args.options) 05661 ast_app_parse_options(waitexten_opts, &flags, opts, args.options); 05662 05663 if (ast_test_flag(&flags, WAITEXTEN_MOH) && !opts[0] ) { 05664 ast_log(LOG_WARNING, "The 'm' option has been specified for WaitExten without a class.\n"); 05665 } else if (ast_test_flag(&flags, WAITEXTEN_MOH)) 05666 ast_indicate_data(chan, AST_CONTROL_HOLD, opts[0], strlen(opts[0])); 05667 05668 /* Wait for "n" seconds */ 05669 if (args.timeout && (sec = atof(args.timeout)) > 0.0) 05670 ms = 1000 * sec; 05671 else if (chan->pbx) 05672 ms = chan->pbx->rtimeout * 1000; 05673 else 05674 ms = 10000; 05675 res = ast_waitfordigit(chan, ms); 05676 if (!res) { 05677 if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 1, chan->cid.cid_num)) { 05678 if (option_verbose > 2) 05679 ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, continuing...\n", chan->name); 05680 } else if (chan->_softhangup == AST_SOFTHANGUP_TIMEOUT) { 05681 if (option_verbose > 2) 05682 ast_verbose(VERBOSE_PREFIX_3 "Call timeout on %s, checking for 'T'\n", chan->name); 05683 res = -1; 05684 } else if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) { 05685 if (option_verbose > 2) 05686 ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, going to 't'\n", chan->name); 05687 set_ext_pri(chan, "t", 0); /* 0 will become 1, next time through the loop */ 05688 } else { 05689 ast_log(LOG_WARNING, "Timeout but no rule 't' in context '%s'\n", chan->context); 05690 res = -1; 05691 } 05692 } 05693 05694 if (ast_test_flag(&flags, WAITEXTEN_MOH)) 05695 ast_indicate(chan, AST_CONTROL_UNHOLD); 05696 05697 return res; 05698 }