Вообщем решил я замутить tls на fusionpbx… и сделал как в
http://wiki.freeswitch.org/wiki/TlsСоздал сертификаты,
Код:
./gentls_cert setup -cn pbx.freeswitch.org -alt DNS:pbx.freeswitch.org -org freeswitch.org
./gentls_cert create_server -cn pbx.freeswitch.org -alt DNS:pbx.freeswitch.org -org freeswitch.org
добавил в vars.xml:
Код:
<X-PRE-PROCESS cmd="set" data="internal_ssl_enable=true"/>
<X-PRE-PROCESS cmd="set" data="external_ssl_enable=true"/>
Скопировал cafile.pem на клиентские машины.
использую клиент bria:
в security установил tls и make and accept only encripted calls
Я уже обрадовался что работает, позвонил на (echo *9196) и на (hold_music *9664) + звонок на внутренний номер
Но потом поменял security настройки на втором номере и при звонке сразу идёт hung_up:
Код:
2013-05-10 17:27:45.066547 [NOTICE] switch_channel.c:978 New Channel sofia/internal/101@company-a.org [a29ec222-b964-11e2-bb74-95a8b38e9309]
2013-05-10 17:27:45.085659 [WARNING] sofia_reg.c:1524 SIP auth challenge (INVITE) on sofia profile 'internal' for [107@company-a.org] from ip 192.168.70.111
2013-05-10 17:27:45.226119 [INFO] mod_dialplan_xml.c:557 Processing 101 <101>->107 in context company-a.org
2013-05-10 17:27:45.226119 [INFO] mod_dptools.c:1240 Sending early media
2013-05-10 17:27:45.245695 [INFO] switch_rtp.c:1815 Activating Secure RTP SEND
2013-05-10 17:27:45.245695 [INFO] switch_rtp.c:1795 Activating Secure RTP RECV
2013-05-10 17:27:45.245695 [NOTICE] mod_sofia.c:2845 Pre-Answer sofia/internal/101@company-a.org!
2013-05-10 17:27:45.245695 [INFO] switch_limit.c:126 incr called: company-a.org_107 max:5, interval:0
2013-05-10 17:27:45.245695 [INFO] mod_hash.c:202 Usage for company-a.org_107 is now 1/5
2013-05-10 17:27:45.245695 [INFO] switch_ivr_async.c:3548 Bound B-Leg: *1 execute_extension::dx XML features
2013-05-10 17:27:45.245695 [INFO] switch_ivr_async.c:3540 Bound A-Leg: *2 record_session::/usr/local/freeswitch/recordings/archive/2013/May/10/a29ec222-b964-11e2-bb74-95a8b38e9309.wav
2013-05-10 17:27:45.245695 [INFO] switch_ivr_async.c:3548 Bound B-Leg: *2 record_session::/usr/local/freeswitch/recordings/archive/2013/May/10/a29ec222-b964-11e2-bb74-95a8b38e9309.wav
2013-05-10 17:27:45.245695 [INFO] switch_ivr_async.c:3548 Bound B-Leg: *3 execute_extension::cf XML features
2013-05-10 17:27:45.245695 [INFO] switch_ivr_async.c:3548 Bound B-Leg: *4 execute_extension::att_xfer XML features
2013-05-10 17:27:45.265952 [NOTICE] switch_channel.c:978 New Channel sofia/internal/sip:107@192.168.70.77:1341 [a2bc79ac-b964-11e2-bb8f-95a8b38e9309]
2013-05-10 17:27:45.465491 [NOTICE] sofia.c:6492 Hangup sofia/internal/sip:107@192.168.70.77:1341 [CS_CONSUME_MEDIA] [SERVICE_NOT_IMPLEMENTED]
2013-05-10 17:27:45.485576 [NOTICE] switch_ivr_originate.c:2650 Cannot create outgoing channel of type [user] cause: [SERVICE_NOT_IMPLEMENTED]
2013-05-10 17:27:45.485576 [INFO] mod_dptools.c:3106 Originate Failed. Cause: SERVICE_NOT_IMPLEMENTED
2013-05-10 17:27:45.485576 [NOTICE] mod_dptools.c:1205 Channel [sofia/internal/101@company-a.org] has been answered
2013-05-10 17:27:45.485576 [NOTICE] switch_core_session.c:1559 Session 10 (sofia/internal/sip:107@192.168.70.77:1341) Ended
2013-05-10 17:27:45.485576 [NOTICE] switch_core_session.c:1563 Close Channel sofia/internal/sip:107@192.168.70.77:1341 [CS_DESTROY]
2013-05-10 17:27:46.505552 [ERR] switch_core_sqldb.c:1124 SQL ERR: [SELECT * FROM v_voicemails
WHERE domain_uuid = '360227c8-ef98-48c0-a473-af7fbd0a3969'
AND voicemail_id = '107'
AND voicemail_enabled = 'true' ] no such table: v_voicemails
2013-05-10 17:27:46.505552 [ERR] freeswitch_lua.cpp:435 DBH NOT Connected.
2013-05-10 17:27:46.526637 [NOTICE] switch_core_state_machine.c:262 sofia/internal/101@company-a.org has executed the last dialplan instruction, hanging up.
2013-05-10 17:27:46.526637 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/101@company-a.org [CS_EXECUTE] [NORMAL_CLEARING]
2013-05-10 17:27:46.526637 [INFO] mod_hash.c:304 Usage for company-a.org_107 is now 0
2013-05-10 17:27:46.625696 [NOTICE] switch_core_session.c:1559 Session 9 (sofia/internal/101@company-a.org) Ended
2013-05-10 17:27:46.625696 [NOTICE] switch_core_session.c:1563 Close Channel sofia/internal/101@company-a.org [CS_DESTROY]
2013-05-10 17:30:01.785542 [NOTICE] switch_channel.c:978 New Channel sofia/internal/101@company-a.org [f41ccd2e-b964-11e2-bb99-95a8b38e9309]
2013-05-10 17:30:01.806602 [WARNING] sofia_reg.c:1524 SIP auth challenge (INVITE) on sofia profile 'internal' for [*9196@company-a.org] from ip 192.168.70.111
2013-05-10 17:30:01.945802 [INFO] mod_dialplan_xml.c:557 Processing 101 <101>->*9196 in context company-a.org
2013-05-10 17:30:01.965785 [INFO] switch_rtp.c:1815 Activating Secure RTP SEND
2013-05-10 17:30:01.965785 [INFO] switch_rtp.c:1795 Activating Secure RTP RECV
2013-05-10 17:30:01.965785 [NOTICE] mod_dptools.c:1205 Channel [sofia/internal/101@company-a.org] has been answered
2013-05-10 17:30:08.205528 [NOTICE] sofia.c:716 Hangup sofia/internal/101@company-a.org [CS_EXECUTE] [NORMAL_CLEARING]
2013-05-10 17:30:08.285531 [NOTICE] switch_core_session.c:1559 Session 11 (sofia/internal/101@company-a.org) Ended
2013-05-10 17:30:08.285531 [NOTICE] switch_core_session.c:1563 Close Channel sofia/internal/101@company-a.org [CS_DESTROY]
Подскажите в чём может быть проблема?