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

pchero on April 8th, 2014

Freeswtich 설치 이후, 테스트를 진행하는데 SIP 클라이언트 접속이 안되는 문제가 발생했다. telnet/netstat 으로 확인해보니 포트가 안뚫려있었다. Freeswitch listen IP가 localhost 로만 설정되어 있는 상황. 따라서, Freeswitch Server Ip 설정을 변경해주니 잘 작동하였다. /usr/local/freeswitch/conf/vars.xml 파일 내용에서 다음 부분을 수정해주었다.(local_ip_v4 항목을 추가) <X-PRE-PROCESS cmd=”set” data=”sound_prefix=$${sounds_dir}/en/us/callie”/> <!– This setting is what sets the default domain FreeSWITCH will use […]

Continue reading about [Freeswitch] How to change Freeswitch ip address