Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //daverig:/home/oquidave # ls -l /dev/ttyUSB*
- crw-rw---- 1 root dialout 188, 0 Dec 10 14:42 /dev/ttyUSB0
- crw-rw---- 1 root dialout 188, 1 Dec 10 14:42 /dev/ttyUSB1
- crw-rw---- 1 root dialout 188, 2 Dec 10 14:42 /dev/ttyUSB2
- //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=incoming-mobile ; 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 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
- ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a
- ; 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 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=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 section
- initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote'
- ; 'remove' same as 'disable=yes'
- ;exten=123 ; 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:
- ; off
- [dongle0]
- audio=/dev/ttyUSB1 ; tty port for audio connection; no default value
- data=/dev/ttyUSB0 ; tty port for AT commands; no default value
- imei=869878001485498
- imsi=641010211885457
- //extensions.conf
- [local]
- ;
- ; Master context for local, toll-free, and iaxtel calls only
- ;
- ignorepat => 9
- include => default
- include => trunklocal
- include => iaxtel700
- include => trunktollfree
- include => iaxprovider
- include => dongle
- include => incoming-mobile
- [incoming-mobile]
- exten =>s,1,Answer()
- same=>n,Playback(hello-world)
- same=>n,Hangup()
- //
- daverig*CLI> dongle show device state dongle0
- -------------- Status -------------
- Device : dongle0
- State : Free
- Audio : /dev/ttyUSB1
- Data : /dev/ttyUSB0
- Voice : Yes
- SMS : Yes
- Manufacturer : huawei
- Model : E173
- Firmware : 11.126.16.00.846
- IMEI : 869878001485498
- IMSI : 641010211885457
- GSM Registration Status : Registered, home network
- RSSI : 20, -113 dBm
- Mode : No Service
- Submode : No service
- Provider Name : AIRTEL UG
- Location area code : 1F42
- Cell ID : 27
- Subscriber Number : Unknown
- SMS Service Center : +25675010004
- Use UCS-2 encoding : Yes
- USSD use 7 bit encoding : Yes
- USSD use UCS-2 decoding : No
- Tasks in queue : 0
- Commands in queue : 0
- Call Waiting : Disabled
- Current device state : start
- Desired device state : start
- When change state : now
- Calls/Channels : 0
- Active : 0
- Held : 0
- Dialing : 0
- Alerting : 0
- Incoming : 0
- Waiting : 0
- Releasing : 0
- Initializing : 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement