Alex Kuklin (alexkuklin) wrote,
Alex Kuklin
alexkuklin

мультифон, asterisk и исходящие звонки

докрутил до рабочего состояния


sip.conf:

[general]
register => tcp://792xxxxxxxx@multifon.ru:xxxxxxx:7926xxxxxxx@sbc.megafon.ru/7926xxxxxxx
register => tcp://792yyyyyyyy@multifon.ru:yyyyyyy:7926yyyyyyy@sbc.megafon.ru/7926yyyyyyy

[mxxxxxxx]
type=peer
host=sbc.megafon.ru
username=7926xxxxxxx
secret=xxxxxxxx
insecure=invite,port
fromdomain=multifon.ru
fromuser=7926xxxxxxx
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
nat=never
dtmfmode=inband
context=default

[myyyyyyyy]
type=peer
host=sbc.megafon.ru
username=7926yyyyyyy
secret=yyyyyyyy
insecure=invite,port
fromdomain=multifon.ru
fromuser=7926yyyyyyy
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
nat=never
dtmfmode=inband
context=default

extensions.conf:

[out-xxxxxxx]
exten => _+7XXXXXXXXXX,1,Dial(SIP/${EXTEN}@mxxxxxxx,,rT)
exten => _8XXXXXXXXXX,1,Dial(SIP/+7${EXTEN:1}@mxxxxxxx,,rT)
exten => _XXXXXXXXXX,1,Dial(SIP/+7${EXTEN:1}@mxxxxxx,,rT)

[out-yyyyyyy]
exten => _+7XXXXXXXXXX,1,Dial(SIP/${EXTEN}@myyyyyyy,,rT)
exten => _8XXXXXXXXXX,1,Dial(SIP/+7${EXTEN:1}@myyyyyyy,,rT)
exten => _XXXXXXXXXX,1,Dial(SIP/+7${EXTEN:1}@myyyyyyy,,rT)
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 14 comments