This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sipnet [2013/02/05 16:47] val |
sipnet [2025/07/08 14:06] (current) val [CHAN_SIP] |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Проверенная конфигурация ===== | ===== Проверенная конфигурация ===== | ||
| + | |||
| + | ==== CHAN_SIP ==== | ||
| <code> | <code> | ||
| server# cat sip.conf | server# cat sip.conf | ||
| Line 15: | Line 17: | ||
| allow=alaw | allow=alaw | ||
| ... | ... | ||
| - | [sipnet] | + | [sipnet_SIPID] |
| type=peer | type=peer | ||
| secret=SIPPASSWORD | secret=SIPPASSWORD | ||
| Line 23: | Line 25: | ||
| host=sipnet.ru | host=sipnet.ru | ||
| callbackextension=sipnet_SIPID | callbackextension=sipnet_SIPID | ||
| - | |||
| - | [sipnet] | ||
| - | type=user | ||
| insecure=invite | insecure=invite | ||
| context=incoming | context=incoming | ||
| nat=no | nat=no | ||
| directmedia=no | directmedia=no | ||
| + | qualify=yes | ||
| + | </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=10 | ||
| + | expiration=10 | ||
| + | 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> | ||