Asterisk-pjsip.conf: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
(Created page with "== Overview == Asterisk 의 pjsip 모듈 설정파일 pjsip.conf 내용 정리. == Basic == <pre> ; Overview of Configuration Section Types Used in the Examples ; ; * Transpo...")
 
No edit summary
Line 24: Line 24:
;  * Contains information needed by res_phoneprov for autoprovisioning
;  * Contains information needed by res_phoneprov for autoprovisioning
</pre>
</pre>
=== ENDPOINT ===
=== TRANSPORT ===
TCP, UDP 혹은 WebSocket 과 같은 프로토콜이나 TLS/SSL 과 같은 암호화를 설정한다.
==== Example ====
A basic UDP transport bound to all interface.
<pre>
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
</pre>
TLS support, with many possible options and parameters.
<pre>
[simpletrans]
type=transport
protocol=tls
bind=0.0.0.0
;various TLS specific options below:
cert_file=
priv_key_file=
ca_list_file=
cipher=
method=
</pre>
=== AUTH ===
접속 인증 설정.
==== Example ====
An example with username and password authentication.
<pre>
[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001
</pre>
MD5 authentication
<pre>
[auth6001]
type=auth
auth_type=md5
md5_cred=51e63a3da6425a39aecc045ec45f1ae8
username=6001
</pre>
== See also ==
* https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Sections+and+Relationships


[[category:asterisk]]
[[category:asterisk]]

Revision as of 13:02, 25 October 2017

Overview

Asterisk 의 pjsip 모듈 설정파일 pjsip.conf 내용 정리.

Basic

; Overview of Configuration Section Types Used in the Examples
;
; * Transport "transport"
;   * Configures res_pjsip transport layer interaction.
; * Endpoint "endpoint"
;   * Configures core SIP functionality related to SIP endpoints.
; * Authentication "auth"
;   * Stores inbound or outbound authentication credentials for use by trunks,
;     endpoints, registrations.
; * Address of Record "aor"
;   * Stores contact information for use by endpoints.
; * Endpoint Identification "identify"
;   * Maps a host directly to an endpoint
; * Access Control List "acl"
;   * Defines a permission list or references one stored in acl.conf
; * Registration "registration"
;   * Contains information about an outbound SIP registration
; * Phone Provisioning "phoneprov"
;   * Contains information needed by res_phoneprov for autoprovisioning

ENDPOINT

TRANSPORT

TCP, UDP 혹은 WebSocket 과 같은 프로토콜이나 TLS/SSL 과 같은 암호화를 설정한다.

Example

A basic UDP transport bound to all interface.

[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0

TLS support, with many possible options and parameters.

[simpletrans]
type=transport
protocol=tls
bind=0.0.0.0
;various TLS specific options below:
cert_file=
priv_key_file=
ca_list_file=
cipher=
method=

AUTH

접속 인증 설정.

Example

An example with username and password authentication.

[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001

MD5 authentication

[auth6001]
type=auth
auth_type=md5
md5_cred=51e63a3da6425a39aecc045ec45f1ae8
username=6001

See also