CTI

pchero on May 2nd, 2014

Freeswitch 에서 사용하는 Module On/Off 를 설정하는 파일. fs_cli 로 접속하여 load 명령어로도 On/Off 가 가능하지만, Freeswitch 재 시작 후, 매번 load 명령어를 날려줘야만 하는 불편함이 있다. 이럴 경우, modules.conf.xml 파일에 Freeswitch 시작시 자동 load module을 설정해 놓으면 편리하다. pchero@MyDebian:/usr/local/freeswitch/conf/autoload_configs$ cat modules.conf.xml <configuration name=”modules.conf” description=”Modules”> <modules> <!– Loggers (I’d load these first) –> <load module=”mod_console”/> […]

Continue reading about [Freeswitch] modules.conf.xml

pchero on May 2nd, 2014

Freeswitch에서 asterisk -r 과 같은 Command line interpreter 역할을 하는 것이 fs_cli  이다. 기본적으로 Freeswitch 를 설치하게 되면 fs_cli 도 같이 사용할 수 있도록 설정되어 있다. 그러나, 보안상의 이유로 이 기능을 On/Off 해야 하는 경우가 생긴다. 이 경우, Freeswitch Server 에서 fs_cli 지원 모듈을 On/Off 해주면 된다. modules.conf.xml 파일에서 mod_event_socket 모듈을 load/unload 하게 되면 fs_cli […]

Continue reading about [Freeswitch] fs_cli/event_socket.conf.xml

pchero on May 1st, 2014

Asterisk Test Server 를 구축해 놓고, 정상적으로 포트가 열렸는지(방화벽..)를 확인하는 작업을 진행하고 있었다. 이상하게.. 어디에 문제가 있는 정확히는 알 수는 없었지만 정상적인 작동이 되지 않았다. 방화벽 문제로 판단을 하고 하나씩 하나씩 iptables 옵션을 확인해가며 방화벽들을 내리고 있었다.   하나씩 방화벽을 내릴 때마다 정상적으로 작동이 되는지(즉, 해당 포트로 Ping 이 나가는지)를 확인하기 위해 한번씩 telnet 을 […]

Continue reading about [Asterisk] Checking available SIP port.

pchero on April 11th, 2014

Using Variables in Asterisk Dialplans Asterisk 에서 Dialplan 작성시, 내부 변수를 목적에 따라 Global, Shared, Chanel-specific 변수로 구분해서 사용할 수 있다. 공통적으로 변수를 사용할 때 다음과 같은 방식으로 사용할 수 있다. ${foo:offset:length} foo 는 변수의 이름이고, offset 은 변수의 내용 중 참조하고자 하는 시작 위치, length 는 offset 으로부터 참조하고자 하는 변수 내용의 길이이다. 변수 […]

Continue reading about [Asterisk] Variables in Asterisk

pchero on April 11th, 2014

Basic Expressions Asterisk 에서 모든 표현식(수식)은 $ [ ] 로 표시된다. $[expression] 그리고 다음과 같이 사용할 수 있다. $[${COUNT} + 1]$[${COUNT} / 2] Asterisk Dialplan 내에서 표현식이 있다면 해당 구문은 먼저 모든 표현식이 계산된 이후에 진행된다. 다음의 예제를 생각해보자. exten => 204,1,Noop() same => n,Answer() same => n,Set(COUNT=3) same => n,Set(NEWCOUNT=$[${COUNT} + 1]) same => […]

Continue reading about [Asterisk] Advanced Dialplan