Подключение к провайдеру описано такими строками:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip.conf
Код: Выделить всё
register => +375XXXXXXXXX@ims.beltel.by:YYYYYYY:"+375XXXXXXXXX@ims.beltel.by"@sip.lan/+375XXXXXXXXXX~3600
[out-XXXXXX]
type=peer
insecure=invite,port
context=from-trunk
fromdomain=ims.beltel.by
host=sip.lan
qualify=3600
dtmfmode=inband
disallow=all
allow=g729
allow=alaw
canreinvite=no
transport=udp
defaultuser=+375XXXXXXXXX@ims.beltel.by
fromuser=+375XXXXXXXXXX
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: pjsip_wizard.conf
Код: Выделить всё
[ims](!)
type=wizard
sends_registrations=yes
sends_auth=yes
remote_hosts=sip.lan
transport=udp-transport
aor/qualify_frequency=120
aor/max_contacts=3
outbound_auth/auth_type=userpass
endpoint/disallow=all
endpoint/allow=g729,alaw
endpoint/dtmf_mode=rfc4733
endpoint/context=from-trunk
endpoint/direct_media=no
endpoint/from_domain=ims.beltel.by
registration/retry_interval=60
registration/expiration=3600
[XXXXXX](ims)
endpoint/from_user=+375XXXXXXXXX
outbound_auth/username=+375XXXXXXXXX
outbound_auth/password=YYYYYYY
inbound_auth/username="+375XXXXXXXXX@ims.beltel.by"
inbound_auth/password=YYYYYYY
registration/client_uri=sip:+375XXXXXXXXX@ims.beltel.by
registration/server_uri=sip:+375XXXXXXXXX@ims.beltel.by
registration/contact_user=+375XXXXXXXXX