Addpac
| Код: |
| ! GSM voice-port 0/0 connection plar 777 ring detect-timeout 70 caller-id enable caller-id type etsi caller-id name disable ! GSM voice-port 0/1 connection plar 777 ring detect-timeout 70 caller-id enable caller-id type etsi caller-id name disable ! GSM voice-port 0/2 connection plar 777 ring detect-timeout 70 caller-id enable caller-id type etsi caller-id name disable ! GSM voice-port 0/3 connection plar 777 ring detect-timeout 70 caller-id enable caller-id type etsi caller-id name disable dial-peer voice 1000 pots destination-pattern T port 0/0 ! dial-peer voice 1001 pots destination-pattern T port 0/1 ! dial-peer voice 1002 pots destination-pattern T port 0/2 user-password sippass ! dial-peer voice 1003 pots destination-pattern T port 0/2 user-password sippass dial-peer voice 100 voip destination-pattern T session target sip-server session protocol sip voice-class codec 0 no vad dtmf-relay rtp-2833 voice class codec 0 codec preference 1 g711alaw codec preference 2 g711ulaw codec preference 3 g729 sip-ua user-register sip-username addpac1 sip-password sippass sip-server 192.168.100.20 called-party-number to-field session-refresh update register e164 |
sip.conf
| Код: |
| [addpac1] type=friend host=dynamic canreinvite=yes dtmfmode=rfc2833 context=mycntx password=sippass insecure=invite disallow=all allow=alaw allow=ulaw allow=g729 deny=0.0.0.0/0.0.0.0 permit=192.168.100.10/255.255.255.255 [addpac2] type=friend host=dynamic canreinvite=no dtmfmode=rfc2833 context=mycntx password=sippass disallow=all allow=alaw allow=ulaw allow=g729 deny=0.0.0.0/0.0.0.0 permit=192.168.100.10/255.255.255.255 |
Added after 1 hours 6 minutes:
Короче выкрутился по другому, сделал один контекст, и на шлюзе настроил маршрутизацию, но если вдруг кто-то скажет как это сделать с двумя и более контекстами, буду благодарен!
а addpac это очень не любит, он начинает звонки гонять внутри себя
вам надо через translation-rule разрулить звонки
http://awsswa.livejournal.com/14668.html в низу