AF
Asterisk Forum
обсуждения телефонии, VoIP и IP-PBX
12разделов
5 423тем
34 385сообщений
← К списку тем

Skype <-> Asterisk

Newbies/FAQ Forum 5 сообщений 22.11.2010 11:52 - 26.11.2010 13:42
#1 22.11.2010 11:52

Skype <-> Asterisk


Добрый день!
Помогите, пожалуйста разобраться.
Купил у Digium канал. Поставил SfA завел дочерний аккаунт.
Звонки на сип проходят только если звонить с аккаунта к которому привязан дочерний аккаунт, так же наоборот с сипа можно позвонить только на аккаунт к которому привязан дочерний.
Вопрос в том как позвонить с любого удаленного аккаунта скайп на сип и обратно?
Спасибо!

chan_skype.conf:

[general]
engine_directory=/home/skype
debug=yes

[дочерний_аккаунт]
secret=ххххх
context=sip
disallow=all
allow=ulaw
allow=alaw


[sip]
exten => дочерний_аккаунт,1,Dial(SIP/2202)
exten => 7666,1,Dial(Skype/дочерний_акк@удаленный_аккаунт_skype)
#2 23.11.2010 14:03

Вроде зазвонило.
Но новая беда, после установки соединения (когда абонент "б" берет трубку или при входещем на *) asterisk полностью вываливается.

Asterisk Ready.
== Parsing '/etc/asterisk/cli.conf': == Found
*CLI> [Feb 14 09:53:11] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:53:11] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=23) "c 1463 1552 1649="1241""
[Feb 14 09:53:11] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#14 a 1463 2062"
[Feb 14 09:53:11] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=11) "#14 b 0="0""
[Feb 14 09:53:11] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
[Feb 14 09:53:55] NOTICE[5533]: chan_sip.c:19368 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2202
[Feb 14 09:56:58] NOTICE[5533]: chan_sip.c:19368 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2202
== Using SIP RTP CoS mark 5
-- Executing [7555@sip:1] Dial("SIP/2202-096d36c0", "Skype/zabodaj") in new stack
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#15 a 1132 1938"
[Feb 14 09:59:49] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=12) "#15 b 0="26""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#16 a 1132 1875 1136="26" 1853="1264,1064""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=21) "c 1132 1121 1136="26""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=34) "#16 b 1264="1" 1064="abitel-skype""
[Feb 14 09:59:49] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#17 a 1132 1875 1136="26" 1853="1156""
[Feb 14 09:59:49] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=14) "#17 b 1156="0""
[Feb 14 09:59:49] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#18 a 1796 1477 1968="zabodaj""
[Feb 14 09:59:49] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=14) "#18 b 0="1463""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#19 a 1132 1033 1136="26" 1968="zabodaj" 1086="0""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=12) "#19 b 0="27""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#1A a 1985 1875 1136="27" 1853="1928,1530,2051,1060,1261,1641""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:587 transport_log: Ignoring binary property
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#1B a 1796 1723 1968="zabodaj""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=11) "#1B b 0="3""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#1C a 1796 1875 1136="3" 1853="1701,1838,2104,1073,1404""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=45) "c 1985 2070 1136="27" 1549="1530" 1664="1684""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:587 transport_log: Ignoring binary property
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "#1D a 1132 1344 1136="26""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Got message (len=12) "#1D b 0="27""
[Feb 14 09:59:49] NOTICE[5597]: core.cpp:2119 sfa_call_ring: calling create_control_socket for oid 27
[Feb 14 09:59:49] DEBUG[5597]: core.cpp:315 create_control_socket: creating socket sfa-control-0x96ba548-0000001b
[Feb 14 09:59:49] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
-- Called zabodaj
[Feb 14 09:59:50] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:59:50] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=45) "c 1985 2070 1136="27" 1549="1530" 1664="1115""
[Feb 14 09:59:50] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
[Feb 14 09:59:50] DEBUG[5597]: chan_skype.c:876 queue_event: got control event type 4 with subclass 3.
-- Skype/abitel-skype-09741d90 is ringing
[Feb 14 09:59:53] DEBUG[5597]: core.cpp:1652 sfa_call_process: accepting socket connection from voice engine
[Feb 14 09:59:53] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:59:53] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=45) "c 1985 2070 1136="27" 1549="1530" 1664="1409""
[Feb 14 09:59:53] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
[Feb 14 09:59:53] NOTICE[5597]: core.cpp:591 transport_log: TRANSPORT: Wrote message "a 1132 1572 1136="26" 1898="1937""
[Feb 14 09:59:53] DEBUG[5597]: chan_skype.c:876 queue_event: got control event type 4 with subclass 4.
[Feb 14 09:59:53] DEBUG[5562]: chan_skype.c:3625 do_monitor: poll returned 1
[Feb 14 09:59:53] NOTICE[5562]: core.cpp:591 transport_log: TRANSPORT: Got message (len=1) "b"
[Feb 14 09:59:53] DEBUG[5562]: chan_skype.c:3615 do_monitor: entering poll for 2 fds
[Feb 14 09:59:53] DEBUG[5597]: core.cpp:1625 process_ve_frame: received audio socket address 127.0.0.1:40580
[Feb 14 09:59:53] DEBUG[5597]: core.cpp:1777 sfa_call_set_audio_socket_address: sending audio socket address 127.0.0.1:12212
-- Skype/abitel-skype-09741d90 answered SIP/2202-096d36c0
Segmentation fault
[root@localhost asterisk]#

Как можно это поправить?
Спасибо!
#3 26.11.2010 10:35

версия астериск какая?
#4 26.11.2010 10:50

Скорее всего модуль и астер неподходящих версий.
_________________
Intel Core 2 Duo E6400 @ 2.40GHz / 6GB / 160GB
Gentoo Linux 2.6.32-r7 || Asterisk 1.6.2.13 | SFA | Linksys SPA922 + D-Link DPH-300S + D-Link DVG-7111S + 3 x Huawei E1550
#5 26.11.2010 13:42

asteris 1.6.1.1
skypeforasterisk-1.6.1_1.1.2-x86_32.tar.gz