вот выдержка из dongle.conf
Код: Выделить всё
[defaults]
; now you can set here any not required device settings as template
; sure you can overwrite in any [device] section this default values
context=from-trunk-dongle ; context for incoming calls
group=0 ; calling group
rxgain=0 ; increase the incoming volume; may be negative
txgain=0 ; increase the outgoint volume; may be negative
autodeletesms=yes ; auto delete incoming sms
resetdongle=yes ; reset dongle during initialization with ATZ command
u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem functi$
usecallingpres=yes ; use the caller ID presentation or not
callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settin$
disablesms=no ; disable of SMS reading from device when received
; chan_dongle has currently a bug with SMS reception. When a SMS gets in dur$
; call chan_dongle might crash. Enable this option to disable sms reception.
; default = no
[dongle0]
exten=380684070733
imei=352445044947308
imsi=255030824617014
[dongle1]
exten=380684070741
imei=358811037495981
imsi=255030824617009
мой extensions_custom.conf
Код: Выделить всё
[from-trunk-dongle]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,Set(FILE(/var/log/asterisk/sms.txt,,,a)=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAM$
exten => sms,n,System(echo >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => _.,1,Set(CALLERID(name)=${CALLERID(num)})
exten => _.,n,Goto(from-trunk,${EXTEN},1)
я прописывал 2 входящих маршрута. в поле DID указывал IMEI, IMSI, Номер телефона как с + так и без. во всех случаях звонок завершался сообщением что номер не обслуживается.
как только поле DID делаю ANY - входящие на оба номера без проблем проходят