Страница 1 из 2

No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:21
arlekin_s
Доброго всем дня. Появилась проблема.. и никак в ней не могу разобраться..

При звонке на GSM-Modem выдает вот это сообщение.

Код: Выделить всё

 -- Executing [s@datacard-incoming:1] Dial("Datacard/datacard0-397a", "SIP/100") in new stack
[Feb  8 15:24:47] WARNING[1704]: channel.c:5705 ast_request: No channel type registered for 'SIP'
[Feb  8 15:24:47] WARNING[1704]: app_dial.c:2345 dial_exec_full: Unable to create channel of type 'SIP' (cause 66 - Channel not implemented)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@datacard-incoming:2] Hangup("Datacard/datacard0-397a", "") in new stack
  == Spawn extension (datacard-incoming, s, 2) exited non-zero on 'Datacard/datacard0-397a'
Модем и симка определяются правильно.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
ubuntu*CLI> datacard show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
datacard0 1 Free 20 3 3 UMC E1550 11.608.12.00.143 ***965047****** ****1185060***** +3805016*****
ubuntu*CLI>
настраивал по этой статье
вот конфиги которые настраивал
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip.conf
[general]
allowguest=no
udpbindaddr=0.0.0.0
call-limit=1
mohsuggest=default
allowtransfer= no
rtcachefriends=yes
t38pt_udptl=yes

[100]
type=friend
context=out
canreinvite=no
qualify=yes
disallow=all
allow=ulaw
nat=no
secret=100
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: datacard.conf
[general]

interval=15 ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
; Datacard channel. Defaults to "no". An enabled jitterbuffer will
; be used only if the sending side can create and the receiving
; side can not accept jitter. The Datacard channel can't accept jitter,
; thus an enabled jitterbuffer on the receive Datacard side will always
; be used if the sending side can create jitter.

;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a Datacard
; channel. Defaults to "no".

;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
; resynchronized. Useful to improve the quality of the voice, with
; big jumps in/broken timestamps, usually sent from exotic devices
; and programs. Defaults to 1000.

;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Datacard
; channel. Two implementations are currently available - "fixed"
; (with size always equals to jbmaxsize) and "adaptive" (with
; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
; The option represents the number of milliseconds by which the new jitter buffer
; will pad its size. the default is 40, so without modification, the new
; jitter buffer will set its size to the jitter value plus 40 milliseconds.
; increasing this value may help if your network normally has low jitter,
; but occasionally has spikes.

;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
;-----------------------------------------------------------------------------------


[datacard0]

audio=/dev/ttyUSB1 ; tty for audio connection
data=/dev/ttyUSB2 ; tty for AT commands

context=datacard-incoming ; context for incoming calls
group=1 ; calling group

rxgain=3 ; increase the incoming volume
txgain=-4 ; increase the outgoint volume

autodeletesms=yes ; auto delete incoming sms
resetdatacard=yes ; reset datacard during initialization
u2diag=0 ; set U2DIAG parameter (0 = disable everything except modem function)
usecallingpres=yes ; use the caller ID presentation or not
callingpres=allowed_passed_screen; set caller ID presentation
disablesms=yes ; chan_datacard has currently a bug with SMS reception. When a SMS gets in during a
; call chan_datacard might crash. Enable this option to disable sms reception.
; Default = no
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: extensions.conf
все оставил по умолчанию + добавил это:

[datacard-incoming]

exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${SMS})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DATACARD} - ${CALLERID(num)}: ${SMS}' >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()

exten => ussd,1,Verbose(Incoming USSD: ${USSD})
exten => ussd,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DATACARD}: ${USSD}' >> /var/log/asterisk/ussd.txt)
exten => ussd,n,Hangup()

exten => s,1,Dial(SIP/100)
exten => s,n,Hangup()


;exten => _X.,1,Dial(Datacard/datacard0/${EXTEN})
Используемое ПО: Ubuntw server 12.04 +asterisk-1.8.20.1

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:26
ded
Согласно Вашему представлению как это должно работать - входящий звонок должен прибежать на внутренний номер 100
Dial("Datacard/datacard0-397a", "SIP/100") на что Астериск заявляет
No channel type registered for 'SIP'
и Вы в этом можете тоже убедиться набрав
sip show peer (выучите хотя бы несколько команд!)
там не будет такого пира - 100. Он не будет зарегистрирован.

И не пытайтесь спрашивать тут "А почему?"
Потому что Вы даже копипастить толком не умеете.

P.S. Статья не при чём, там то всё верно.

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:34
awsswa
ded - он не обманет :)

