donfaustino
Neuer User
- Mitglied seit
- 28 Nov 2004
- Beiträge
- 143
- Punkte für Reaktionen
- 0
- Punkte
- 0
Danke, ein "service asterisk restart" hats auch getanSpätestens nach einem System-reboot müsste sich was tun.
Danke, ein "service asterisk restart" hats auch getanSpätestens nach einem System-reboot müsste sich was tun.
[general]
interval=15 ; Number of seconds between trying to connect to devices
[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=default ; 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
language=en ; set channel default language
smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we str$
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=auto ; if 'yes' allow incoming calls waiting; by default use network settings
; if 'no' waiting calls just ignored
disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this s$
initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote'
; 'remove' same as 'disable=yes'
exten=+1234567890 ; exten for start incoming calls, only in case of Subscriber Number not avail$
dtmf=relax ; control of incoming DTMF detection, possible values:
; off - off DTMF tones detection, voice data passed to asterisk unaltered
[1und1]
group=0
context=1und1-incoming
imei=xxxxxxxxxxxxxxxxxxxxxx
[VWBik]
group=1
context=VWBik-incoming
imei=xxxxxxxxxxxxxxxxxxxxxx
[LowCost]
imei=xxxxxxxxxxxxxxxxxxxxxx
group=2
context=LowCost-incoming
[Fonic]
imei=xxxxxxxxxxxxxxxxxxxxxx
group=2
context=LowCost-incoming
...
[dongle0]
audio=/dev/ttyUSB1
data=/dev/ttyUSB2
imei=AAA
imsi=BBB
group=0
context=dongle0-kommend
[dongle1]
audio=/dev/ttyUSB5
data=/dev/ttyUSB6
imei=CCC
imsi=DDD
group=1
context=dongle0-kommend
exten => _01[567].,1,Dial(Dongle/dongle1/${EXTEN}) ; Es wird über dongle1 gewählt
exten => _01[567].,2,Dial(Dongle/dongle2/${EXTEN}) ; Falls dongle1 belegt ist geht es automatisch über dongle2
_01[567]. => { Dial(Dongle/dongle1/${EXTEN}) ; Dial(Dongle/dongle2/${EXTEN}) ; }
nase*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 14 0 0 1&1 E173 11.126.16.04.405 AAA BBB Unknown
dongle1 1 Free 15 0 0 1&1 E173 11.126.85.00.209 CCC DDD Unknown
Das stimmt schon, aber in der Regel legt man auf bzw. der Gesprächspartner legt auf.... auch überlegt, kam aber zu dem Schluß, daß ich dann nach Ende des ersten Gespräches den gleichen Partner nochmals über den anderen Dongle anrufe.
_01[567]. => {
Dial(Dongle/dongle1/${EXTEN}) ;
if (0${ANSWEREDTIME} > 10) { NoOp; } // Wenn Gespräch über 10 Sekunden dauerte, dann wird nichts gemacht
else { Dial(Dongle/dongle2/${EXTEN}) ;}} // Ansonsten geht das Gespräch über dongle2
dongle cmd dongle0 AT+CPBS=\"ON\"
dongle cmd dongle0 AT+CPBW=1,\"+123456789\",145
[May 15 15:07:17] ERROR[9172]: chan_dongle.c:433 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'