first commit
This commit is contained in:
34
asterisk/templates/pjsip-trunk.conf.template
Normal file
34
asterisk/templates/pjsip-trunk.conf.template
Normal file
@@ -0,0 +1,34 @@
|
||||
[${TRUNK_NAME}-reg]
|
||||
type=registration
|
||||
transport=transport-udp
|
||||
outbound_auth=${TRUNK_NAME}-auth
|
||||
server_uri=sip:${TRUNK_HOST}
|
||||
client_uri=sip:${TRUNK_USERNAME}@${TRUNK_HOST}
|
||||
retry_interval=60
|
||||
expiration=3600
|
||||
|
||||
[${TRUNK_NAME}-auth]
|
||||
type=auth
|
||||
auth_type=userpass
|
||||
username=${TRUNK_USERNAME}
|
||||
password=${TRUNK_PASSWORD}
|
||||
|
||||
[${TRUNK_NAME}]
|
||||
type=aor
|
||||
contact=sip:${TRUNK_HOST}
|
||||
qualify_frequency=60
|
||||
|
||||
[${TRUNK_NAME}]
|
||||
type=endpoint
|
||||
context=from-trunk
|
||||
transport=transport-udp
|
||||
disallow=all
|
||||
allow=ulaw,alaw
|
||||
outbound_auth=${TRUNK_NAME}-auth
|
||||
aors=${TRUNK_NAME}
|
||||
|
||||
; --- اضافه کردن این بخش ---
|
||||
[${TRUNK_NAME}-identify]
|
||||
type=identify
|
||||
endpoint=${TRUNK_NAME}
|
||||
match=${TRUNK_HOST}
|
||||
Reference in New Issue
Block a user