This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sipnet [2013/08/02 08:29] val [Проверенная конфигурация] |
sipnet [2018/06/29 08:07] val [PJSIP] |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== Проверенная конфигурация ===== | ===== Проверенная конфигурация ===== | ||
+ | |||
+ | ==== CHAN_SIP ==== | ||
<code> | <code> | ||
server# cat sip.conf | server# cat sip.conf | ||
Line 27: | Line 29: | ||
nat=no | nat=no | ||
directmedia=no | directmedia=no | ||
+ | </code> | ||
+ | |||
+ | ==== PJSIP ==== | ||
+ | <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> | </code> |