0
- 30.01.2016 - 22:46
|
Доброго времени, Алл. не получается подключить к астериску модем е1550. то модуль не компилиться то не подключается. прошу возмезной помощи, по удаленке в воскресение (31числа) вечером или же в понедельник (1числа) с утра. контакты и условия пожалуйста в личку. | |
1
- 31.01.2016 - 21:40
|
0-smalever >версию астера выложи. Если 11-я, то cd /usr/src && yum install -y usb_modeswitch && wget http://vmclouds.ru/dnld/chan_dongle_ast_11.zip && unzip chan_dongle_ast_11.zip && cd asterisk-chan-dongle-asterisk11 && aclocal && autoconf automake -a ./configure && make && make install && \cp -uf etc/dongle.conf /etc/asterisk/ && \cp -uf chan_dongle.so /usr/lib/asterisk/modules/ && echo "KERNEL==\"ttyUSB*\", MODE=\"0666\", OWNER=\"asterisk\", GROUP=\"uucp\"" > /etc/udev/rules.d/92-dongle.rules && udevadm control --reload-rules && chmod 666 /dev/ttyUSB* && amportal restart вот конфиг ####dongle.conf [general] interval=15 [defaults] context=from-gsm ; context for incoming calls group=0 ; calling group rxgain=3 ; increase the incoming volume; may be negative txgain=3 ; 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 function) ; -1 not use ^U2DIAG command usecallingpres=yes ; use the caller ID presentation or not callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings disablesms=no ; disable of SMS reading from device when received language=ru ; set channel default language smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes' mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms mindtmfduration=80 ; minimal DTMF tone duration in ms mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms callwaiting=no ; if 'yes' allow incoming calls waiting; by default use network settings disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ;exten=+1234567890 ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid) dtmf=relax ; control of incoming DTMF detection, possible values: [dongle0] ;audio=/dev/ttyUSB1 ;data=/dev/ttyUSB2 imei=XXXXXX вот контексты ####freepbx_custom [from-gsm] #IMEI from modem is DID exten => s,1,Set(CALLERID(all)=${CALLERID(num)**) exten => s,n,Set(CALLERID(num)=7${CALLERID(num):2**) exten => s,n,goto(from-trunk,${DONGLEIMEI**,1) #save SMS exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)** ${BASE64_DECODE(${SMS_BASE64**)**) exten => sms,n,System(echo '${STRFTIME(${EPOCH**,,%d.%m.%Y %H:%M:%S)** - SMS - ${DONGLENAME** - ${CALLERID(num)**: ${BASE64_DECODE(${SMS_BASE64**)**' >> /var/spool/asterisk/monitor/sms.txt) ;exten => sms,n,System(/usr/local/bin/sendEmail.pl -f noreply@vmclouds.ru -t info@vmclouds.ru -u "${STRFTIME(${EPOCH**,,%d.%m.%Y %H:%M:%S)** - SMS - ${DONGLENAME** - ${CALLERID(num)**" -m "${BASE64_DECODE(${SMS_BASE64**)**" -o message-charset=UTF-8) exten => sms,n,Hangup() #save USSD exten => ussd,1,Verbose(Incoming USSD: ${BASE64_DECODE(${USSD_BASE64**)**) exten => ussd,n,System(echo '${STRFTIME(${EPOCH**,,%d.%m.%Y %H:%M:%S)** - USSD - ${DONGLENAME**: ${BASE64_DECODE(${USSD_BASE64**)**' >> /var/spool/asterisk/monitor/ussd.txt) ;exten => ussd,n,System(/usr/local/bin/sendEmail.pl -f noreply@vmclouds.ru -t info@vmclouds.ru -u "${STRFTIME(${EPOCH**,,%d.%m.%Y %H:%M:%S)** - USSD - ${DONGLENAME**" -m "${BASE64_DECODE(${USSD_BASE64**)**" -o message-charset=UTF-8) exten => ussd,n,Hangup() вот транк ####FREEPBX trunks custom trunk Custom Dial String: dongle/i:IMEI_NUMBER/$OUTNUM$ так ходить в порт #UUCP yum install uucp -y cu -l /dev/ttyUSB0 >ATi >~. | |
2
- 31.01.2016 - 21:44
|
е1550 надо активировать голос, в гугле куча инфы.. Вкратце - патч от МТСа, предварительно в него загнать имей твоего модема. Там еще надо локальную дату компа минус лет 5 ставить. Вот sh-скрипт для генерации dongle.conf for f in `ls /root/modems_startup` do /root/modems_startup/$f done amportal stop sleep 10 rm -f /tmp/dongles.txt for i in `ls /dev/ttyUSB*` do echo "found $i..." echo ATi | socat - $i | grep IMEI | cut -f 2 -d ' '>>/tmp/dongles.tmp done sleep 2 cat /tmp/dongles.tmp | sed '$!N; /^\(.*\)\n\1$/!P; D'>/tmp/dongles.txt rm -f /tmp/dongles.tmp sleep 2 echo "[general]">/etc/asterisk/dongle.conf echo "interval=15">>/etc/asterisk/dongle.conf echo "">>/etc/asterisk/dongle.conf echo "[defaults]">>/etc/asterisk/dongle.conf echo "context=from-gsm ; context for incoming calls">>/etc/asterisk/dongle.conf echo "group=0 ; calling group">>/etc/asterisk/dongle.conf echo "rxgain=3 ; increase the incoming volume; may be negative">>/etc/asterisk/dongle.conf echo "txgain=3 ; increase the outgoint volume; may be negative">>/etc/asterisk/dongle.conf echo "autodeletesms=yes ; auto delete incoming sms">>/etc/asterisk/dongle.conf echo "resetdongle=yes ; reset dongle during initialization with ATZ command">>/etc/asterisk/dongle.conf echo "u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command">>/etc/asterisk/dongle.conf echo "usecallingpres=yes ; use the caller ID presentation or not">>/etc/asterisk/dongle.conf echo "callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings">>/etc/asterisk/dongle.conf echo "disablesms=no ; disable of SMS reading from device when received">>/etc/asterisk/dongle.conf echo "language=ru ; set channel default language">>/etc/asterisk/dongle.conf echo "smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes'">>/etc/asterisk/dongle.conf echo "mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms">>/etc/asterisk/dongle.conf echo "mindtmfduration=80 ; minimal DTMF tone duration in ms">>/etc/asterisk/dongle.conf echo "mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms">>/etc/asterisk/dongle.conf echo "callwaiting=no ; if 'yes' allow incoming calls waiting; by default use network settings">>/etc/asterisk/dongle.conf echo "disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section">>/etc/asterisk/dongle.conf echo "initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote'">>/etc/asterisk/dongle.conf echo "dtmf=relax ; control of incoming DTMF detection, possible values:">>/etc/asterisk/dongle.conf echo "">>/etc/asterisk/dongle.conf CNT=0 cat /tmp/dongles.txt | while read l do echo "imei$CNT=$l" echo "[dongle$CNT]">>/etc/asterisk/dongle.conf echo "imei=$l">>/etc/asterisk/dongle.conf echo "">>/etc/asterisk/dongle.conf CNT=$(expr $CNT + 1) done amportal start Он также пытается отрубить cd на модемах. | |
3
- 01.02.2016 - 09:33
|
фанат, благодарю. голос активированный, из винды звонит. подобных инструкций нагуглил, ни одна нее подошла пошагово, разобраться с наскока не получилось. время еще есть пару дней, если не получится буду платить денег за чужой опыт | |
4
- 03.02.2016 - 04:39
| 3-smalever >а режим онли-модем? | |
| Интернет-форум Краснодарского края и Краснодара |