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 10216 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().
10217 { 10218 int res; 10219 char *sdata; 10220 char *opts; 10221 int force =0; 10222 unsigned short callno = PTR_TO_CALLNO(chan->tech_pvt); 10223 if (ast_strlen_zero(data)) 10224 data = "default"; 10225 sdata = ast_strdupa(data); 10226 opts = strchr(sdata, '|'); 10227 if (opts) 10228 *opts='\0'; 10229 10230 if (chan->tech != &iax2_tech) { 10231 ast_log(LOG_NOTICE, "Can't provision a non-IAX device!\n"); 10232 return -1; 10233 } 10234 if (!callno || !iaxs[callno] || !iaxs[callno]->addr.sin_addr.s_addr) { 10235 ast_log(LOG_NOTICE, "Can't provision something with no IP?\n"); 10236 return -1; 10237 } 10238 res = iax2_provision(&iaxs[callno]->addr, iaxs[callno]->sockfd, NULL, sdata, force); 10239 if (option_verbose > 2) 10240 ast_verbose(VERBOSE_PREFIX_3 "Provisioned IAXY at '%s' with '%s'= %d\n", 10241 ast_inet_ntoa(iaxs[callno]->addr.sin_addr), 10242 sdata, res); 10243 return res; 10244 }
static int pbx_builtin_answer | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5490 of file pbx.c.
References ast_channel::_state, ast_answer(), ast_safe_sleep(), AST_STATE_UP, and ast_strlen_zero().
05491 { 05492 int delay = 0; 05493 int res; 05494 05495 if (chan->_state == AST_STATE_UP) 05496 delay = 0; 05497 else if (!ast_strlen_zero(data)) 05498 delay = atoi(data); 05499 05500 res = ast_answer(chan); 05501 if (res) 05502 return res; 05503 05504 if (delay) 05505 res = ast_safe_sleep(chan, delay); 05506 05507 return res; 05508 }
static int pbx_builtin_background | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5723 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.
05724 { 05725 int res = 0; 05726 struct ast_flags flags = {0}; 05727 char *parse, exten[2] = ""; 05728 AST_DECLARE_APP_ARGS(args, 05729 AST_APP_ARG(filename); 05730 AST_APP_ARG(options); 05731 AST_APP_ARG(lang); 05732 AST_APP_ARG(context); 05733 ); 05734 05735 if (ast_strlen_zero(data)) { 05736 ast_log(LOG_WARNING, "Background requires an argument (filename)\n"); 05737 return -1; 05738 } 05739 05740 parse = ast_strdupa(data); 05741 05742 AST_STANDARD_APP_ARGS(args, parse); 05743 05744 if (ast_strlen_zero(args.lang)) 05745 args.lang = (char *)chan->language; /* XXX this is const */ 05746 05747 if (ast_strlen_zero(args.context)) 05748 args.context = chan->context; 05749 05750 if (args.options) { 05751 if (!strcasecmp(args.options, "skip")) 05752 flags.flags = BACKGROUND_SKIP; 05753 else if (!strcasecmp(args.options, "noanswer")) 05754 flags.flags = BACKGROUND_NOANSWER; 05755 else 05756 ast_app_parse_options(background_opts, &flags, NULL, args.options); 05757 } 05758 05759 /* Answer if need be */ 05760 if (chan->_state != AST_STATE_UP) { 05761 if (ast_test_flag(&flags, BACKGROUND_SKIP)) { 05762 return 0; 05763 } else if (!ast_test_flag(&flags, BACKGROUND_NOANSWER)) { 05764 res = ast_answer(chan); 05765 } 05766 } 05767 05768 if (!res) { 05769 char *back = args.filename; 05770 char *front; 05771 ast_stopstream(chan); /* Stop anything playing */ 05772 /* Stream the list of files */ 05773 while (!res && (front = strsep(&back, "&")) ) { 05774 if ( (res = ast_streamfile(chan, front, args.lang)) ) { 05775 ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char*)data); 05776 res = 0; 05777 break; 05778 } 05779 if (ast_test_flag(&flags, BACKGROUND_PLAYBACK)) { 05780 res = ast_waitstream(chan, ""); 05781 } else if (ast_test_flag(&flags, BACKGROUND_MATCHEXTEN)) { 05782 res = ast_waitstream_exten(chan, args.context); 05783 } else { 05784 res = ast_waitstream(chan, AST_DIGIT_ANY); 05785 } 05786 ast_stopstream(chan); 05787 } 05788 } 05789 05790 /* 05791 * If the single digit DTMF is an extension in the specified context, then 05792 * go there and signal no DTMF. Otherwise, we should exit with that DTMF. 05793 * If we're in Macro, we'll exit and seek that DTMF as the beginning of an 05794 * extension in the Macro's calling context. If we're not in Macro, then 05795 * we'll simply seek that extension in the calling context. Previously, 05796 * someone complained about the behavior as it related to the interior of a 05797 * Gosub routine, and the fix (#14011) inadvertently broke FreePBX 05798 * (#14940). This change should fix both of these situations, but with the 05799 * possible incompatibility that if a single digit extension does not exist 05800 * (but a longer extension COULD have matched), it would have previously 05801 * gone immediately to the "i" extension, but will now need to wait for a 05802 * timeout. 05803 */ 05804 if ((exten[0] = res) && !ast_matchmore_extension(chan, args.context, exten, 1, chan->cid.cid_num)) { 05805 snprintf(chan->exten, sizeof(chan->exten), "%c", res); 05806 ast_copy_string(chan->context, args.context, sizeof(chan->context)); 05807 chan->priority = 0; 05808 res = 0; 05809 } 05810 return res; 05811 }
static int pbx_builtin_busy | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5460 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().
05461 { 05462 ast_indicate(chan, AST_CONTROL_BUSY); 05463 /* Don't change state of an UP channel, just indicate 05464 busy in audio */ 05465 if (chan->_state != AST_STATE_UP) { 05466 ast_setstate(chan, AST_STATE_BUSY); 05467 ast_cdr_busy(chan->cdr); 05468 } 05469 wait_for_hangup(chan, data); 05470 return -1; 05471 }
static int pbx_builtin_congestion | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5476 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().
05477 { 05478 ast_indicate(chan, AST_CONTROL_CONGESTION); 05479 /* Don't change state of an UP channel, just indicate 05480 congestion in audio */ 05481 if (chan->_state != AST_STATE_UP) 05482 ast_setstate(chan, AST_STATE_BUSY); 05483 wait_for_hangup(chan, data); 05484 return -1; 05485 }
static int pbx_builtin_execiftime | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5603 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.
05604 { 05605 char *s, *appname; 05606 struct ast_timing timing; 05607 struct ast_app *app; 05608 static const char *usage = "ExecIfTime requires an argument:\n <time range>|<days of week>|<days of month>|<months>?<appname>[|<appargs>]"; 05609 05610 if (ast_strlen_zero(data)) { 05611 ast_log(LOG_WARNING, "%s\n", usage); 05612 return -1; 05613 } 05614 05615 appname = ast_strdupa(data); 05616 05617 s = strsep(&appname,"?"); /* Separate the timerange and application name/data */ 05618 if (!appname) { /* missing application */ 05619 ast_log(LOG_WARNING, "%s\n", usage); 05620 return -1; 05621 } 05622 05623 if (!ast_build_timing(&timing, s)) { 05624 ast_log(LOG_WARNING, "Invalid Time Spec: %s\nCorrect usage: %s\n", s, usage); 05625 return -1; 05626 } 05627 05628 if (!ast_check_timing(&timing)) /* outside the valid time window, just return */ 05629 return 0; 05630 05631 /* now split appname|appargs */ 05632 if ((s = strchr(appname, '|'))) 05633 *s++ = '\0'; 05634 05635 if ((app = pbx_findapp(appname))) { 05636 return pbx_exec(chan, app, S_OR(s, "")); 05637 } else { 05638 ast_log(LOG_WARNING, "Cannot locate application %s\n", appname); 05639 return -1; 05640 } 05641 }
static int pbx_builtin_goto | ( | struct ast_channel * | chan, | |
void * | data | |||
) | [static] |
Goto
Definition at line 5816 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().
05817 { 05818 int res = ast_parseable_goto(chan, data); 05819 if (!res && (option_verbose > 2)) 05820 ast_verbose( VERBOSE_PREFIX_3 "Goto (%s,%s,%d)\n", chan->context,chan->exten, chan->priority+1); 05821 return res; 05822 }
static int pbx_builtin_gotoiftime | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5577 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.
05578 { 05579 int res=0; 05580 char *s, *ts; 05581 struct ast_timing timing; 05582 05583 if (ast_strlen_zero(data)) { 05584 ast_log(LOG_WARNING, "GotoIfTime requires an argument:\n <time range>|<days of week>|<days of month>|<months>?[[context|]extension|]priority\n"); 05585 return -1; 05586 } 05587 05588 ts = s = ast_strdupa(data); 05589 05590 /* Separate the Goto path */ 05591 strsep(&ts,"?"); 05592 05593 /* struct ast_include include contained garbage here, fixed by zeroing it on get_timerange */ 05594 if (ast_build_timing(&timing, s) && ast_check_timing(&timing)) 05595 res = pbx_builtin_goto(chan, ts); 05596 05597 return res; 05598 }
static int pbx_builtin_hangup | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5547 of file pbx.c.
References AST_CAUSE_NORMAL_CLEARING, ast_log(), ast_str2cause(), ast_strlen_zero(), ast_channel::hangupcause, and LOG_NOTICE.
05548 { 05549 if (!ast_strlen_zero(data)) { 05550 int cause; 05551 char *endptr; 05552 05553 if ((cause = ast_str2cause(data)) > -1) { 05554 chan->hangupcause = cause; 05555 return -1; 05556 } 05557 05558 cause = strtol((const char *) data, &endptr, 10); 05559 if (cause != 0 || (data != endptr)) { 05560 chan->hangupcause = cause; 05561 return -1; 05562 } 05563 05564 ast_log(LOG_NOTICE, "Invalid cause given to Hangup(): \"%s\"\n", (char *) data); 05565 } 05566 05567 if (!chan->hangupcause) { 05568 chan->hangupcause = AST_CAUSE_NORMAL_CLEARING; 05569 } 05570 05571 return -1; 05572 }
static int pbx_builtin_progress | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5442 of file pbx.c.
References AST_CONTROL_PROGRESS, and ast_indicate().
05443 { 05444 ast_indicate(chan, AST_CONTROL_PROGRESS); 05445 return 0; 05446 }
static int pbx_builtin_resetcdr | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5519 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.
05520 { 05521 char *args; 05522 struct ast_flags flags = { 0 }; 05523 05524 if (!ast_strlen_zero(data)) { 05525 args = ast_strdupa(data); 05526 ast_app_parse_options(resetcdr_opts, &flags, NULL, args); 05527 } 05528 05529 ast_cdr_reset(chan->cdr, &flags); 05530 05531 return 0; 05532 }
static int pbx_builtin_ringing | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5451 of file pbx.c.
References AST_CONTROL_RINGING, and ast_indicate().
05452 { 05453 ast_indicate(chan, AST_CONTROL_RINGING); 05454 return 0; 05455 }
static int pbx_builtin_setamaflags | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5537 of file pbx.c.
References ast_cdr_setamaflags().
05538 { 05539 /* Copy the AMA Flags as specified */ 05540 ast_cdr_setamaflags(chan, data ? data : ""); 05541 return 0; 05542 }
static int pbx_builtin_wait | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5646 of file pbx.c.
References ast_safe_sleep(), and s.
05647 { 05648 double s; 05649 int ms; 05650 05651 /* Wait for "n" seconds */ 05652 if (data && (s = atof(data)) > 0) { 05653 ms = s * 1000.0; 05654 return ast_safe_sleep(chan, ms); 05655 } 05656 return 0; 05657 }
static int pbx_builtin_waitexten | ( | struct ast_channel * | , | |
void * | ||||
) | [static] |
Definition at line 5662 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.
05663 { 05664 int ms, res; 05665 double sec; 05666 struct ast_flags flags = {0}; 05667 char *opts[1] = { NULL }; 05668 char *parse; 05669 AST_DECLARE_APP_ARGS(args, 05670 AST_APP_ARG(timeout); 05671 AST_APP_ARG(options); 05672 ); 05673 05674 if (!ast_strlen_zero(data)) { 05675 parse = ast_strdupa(data); 05676 AST_STANDARD_APP_ARGS(args, parse); 05677 } else 05678 memset(&args, 0, sizeof(args)); 05679 05680 if (args.options) 05681 ast_app_parse_options(waitexten_opts, &flags, opts, args.options); 05682 05683 if (ast_test_flag(&flags, WAITEXTEN_MOH) && !opts[0] ) { 05684 ast_log(LOG_WARNING, "The 'm' option has been specified for WaitExten without a class.\n"); 05685 } else if (ast_test_flag(&flags, WAITEXTEN_MOH)) 05686 ast_indicate_data(chan, AST_CONTROL_HOLD, opts[0], strlen(opts[0])); 05687 05688 /* Wait for "n" seconds */ 05689 if (args.timeout && (sec = atof(args.timeout)) > 0.0) 05690 ms = 1000 * sec; 05691 else if (chan->pbx) 05692 ms = chan->pbx->rtimeout * 1000; 05693 else 05694 ms = 10000; 05695 res = ast_waitfordigit(chan, ms); 05696 if (!res) { 05697 if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 1, chan->cid.cid_num)) { 05698 if (option_verbose > 2) 05699 ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, continuing...\n", chan->name); 05700 } else if (chan->_softhangup == AST_SOFTHANGUP_TIMEOUT) { 05701 if (option_verbose > 2) 05702 ast_verbose(VERBOSE_PREFIX_3 "Call timeout on %s, checking for 'T'\n", chan->name); 05703 res = -1; 05704 } else if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) { 05705 if (option_verbose > 2) 05706 ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, going to 't'\n", chan->name); 05707 set_ext_pri(chan, "t", 0); /* 0 will become 1, next time through the loop */ 05708 } else { 05709 ast_log(LOG_WARNING, "Timeout but no rule 't' in context '%s'\n", chan->context); 05710 res = -1; 05711 } 05712 } 05713 05714 if (ast_test_flag(&flags, WAITEXTEN_MOH)) 05715 ast_indicate(chan, AST_CONTROL_UNHOLD); 05716 05717 return res; 05718 }