1 | изначальная версия редактировать | |
Уважаемые гуру ip телефонии, не так давно начал изучать asterisk, пытаюсь заставить его выполнить внутренний звонок между абонентами но ничего не получается. Подскажите в какую сторону копать ?
Asterisk 11.5.0 Ubuntu 12.04.2 LTS
sip.conf
[general] nat=yes externip = xx.xx.xx.x fromdomain = xx.xxxxxxxxxxx.ru localnet = 192.168.X.0/255.255.255.0 qualify=yes
context=default ; Default context for incoming calls. Defaults to 'default' ;allowguest=no
; Allow or reject guest calls (default is yes) allowoverlap=no
; Disable overlap dialing support. (Default is yes) bindaddr=192.168.0.100 udpbindaddr=192.168.0.100 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all) tcpenable=yes ; Enable server for incoming TCP connections (default is no) tcpbindaddr=192.168.0.100
; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces) transport=udp ; Set the default transports. The order determines the primary default transport. srvlookup=yes
; Enable DNS SRV lookups on outbound calls tossip=cs3 ; Sets TOS for SIP packets. tosaudio=ef ; Sets TOS for RTP audio packets. defaultexpiry=360 ; Default length of incoming/outgoing registrationdisallow=all ; First disallow all codecs allow=alaw allow=g729 allow=723 allow=ulaw
; Allow codecs in order of preference language=ru ; Default language setting for all users/peers useragent=PBX-TEST
; Allows you to change the user agent string dtmfmode = rfc2833
; Set default dtmfmode for sending DTMF. Default: rfc2833 callevents=yes ; generate manager events when sip ua alwaysauthreject = yes ; When an incoming INVITE or REGISTER is to be rejected,rtptimeout=60 ; Terminate call if 60 seconds of no RTP or RTCP activity rtpholdtimeout=300
; Terminate call if 300 seconds of no RTP or RTCP activity rtpkeepalive=5
; Send keepalives in the RTP stream to keep NAT open [1001] host=dynamic context=default type=friend username=1001 nat=yes secret=secret1001 callerid=phone1 <1001> port=5060 insecure=invite[1002] host=dynamic context=default type=friend username=1002 nat=yes secret=secret1002 callerid=phone2 <1002> port=5060 insecure=invite
extensions.conf
[general] static=yes writeprotect=yes
[default] exten => 1001,1,Dial(SIP/1001) exten => 1002,1,Dial(SIP/1002)
Лог ASTERISK При попытке совершить звонок:
Running as user 'asterisk' Running under group 'asterisk' Connected to Asterisk 11.5.0 currently running on pbx (pid = 17967) [Aug 11 17:27:20] ERROR[17985][C-00000003]: rtpengine.c:259 astrtpinstancenew: No RTP engine was found. Do you have one loaded? [Aug 11 17:27:20] NOTICE[17985][C-00000003]: chansip.c:25282 handlerequest_invite: Failed to authenticate device "1002" <sip:1002@192.168.0.100>;tag=1665125730 pbx*CLI>
2 | No.2 Revision редактировать |
Уважаемые гуру ip телефонии, не так давно начал изучать asterisk, пытаюсь заставить его выполнить внутренний звонок между абонентами но ничего не получается. Подскажите в какую сторону копать ?
Asterisk 11.5.0 Ubuntu 12.04.2 LTS
sip.conf
[general] nat=yes externip disallow=all ; First
disallow all codecs allow=alaw
allow=g729 allow=723 allow=ulaw
; Allow codecs in order of preference
language=ru ;
Default language setting for all
users/peers useragent=PBX-TEST
; Allows you to change the user agent
string dtmfmode = rfc2833
; Set default dtmfmode for sending
DTMF. Default: rfc2833 callevents=yes
; generate manager events when sip ua
alwaysauthreject = yes ; When
an incoming INVITE or REGISTER is to
be rejected,
rtptimeout=60 ;
Terminate call if 60 seconds of no RTP
or RTCP activity rtpholdtimeout=300
; Terminate call if 300 seconds of no
RTP or RTCP activity rtpkeepalive=5
; Send keepalives in the RTP stream to
keep NAT open [1001] host=dynamic
context=default
extensions.conf
[general] static=yes Лог ASTERISK При попытке совершить звонок:
>
Running as user 'asterisk' Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.