Asterisk Zadarma.


Asterisk

- , . : 1234567 - SIP - , , ****** - 321 - . , () SIP - zadarma-trunk.

sip.conf :

[general]
srvlookup=yes

[zadarma-trunk]
host=sip.zadarma.com
insecure=invite,port
type=friend
fromdomain=sip.zadarma.com
disallow=allallow=alaw&ulaw
dtmfmode=autosecret=password
defaultuser=1234567
trunkname=zadarma-trunk
fromuser=1234567
callbackextension=zadarma-trunk
context=zadarma-in
qualify=400
directmedia=no

[321]
secret=password
host=dynamic
type=friend
context=zadarma-out

extensions.conf :

[zadarma-in]
exten => 1234567,1, Dial(SIP/321)

[zadarma-out]
exten => _XXX,1,Dial(SIP/${EXTEN})
exten => _XXX.,1,Dial(SIP/${EXTEN}@zadarma-trunk)
[zadarma-in] 321, [zadarma-out] : 3 , , , 4 - zadarma-trunk.

, , IP-, , SIP URI. , 12039485767 - DID Zadarma, 200.132.13.43 - Asterisk. - DID (SIP URI) 12039485767@200.132.13.43 sip.conf :

[zadarma]
host=sipde.zadarma.com
type=friend
insecure=port,invite
context=zadarma-in
disallow=all
allow=alaw&ulaw
dtmfmode = auto
directmedia=no

[zadarma2]
host=siplv.zadarma.com
type=friend
insecure=port,invite
context=zadarma-in
disallow=all
allow=alaw&ulaw
dtmfmode = auto
directmedia=no

[zadarma3]
host=sipfr.zadarma.com
type=friend
insecure=port,invite
context=zadarma-in
disallow=all
allow=alaw&ulaw
dtmfmode = auto
directmedia=no

extensions.conf

[zadarma-in]
extended => 12039485767,1,Dial(SIP/321)

FreePBX 13 .


FreePBX

, SRV Lookup. SettingsAsterisk SIP Settings → Chan SIP Settings Enable SRV Lookup Yes.

ConnectivityTrunks. + Add Trunk chan_sip

+ Add Trunk FreePBX 13

Zadarma_test

 SIP    Zadarma FreePBX 13

sip Settings ( Outgoing Incoming)

  Outgoing  Zadarma FreePBX 13   Incoming  Zadarma FreePBX 13

, SIP - :

host=sip.zadarma.com
insecure=invite,port
type=friend
fromdomain=sip.zadarma.com
disallow=all
allow=alaw&ulaw
dtmfmode=auto
secret=******
defaultuser=1234567
fromuser=1234567
qualify=400
directmedia=no
1234567:******@sip.zadarma.com/1234567

Submit Apply Config.


ConnectivityInbound Routes ( + Add Inbound Route), .

     FreePBX 13

Submit : ConnectivityOutbound Route, , CID (, .)

     FreePBX 13

Dial Patterns .

    FreePBX 13

Submit Apply Config. .


?

 .

P.S. , :)

"",