Jump to content
Калькуляторы

Как организовать SIP trunk с внешним оператором

Вообщем, задача такая, сделать SIP trunk через Интернет.

 

В наличии Cisco AS5400XM.

На as5400xm настроен h323 транк с софтсвичом (Huawei SoftX) по VRF'у.

Конфиг:

voice vrf NGN
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
sip
 bind control source-interface GigabitEthernet0/0
 bind media source-interface GigabitEthernet0/0
interface GigabitEthernet0/0
ip vrf forwarding NGN
ip address 1.1.1.1 255.255.255.240
ip access-group VOIP in
duplex auto
speed auto
negotiation auto
h323-gateway voip interface
interface GigabitEthernet0/1
ip address xx.xx.xx.241 255.255.255.240
duplex auto
speed auto
negotiation auto

dial-peer voice 100 voip
destination-pattern 112
rtp payload-type cisco-codec-fax-ack 124
rtp payload-type nte 97
voice-class media 199
session protocol sipv2
session target ipv4:1.1.1.2
dtmf-relay rtp-nte
codec g711ulaw

 

Сейчас настроен SIP транк внутри того же VRF'a до астериска, голос ходит, конвертация SIP->h323 - проходит, т.е. с софтсвича по h323 звонок уходит на астериск по сипу и обратно.

 

Теперь надо сделать тоже самое только для внешнего астериска, внешний интерфейс - GigabitEthernet0/1, с внешним ип адресом.

 

 

Немного сумбурно описал, так что сорри.

Edited by Macro

Share this post


Link to post
Share on other sites

В конфиге меняю

voice service voip
sip
 bind control source-interface GigabitEthernet0/1
 bind media source-interface GigabitEthernet0/1

dial-peer voice 100 voip
session target ipv4:xx.xx.xx.242

 

Звонок не идет на внешний астериск.

Share this post


Link to post
Share on other sites

В конфиге меняю

voice service voip
sip
 bind control source-interface GigabitEthernet0/1
 bind media source-interface GigabitEthernet0/1

dial-peer voice 100 voip
session target ipv4:xx.xx.xx.242

 

Звонок не идет на внешний астериск.

Наверное нужен sip-ua

тогда и session target будет sip-server, а не ipv4:xx.xx.xx.242

Edited by sunrise333

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.