Advertisement
oquidave

chan_dongle with asterisk

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