RED5 + 3CX

anonymous

Well-Known Member
Регистрация
14 Янв 2008
Сообщения
19.170
Доброго время суток.

Задача такая, реализовать звонок в офис с сайта.

Имеется 3cx на 2008 r2 , Red5 + Red5Phone

вроде все настроил, но флекс клиент не хочет цеплятся к 3cx, может, кто подскажет куда копать или подскажет другое решение

вот лог red5:
65536
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271
360
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContex
t - Refreshing org.springframework.context.support.FileSystemXmlApplicationConte
xt@4310d0: startup date [Mon Jan 16 09:37:05 GMT+04:00 2012]; parent: Applicatio
nContext 'red5.common'
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFacto
ry - Pre-instantiating singletons in org.springframework.beans.factory.support.D
efaultListableBeanFactory@8aeed0: defining beans [global.clientRegistry,global.s
erviceInvoker,global.mappingStrategy,global.context,global.handler,global.scope,
red5.scopeResolver]; parent: org.springframework.beans.factory.support.DefaultLi
stableBeanFactory@1eb2c1b
[INFO] [main] org.apache.catalina.core.AprLifecycleListener - The APR based Apac
he Tomcat Native library which allows optimal performance in production environm
ents was not found on the java.library.path: C:PROGRA~2Javajre6bin;C:Window
sSunJavabin;C:Windowssystem32;C:Windows;C:Program FilesXugglebin;C:Win
dowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPow
erShellv1.0;C:Program Files (x86)3CX PhoneSystemBin;.
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apach
e.catalina.connector.Connector
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /127.0.0.1:
5080
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat context
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: C:/Program File
s/Red5
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: C:/Program File
s/Red5/conf
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: C:/Program
Files/Red5/webapps
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engi
ne
[INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine:
Apache Tomcat/6.0.24
Context init...
Logger name for context: sip
Context logger config file: logback-sip.xml
Adding logger context: sip to map for context: sip
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP
/1.1 on http-127.0.0.1-5080
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1
on http-127.0.0.1-5080
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT server confi
guration was not specified
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPS server confi
guration was not specified
Bootstrap complete
[INFO] [Launcher:/] org.springframework.beans.factory.config.PropertyPlaceholder
Configurer - Loading properties file from ServletContext resource [/WEB-INF/red5
-web.properties]
[INFO] [Launcher:/installer] org.springframework.beans.factory.config.PropertyPl
aceholderConfigurer - Loading properties file from ServletContext resource [/WEB
-INF/red5-web.properties]
[INFO] [Launcher:/sip] org.springframework.beans.factory.config.PropertyPlacehol
derConfigurer - Loading properties file from ServletContext resource [/WEB-INF/r
ed5-web.properties]
[INFO] [Launcher:/] org.springframework.beans.factory.support.DefaultListableBea
nFactory - Pre-instantiating singletons in org.springframework.beans.factory.sup
port.DefaultListableBeanFactory@17b1d64: defining beans [placeholderConfig,web.c
ontext,web.scope]; parent: org.springframework.beans.factory.support.DefaultList
ableBeanFactory@8aeed0
[INFO] [Launcher:/sip] org.springframework.beans.factory.support.DefaultListable
BeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.
support.DefaultListableBeanFactory@63b2e6: defining beans [placeholderConfig,web
.context,web.scope,web.handler]; parent: org.springframework.beans.factory.suppo
rt.DefaultListableBeanFactory@8aeed0
[INFO] [Launcher:/installer] org.springframework.beans.factory.support.DefaultLi
stableBeanFactory - Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@1554233: defining beans [placeholderCon
fig,web.context,web.scope,web.handler,installer.service]; parent: org.springfram
ework.beans.factory.support.DefaultListableBeanFactory@8aeed0
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer servi
ce created
Red5SIP starting in scope sip C:Program FilesRed5
Read config file: C:Program FilesRed5webappssipred5phone.xml
Alloc ports base: 5060 size: 1 step: 2
Alloc port number:5060
Alloc ports base: 3000 size: 50 step: 2
Alloc port number:3000
Alloc port number:3002
Alloc port number:3004
Alloc port number:3006
Alloc port number:3008
Alloc port number:3010
Alloc port number:3012
Alloc port number:3014
Alloc port number:3016
Alloc port number:3018
Alloc port number:3020
Alloc port number:3022
Alloc port number:3024
Alloc port number:3026
Alloc port number:3028
Alloc port number:3030
Alloc port number:3032
Alloc port number:3034
Alloc port number:3036
Alloc port number:3038
Alloc port number:3040
Alloc port number:3042
Alloc port number:3044
Alloc port number:3046
Alloc port number:3048
Alloc port number:3050
Alloc port number:3052
Alloc port number:3054
Alloc port number:3056
Alloc port number:3058
Alloc port number:3060
Alloc port number:3062
Alloc port number:3064
Alloc port number:3066
Alloc port number:3068
Alloc port number:3070
Alloc port number:3072
Alloc port number:3074
Alloc port number:3076
Alloc port number:3078
Alloc port number:3080
Alloc port number:3082
Alloc port number:3084
Alloc port number:3086
Alloc port number:3088
Alloc port number:3090
Alloc port number:3092
Alloc port number:3094
Alloc port number:3096
Alloc port number:3098
Start ports - sip: 5060 numPorts: 1 step: 2 - rtp: 3000 numPorts 50 step: 2
Red5Phone version 0.0.7
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [W
ebScope@6ef7ba Depth = 1, Path = '/default', Name = 'sip']
Red5SIP Client connected 0 service RTMPMinaConnection from 127.0.0.1 : 50743 to
(in: 3400 out 3073 )
Red5SIP Client joined app 0
Red5SIP open
Red5SIP login FF6209B0-D2C0-3B6F-4C86-E5052C1E1343
Alloc port number:5060
Alloc port number:3000
[SIPUser] Constructor: sip port 5060 rtp port:3000
Red5SIP open creating sipUser for 710 on sip port 5060 audio port 3000 uid FF620
9B0-D2C0-3B6F-4C86-E5052C1E1343
[SIPUser] login
SipUserAgent - initSessionDescriptor -> Init...
SdpUtils - createInitialSdp -> Init...
SdpUtils - createInitialSdp -> userName = [710], viaAddress = [192.168.1.1], aud
ioPort = [3000], videoPort = [21070], audioCodecsPrecedence = [18;111;8;0].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsPrecedence = [1
8;111;8;0], initIndex = [0], finalIndex = [2].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [18].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [18].
SIPCodecFactory - getSIPAudioCodec -> codecId = [18], codecName = [G729].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [18], codec
Name = [G729].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [1], in
itIndex = [3], finalIndex = [6].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [111].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [111].
SIPCodecFactory - getSIPAudioCodec -> codecId = [111], codecName = [ILBC].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [111], code
cName = [ILBC].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [2], in
itIndex = [7], finalIndex = [8].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [8].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [8].
SIPCodecFactory - getSIPAudioCodec -> codecId = [8], codecName = [PCMA].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [8], codecN
ame = [PCMA].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [3], in
itIndex = [9], finalIndex = [10].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [0].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [0].
SIPCodecFactory - getSIPAudioCodec -> codecId = [0], codecName = [PCMU].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [0], codecN
ame = [PCMU].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [4], in
itIndex = [11], finalIndex = [-1].
SdpUtils - createInitialSdp -> Adding rtpmap for payload [18] with value = [18 G
729/8000/1].
SdpUtils - createInitialSdp -> Adding 1 audio codec media attributes.
SdpUtils - createInitialSdp -> Adding audio media attribute [fmtp:18 annexb=no].

SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [fmtp:18 annexb=no].
SdpUtils - parseAttributeField -> attribName = [fmtp] attribValue = [18 annexb=
no].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> Adding rtpmap for payload [111] with value = [111
ILBC/8000/1].
SdpUtils - createInitialSdp -> Adding 1 audio codec media attributes.
SdpUtils - createInitialSdp -> Adding audio media attribute [fmtp:111 mode=30].
SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [fmtp:111 mode=30].
SdpUtils - parseAttributeField -> attribName = [fmtp] attribValue = [111 mode=3
0].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> Adding rtpmap for payload [8] with value = [8 PCM
A/8000/1].
SdpUtils - createInitialSdp -> Audio codec has no especific media attributes.
SdpUtils - createInitialSdp -> Adding rtpmap for payload [0] with value = [0 PCM
U/8000/1].
SdpUtils - createInitialSdp -> Audio codec has no especific media attributes.
SdpUtils - getFormatList -> Init...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], AttributeValue
= [18 G729/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], AttributeValue
= [18 G729/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 18
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], AttributeValue
= [111 ILBC/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], AttributeValue
= [111 ILBC/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 111
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], AttributeValue
= [8 PCMA/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], AttributeValue
= [8 PCMA/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 8
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], AttributeValue
= [0 PCMU/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], AttributeValue
= [0 PCMU/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 0
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getFormatList -> formatList = [18 111 8 0].
SdpUtils - getFormatList -> End...
SdpUtils - createInitialSdp -> Creating audio media descriptor.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Adding 1 common audio media attributes.
SdpUtils - createInitialSdp -> Adding common audio media attribute [ptime:20].
SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [ptime:20].
SdpUtils - parseAttributeField -> attribName = [ptime] attribValue = [20].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> End...
SipUserAgent - initSessionDescriptor -> localSession = v=0
o=710 0 0 IN IP4 192.168.1.1
s=Session SIP/SDP
c=IN IP4 192.168.1.1
t=0 0
m=audio 3000 RTP/AVP 18 111 8 0
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:111 ILBC/8000/1
a=fmtp:111 mode=30
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=ptime:20

SipUserAgent - listen -> Init...
Red5SIP register
[SIPUser] register
RegisterAgent: Registering contact (it expires in 3600 sec
s)
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
Red5SIP Client leaving app 0
Red5SIP Client closing client FF6209B0-D2C0-3B6F-4C86-E5052C1E1343
Release ports: sip port 5060 audio port 3000
Release port number:5060
Release port number:3000
[SIPUser] close1
[SIPUser] hangup IDLE
[SIPUser] unregister
RegisterAgent: Unregistering contact
SipUserAgent - hangup -> Init...
SipUserAgent - closeMediaApplication -> Init...
[SIPUser] provider.halt
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout


В 3CX в логе нету вообще никаких признаков регистрации
 
Я видел эту статью, к сожалению этот сервис переехал и стал платным, хотелось бы поднять данный виджет на сайте бесплатным софтом.
 
Да, сервис стал платным. Причем, как ни странно, у тех, кто работал с ним раньше, от остался бесплатным. То есть, у меня :-)

Попробуйте это http://zadarma.com/ru/callmebutton/ или это http://sipiko.net/

Отпишитесь о результатах, если не трудно.
 
@igor.snezhko wrote:Да, сервис стал платным. Причем, как ни странно, у тех, кто работал с ним раньше, от остался бесплатным. То есть, у меня :-)

Попробуйте это http://zadarma.com/ru/callmebutton/ или это http://sipiko.net/

Отпишитесь о результатах, если не трудно.

Спасибо большое! zadarma подключился!

оператор так себе по звуку в целом, но с сайта все отлично звонит!
 
Мне кажется, дело не в операторе, а в реализации софтфона и качестве гарнитуры у звонящего.
 
Вот еще ресурс, как я понял, бесплатный. http: //www.phono.com/docs
Я даже нашел удобный модуль для Drupal под этот телефон. http://drupal.org/project/voipphone
 

Для администраторов

Статистика форума

Темы
44.767
Сообщения
233.686
Пользователи
78.501
Новый пользователь
Erich Gasser
#