Freeswitch-directory XML

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

Freeswitch Directory XML 내용 정리

Basic User

Directory XML 의 기본 설정은 매우 간단하다. username 과 password 만 입력하면 된다.

예제로 $FS_ROOT/conf/directory/mike_x2239.xml 파일에 다음과 같이 설정되어 있다고 가정해보자. <source lang=xml> <domain name="$${sip_profile}">

 <user id="mike">
   <params>
     <param name="password" value="micke"/>
   </params>
 </user>

</domain> </source> domain 태그는 해당 user 가 어느 domain 에 속해있는지를 알려준다. 한가지 주의해야 할 점은 다중 도메인 기능을 사용하지 않는 한, 모든 user 는 모두 같은 domain tag 에 속해있어야 한다는 것이다. username 은 이후 sip address 에서 @ 의 왼쪽부분에 입력되게 된다. 위의 예제에서는 "mike@sub.mydomain.com" 과 같이 된다. 정확히는 아래의 표현 따른다.

$${username}@$${sip_profile}