This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
sipnet [2012/12/20 14:40] val создано |
sipnet [2018/06/29 08:07] val [PJSIP] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SIPNET ====== | ====== SIPNET ====== | ||
+ | [[http://www.sipnet.ru/]] | ||
+ | |||
+ | ===== Пример настроек для Asterisk ===== | ||
[[http://wiki.sipnet.ru/index.php/Пример_настроек_для_Asterisk_1.6]] | [[http://wiki.sipnet.ru/index.php/Пример_настроек_для_Asterisk_1.6]] | ||
+ | ===== Проверенная конфигурация ===== | ||
+ | |||
+ | ==== CHAN_SIP ==== | ||
<code> | <code> | ||
server# cat sip.conf | server# cat sip.conf | ||
Line 11: | Line 17: | ||
allow=alaw | allow=alaw | ||
... | ... | ||
- | [sipnet] | + | [sipnet_SIPID] |
type=peer | type=peer | ||
secret=SIPPASSWORD | secret=SIPPASSWORD | ||
Line 18: | Line 24: | ||
fromdomain=sipnet.ru | fromdomain=sipnet.ru | ||
host=sipnet.ru | host=sipnet.ru | ||
- | callbackextension=sipnet_0037235261 | + | callbackextension=sipnet_SIPID |
- | + | ||
- | [sipnet] | + | |
- | type=user | + | |
insecure=invite | insecure=invite | ||
context=incoming | context=incoming | ||
nat=no | nat=no | ||
directmedia=no | directmedia=no | ||
+ | </code> | ||
+ | |||
+ | ==== PJSIP ==== | ||
<code> | <code> | ||
+ | [udp-transport-1] | ||
+ | type=transport | ||
+ | protocol=udp | ||
+ | ;bind=0.0.0.0:5062 | ||
+ | |||
+ | [sipnet] | ||
+ | type=registration | ||
+ | transport=udp-transport-1 | ||
+ | outbound_auth=sipnet_auth | ||
+ | server_uri=sip:sipnet.ru | ||
+ | client_uri=sip:SIPID@sipnet.ru | ||
+ | retry_interval=60 | ||
+ | expiration=120 | ||
+ | contact_user=PHONE | ||
+ | |||
+ | [sipnet_auth] | ||
+ | type=auth | ||
+ | auth_type=userpass | ||
+ | password=XXXXXXXX | ||
+ | username=SIPID | ||
+ | |||
+ | [sipnet] | ||
+ | type=aor | ||
+ | contact=sip:sipnet.ru:5060 | ||
+ | |||
+ | [sipnet] | ||
+ | type=endpoint | ||
+ | transport=udp-transport-1 | ||
+ | context=default | ||
+ | disallow=all | ||
+ | allow=alaw | ||
+ | outbound_auth=sipnet_auth | ||
+ | aors=sipnet | ||
+ | from_user=SIPID | ||
+ | from_domain=sipnet.ru | ||
+ | direct_media=no | ||
+ | |||
+ | [sipnet] | ||
+ | type=identify | ||
+ | endpoint=sipnet | ||
+ | match=sipnet.ru | ||
+ | </code> |