Advertisement
oquidave

chan_dongle with asterisk

Dec 10th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //daverig:/home/oquidave # ls -l /dev/ttyUSB*
  2. crw-rw---- 1 root dialout 188, 0 Dec 10 14:42 /dev/ttyUSB0
  3. crw-rw---- 1 root dialout 188, 1 Dec 10 14:42 /dev/ttyUSB1
  4. crw-rw---- 1 root dialout 188, 2 Dec 10 14:42 /dev/ttyUSB2
  5.  
  6. //dongle.conf
  7. [defaults]
  8. ; now you can set here any not required device settings as template
  9. ; sure you can overwrite in any [device] section this default values
  10.  
  11. context=incoming-mobile ; context for incoming calls
  12. group=0 ; calling group
  13. rxgain=0 ; increase the incoming volume; may be negative
  14. txgain=0 ; increase the outgoint volume; may be negative
  15. autodeletesms=yes ; auto delete incoming sms
  16. resetdongle=yes ; reset dongle during initialization with ATZ command
  17. u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command
  18. usecallingpres=yes ; use the caller ID presentation or not
  19. callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings
  20. disablesms=no ; disable of SMS reading from device when received
  21. ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a
  22. ; call chan_dongle might crash. Enable this option to disable sms reception.
  23. ; default = no
  24.  
  25. language=en ; set channel default language
  26. smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes'
  27. mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms
  28. mindtmfduration=80 ; minimal DTMF tone duration in ms
  29. mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms
  30.  
  31. callwaiting=auto ; if 'yes' allow incoming calls waiting; by default use network settings
  32. ; if 'no' waiting calls just ignored
  33. disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section
  34.  
  35. initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote'
  36. ; 'remove' same as 'disable=yes'
  37.  
  38. ;exten=123 ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)
  39.  
  40. dtmf=relax ; control of incoming DTMF detection, possible values:
  41. ; off
  42. [dongle0]
  43. audio=/dev/ttyUSB1 ; tty port for audio connection; no default value
  44. data=/dev/ttyUSB0 ; tty port for AT commands; no default value
  45. imei=869878001485498
  46. imsi=641010211885457
  47.  
  48.  
  49. //extensions.conf
  50. [local]
  51. ;
  52. ; Master context for local, toll-free, and iaxtel calls only
  53. ;
  54. ignorepat => 9
  55. include => default
  56. include => trunklocal
  57. include => iaxtel700
  58. include => trunktollfree
  59. include => iaxprovider
  60. include => dongle
  61. include => incoming-mobile
  62.  
  63. [incoming-mobile]
  64. exten =>s,1,Answer()
  65. same=>n,Playback(hello-world)
  66. same=>n,Hangup()
  67.  
  68. //
  69. daverig*CLI> dongle show device state dongle0
  70. -------------- Status -------------
  71. Device : dongle0
  72. State : Free
  73. Audio : /dev/ttyUSB1
  74. Data : /dev/ttyUSB0
  75. Voice : Yes
  76. SMS : Yes
  77. Manufacturer : huawei
  78. Model : E173
  79. Firmware : 11.126.16.00.846
  80. IMEI : 869878001485498
  81. IMSI : 641010211885457
  82. GSM Registration Status : Registered, home network
  83. RSSI : 20, -113 dBm
  84. Mode : No Service
  85. Submode : No service
  86. Provider Name : AIRTEL UG
  87. Location area code : 1F42
  88. Cell ID : 27
  89. Subscriber Number : Unknown
  90. SMS Service Center : +25675010004
  91. Use UCS-2 encoding : Yes
  92. USSD use 7 bit encoding : Yes
  93. USSD use UCS-2 decoding : No
  94. Tasks in queue : 0
  95. Commands in queue : 0
  96. Call Waiting : Disabled
  97. Current device state : start
  98. Desired device state : start
  99. When change state : now
  100. Calls/Channels : 0
  101. Active : 0
  102. Held : 0
  103. Dialing : 0
  104. Alerting : 0
  105. Incoming : 0
  106. Waiting : 0
  107. Releasing : 0
  108. Initializing : 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement