akug seminar2 asterisk_recipse1_r3_byxeny

Post on 05-Dec-2014

917 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Asterisk 1.8 Recipes part 1 that is Korean version tutorial of Asterisk Cookbook.

TRANSCRIPT

Asterisk 1.8 Recipes

비법 그 첫 번째

맛있는! Dialplan Fundamentals

AKUG 세미나 제 2회

2011-05-28

개정일자 : 2011-05-31

Agenda

Counting and Conditionals

Looping in the Dialplan

Controlling Calls based on Date and Time

Authenticating Callers

Debugging the Dialplan with Verbose()

Next Recipes?

Thanks to

Counting and Conditionals

Counting and Conditionalsusing INC() and DEC()

Counting and Conditionalsusing RAND() and IF()

Looping in the Dialplanusing While() and GotoIf()

Looping in the Dialplanwith CUT()

CUT()이 뭐냐구요?구획문자를 기준으로 문자열을분할하여 변수에 담습니다.범위는 분할 횟수입니다.

형식: CUT(변수,구획문자,범위)

Controlling Calls based on

Date and Time

Authenticating Callersusing Authentication()

Authenticating Callersusing File and Asterisk DB

파일에 비밀번호 리스트를 작성하세요!

Authenticating Callersusing Voicemail Credentials

Authenticating Callersusing Voicemail Credentials

Authenticating Callersusing Read()

Authenticating Callersusing Read()

Debugging the Dialplanwith Verbose()

[로그] 컨텍스트는 전체, 채널 또는 디바이스 단위로 메시지 출력하는 역할을 합니다.[로그테스트-1] 컨텍스트는 [로그] 컨텍스트를사용해 로그를 출력합니다. 디버깅을 통해 동작원리를 확실하게 파악하시기 바랍니다. 로깅과모니터링을 위한 다른 방법들로는, logger.conf설정을 이용하거나 CEL(Channel Event Loggin) 등이 있습니다.

Debugging the Dialplanwith Verbose()

앞 예제와 다른 점을 찾아볼까요?Macro의 기능을 사용하여 좀 더 단순화 시킨 예제입니다. [로그테스트-2] 컨텍스트를 보니 인자의 개수가 줄었군요. 더 보기 좋게 하려면, Asterisk Plug-in 형태로 로그()라는 Function을 만들어야 할 것 같습니다. (Asterisk Recipes 강좌가끝나면 함께 작성해볼까요? ^^)

Next Recipes?

Thanks to

top related