Вкрадце - вы пытаетесь позвонить через GSM модем на внутренний 100 номер.

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:38
arlekin_s
ded.. ты в своем репертуаре ))) Дело в том.. что я пытаюсь зарегистрировать сип.. но он не проходит регистрацию... поставил себе на винду Зоипер. Настроил на нем адрес сервера: 192.168.1.106, логин: 100, пароль: 100. (мы в одной локалке через роутер).. но регистрация не проходит. Вот я и думаю.. может это проблема где то в настройках сипа ?

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:42
Vlad1983
не загружен chan_sip

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 18:49
ded
Он не проходит регистрацию? Как же так? Где обман?
Ох, хомячки штурмуют операторов ГСМ отказавшись от шлюзов...

У ВАС НЕТУ СТРОЧКИ на хосте [100]
host=dynamic
не знаю откуда копипастите...

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 20:32
arlekin_s
Влад был прав .. не загружен chan_sip

проверяю наличие пакета через make menuselect

Код: Выделить всё

**************************************************
                   Asterisk Module and Build Option Selection
               **************************************************

                               Press 'h' for help.

                                  --- core ---
                              [*] chan_agent
                              [*] chan_bridge
                              XXX chan_dahdi
                              [*] chan_iax2
                              [*] chan_local
                              [*] chan_multicast_rtp
                              XXX chan_sip
                                  --- extended ---
                              XXX chan_alsa
                              XXX chan_console
                              XXX chan_gtalk
                              XXX chan_jingle
                              < > chan_mgcp
                              XXX chan_misdn
                                  ... More ...



# при наведении курсора на chan_sip
Session Initiation Protocol (SIP)
les)                    Depends on: chan_local(M), res_crypto(M)


                        Support Level: core
говорит что chan_sip встроен в ядро.. и показывает зависимости. chan_local у нас стоит.. а вот res_crypto :

Код: Выделить всё


                                  --- core ---
                              [*] res_adsi
                              [*] res_agi
                              [*] res_calendar
                              XXX res_calendar_caldav
                              XXX res_calendar_ews
                              XXX res_calendar_exchange
                              XXX res_calendar_icalendar
                              [*] res_clialiases
                              [*] res_clioriginate
                              XXX res_config_curl
                              XXX res_config_odbc
                              [*] res_convert
                              XXX res_crypto
                              XXX res_curl
                                  ... More ...


                        Cryptographic Digital Signatures
                        Depends on: openssl(E)


                        Support Level: core

не хватает библиотеки openssl. Погуглив .. эта библиотека заменена на libssl-dev.
1. установил libssl-dev
2. остановил астериск.
3. cd /usr/src/asterisk-1.8.20.1
4. make
5. make install

проверяю .... и всеравно не заработало. подскажите где я ошибся.

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 20:37
Vlad1983
так модуль собрался?

Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 20:41
arlekin_s
та вроде да..... ошибок не писал...

вот конец лога.

