Macro Posted October 5, 2012 (edited) Вообщем, задача такая, сделать 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 October 5, 2012 by Macro Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Macro Posted October 5, 2012 В конфиге меняю 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 Звонок не идет на внешний астериск. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
sunrise333 Posted October 10, 2012 (edited) В конфиге меняю 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 October 10, 2012 by sunrise333 Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
nonoma72 Posted October 10, 2012 а шлюз куда отправлен? не через нат идет случайно? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Macro Posted October 11, 2012 Вообщем отказался от vrf'a, прописал статик роуты на серые подсетки. теперь все ок. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...