Hardware сonnections asteroid

I have the hardware asteroid (http://parabel.ru/products/asteroid/)

I have an example configuration.
http://parabel.ru/d/asteroid-config.tar.bz2

I manually changed the file /etc/dahdi/system.conf

dynamic=eth,em1/00:55:55:55:55:00,30,1
fxsls=1-7
fxsls=8-15
fxols=16-22
fxols=23-30
alaw=1-30
#echocanceller=mg2,1-30

loadzone=ru
defaultzone=ru

and file chan_dahdi.conf

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=ru

;relaxdtmf=yes ;necessary on bad lines only…
rxflash=850 ;flash is an ONHOOK < rxflash
;dtmfmode=inband

;== busy
busydetect=yes
busycount=3

;== pulse
pulsedial=no
pulse=no

;== Calls handling ==
; If enabled, Asterisk will generate “call waiting pips” when
; you are already in a conversation.
callwaiting=yes
;{
threewaycalling=yes
transfer=yes
;}
cancallforward=yes

;== Caller ID ==
usecallerid=yes
callerid=asreceived
hidecallerid=no
;;callwaitingcallerid=yes
useincomingcalleridonzaptransfer=yes
;
cidsignalling=bell
cidstart=ring
restrictcid=no
;dial *69 to have Asterisk read to you the caller ID of the last person to call
callreturn=yes
echocancel=no
echotraining=no
echocancelwhenbridged=no

;;;;;;;;;;;;;
group=3
;context=test_context
context=from-internal
;context=from-zaptel
;context=from-trunk
signalling=fxs_ls
channel=16-23,24-30
;channel=22

;context=from-trunk
;context=from-zaptel
;context=from-pstn

context=test_context_ext
signalling=fxo_ls
channel=1-7,8-15

group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

#include dahdi-channels.conf

group=1

;Include AMP configs
#include chan_dahdi_additional.conf

(I do not know how to make a web browser)

now, outgoing calls are working, not working incoming calls.

messages in the console:

– Starting simple switch on ‘DAHDI/22-1’
– Executing [s@from-internal:1] Macro(“DAHDI/22-1”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“DAHDI/22-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“DAHDI/22-1”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“DAHDI/22-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘DAHDI/22-1’ in macro ‘hangupcall’
== Spawn extension (from-internal, s, 1) exited non-zero on ‘DAHDI/22-1’
– Executing [h@from-internal:1] Hangup(“DAHDI/22-1”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘DAHDI/22-1’
– Hanging up on ‘DAHDI/22-1’
– Hungup ‘DAHDI/22-1’

help me please

Context needs to be from-trunk. You also need a catch all “blank CID and DID” inbound route.

thank you. it’s working!