Код: Выделить всё

  [CC] term.c -> term.o
   [CC] test.c -> test.o
   [CC] threadstorage.c -> threadstorage.o
   [CC] timing.c -> timing.o
   [CC] translate.c -> translate.o
   [CC] udptl.c -> udptl.o
   [CC] ulaw.c -> ulaw.o
   [CC] utils.c -> utils.o
   [CC] version.c -> version.o
   [CC] xml.c -> xml.o
   [CC] xmldoc.c -> xmldoc.o
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -pthread -I../..//include -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -O6 -march=native    ) works... yes
checking whether the C compiler (gcc -pthread -I../..//include -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -O6 -march=native    ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for mawk... mawk
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for tgetent in -ltermcap... yes
checking for termcap.h... yes
checking for sys/cdefs.h... yes
checking for vis.h... no
checking for issetugid... no
checking for fgetln... no
checking for strvis... no
checking for strunvis... no
checking for strlcpy... no
checking for strlcat... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating makelist
creating config.h
   [CC] hash/hash.c -> hash/hash.o
   [CC] hash/hash_bigkey.c -> hash/hash_bigkey.o
   [CC] hash/hash_buf.c -> hash/hash_buf.o
   [CC] hash/hash_func.c -> hash/hash_func.o
   [CC] hash/hash_log2.c -> hash/hash_log2.o
   [CC] hash/hash_page.c -> hash/hash_page.o
   [CC] hash/ndbm.c -> hash/ndbm.o
   [CC] btree/bt_close.c -> btree/bt_close.o
   [CC] btree/bt_conv.c -> btree/bt_conv.o
   [CC] btree/bt_debug.c -> btree/bt_debug.o
   [CC] btree/bt_delete.c -> btree/bt_delete.o
   [CC] btree/bt_get.c -> btree/bt_get.o
   [CC] btree/bt_open.c -> btree/bt_open.o
   [CC] btree/bt_overflow.c -> btree/bt_overflow.o
   [CC] btree/bt_page.c -> btree/bt_page.o
   [CC] btree/bt_put.c -> btree/bt_put.o
   [CC] btree/bt_search.c -> btree/bt_search.o
   [CC] btree/bt_seq.c -> btree/bt_seq.o
   [CC] btree/bt_split.c -> btree/bt_split.o
   [CC] btree/bt_utils.c -> btree/bt_utils.o
   [CC] db/db.c -> db/db.o
   [CC] mpool/mpool.c -> mpool/mpool.o
   [CC] recno/rec_close.c -> recno/rec_close.o
   [CC] recno/rec_delete.c -> recno/rec_delete.o
   [CC] recno/rec_get.c -> recno/rec_get.o
   [CC] recno/rec_open.c -> recno/rec_open.o
   [CC] recno/rec_put.c -> recno/rec_put.o
   [CC] recno/rec_search.c -> recno/rec_search.o
   [CC] recno/rec_seq.c -> recno/rec_seq.o
   [CC] recno/rec_utils.c -> recno/rec_utils.o
   [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
   [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a  -> asterisk
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
root@ubuntu:/usr/src/asterisk-1.8.20.1# make install
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
Installing modules from cel...
Installing modules from bridges...
Installing modules from funcs...
Installing modules from tests...
Installing modules from main...
Installing modules from res...
Installing modules from addons...
/usr/bin/install -c -m 755 main/asterisk "/usr/sbin/"
/bin/ln -sf asterisk "/usr/sbin/rasterisk"
/usr/bin/install -c -m 755 contrib/scripts/astgenkey "/usr/sbin/"
/usr/bin/install -c -m 755 contrib/scripts/autosupport "/usr/sbin/"
if [ ! -f "/usr/sbin/safe_asterisk" -a ! -f /sbin/launchd ]; then \
                cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|/usr/sbin|;s|__ASTERISK_VARRUN_DIR__|/var/run/asterisk|;' > contrib/scripts/safe.tmp ; \
                /usr/bin/install -c -m 755 contrib/scripts/safe.tmp "/usr/sbin/safe_asterisk" ; \
                rm -f contrib/scripts/safe.tmp ; \
        fi
/usr/bin/install -c -m 644 include/asterisk.h "/usr/include"
/usr/bin/install -c -m 644 include/asterisk/*.h "/usr/include/asterisk"
/usr/bin/install -c -m 644 include/asterisk/doxygen/*.h "/usr/include/asterisk/doxygen"
if [ -n "" ]; then \
                for h in ; do rm -f "/usr/include/asterisk/$h"; done \
        fi
/usr/bin/install -c -m 644 doc/core-*.xml "/var/lib/asterisk/documentation"
/usr/bin/install -c -m 644 doc/appdocsxml.dtd "/var/lib/asterisk/documentation"
/usr/bin/install -c -m 644 doc/asterisk.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/astgenkey.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/autosupport.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/safe_asterisk.8 "/usr/share/man/man8"
if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
                /usr/bin/install -c -m 644 contrib/firmware/iax/iaxy.bin "/var/lib/asterisk/firmware/iax/iaxy.bin"; \
        fi
CFLAGS="  -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  " build_tools/mkpkgconfig "/usr/lib/pkgconfig";
for x in static-http/*; do \
                /usr/bin/install -c -m 644 $x "/var/lib/asterisk/static-http" ; \
        done
/usr/bin/install -c -m 644 doc/core-en_US.xml "/var/lib/asterisk/static-http";
for x in images/*.jpg; do \
                /usr/bin/install -c -m 644 $x "/var/lib/asterisk/images" ; \
        done
make -C sounds install
make[1]: Вход в каталог `/usr/src/asterisk-1.8.20.1/sounds'
make[1]: Выход из каталога `/usr/src/asterisk-1.8.20.1/sounds'
 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+
 WARNING WARNING WARNING

 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.

    chan_datacard.so
    chan_dongle.so

 WARNING WARNING WARNING


Re: No channel type registered for 'SIP'

Добавлено: 08 фев 2013, 21:07
Vlad1983
CLI> module show like sip
пусто?
CLI> module load chan_sip.so
?