misdn.conf.sample 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. ;
  2. ; chan_misdn sample config
  3. ;
  4. ; general section:
  5. ;
  6. ; for debugging and general setup, things that are not bound to port groups
  7. ;
  8. [general]
  9. ;
  10. ; Sets the Path to the misdn-init.conf (for nt_ptp mode checking)
  11. ;
  12. misdn_init=/etc/misdn-init.conf
  13. ; set debugging flag:
  14. ; 0 - No Debug
  15. ; 1 - mISDN Messages and * - Messages, and * - State changes
  16. ; 2 - Messages + Message specific Informations (e.g. bearer capability)
  17. ; 3 - very Verbose, the above + lots of Driver specific infos
  18. ; 4 - even more Verbose than 3
  19. ;
  20. ; default value: 0
  21. ;
  22. debug=0
  23. ; set debugging file and flags for mISDNuser (NT-Stack)
  24. ;
  25. ; flags can be or'ed with the following values:
  26. ;
  27. ; DBGM_NET 0x00000001
  28. ; DBGM_MSG 0x00000002
  29. ; DBGM_FSM 0x00000004
  30. ; DBGM_TEI 0x00000010
  31. ; DBGM_L2 0x00000020
  32. ; DBGM_L3 0x00000040
  33. ; DBGM_L3DATA 0x00000080
  34. ; DBGM_BC 0x00000100
  35. ; DBGM_TONE 0x00000200
  36. ; DBGM_BCDATA 0x00000400
  37. ; DBGM_MAN 0x00001000
  38. ; DBGM_APPL 0x00002000
  39. ; DBGM_ISDN 0x00004000
  40. ; DBGM_SOCK 0x00010000
  41. ; DBGM_CONN 0x00020000
  42. ; DBGM_CDATA 0x00040000
  43. ; DBGM_DDATA 0x00080000
  44. ; DBGM_SOUND 0x00100000
  45. ; DBGM_SDATA 0x00200000
  46. ; DBGM_TOPLEVEL 0x40000000
  47. ; DBGM_ALL 0xffffffff
  48. ;
  49. ntdebugflags=0
  50. ntdebugfile=/var/log/misdn-nt.log
  51. ; some pbx systems do cut the L1 for some milliseconds, to avoid
  52. ; dropping running calls, we can set this flag to yes and tell
  53. ; mISDNuser not to drop the calls on L2_RELEASE
  54. ntkeepcalls=no
  55. ; the big trace
  56. ;
  57. ; default value: [not set]
  58. ;
  59. ;tracefile=/var/log/asterisk/misdn.log
  60. ; set to yes if you want mISDN_dsp to bridge the calls in HW
  61. ;
  62. ; default value: yes
  63. ;
  64. bridging=no
  65. ; stops dialtone after getting first digit on nt Port
  66. ;
  67. ; default value: yes
  68. ;
  69. stop_tone_after_first_digit=yes
  70. ; whether to append overlapdialed Digits to Extension or not
  71. ;
  72. ; default value: yes
  73. ;
  74. append_digits2exten=yes
  75. ;;; CRYPTION STUFF
  76. ; Whether to look for dynamic crypting attempt
  77. ;
  78. ; default value: no
  79. ;
  80. dynamic_crypt=no
  81. ; crypt_prefix, what is used for crypting Protocol
  82. ;
  83. ; default value: [not set]
  84. ;
  85. crypt_prefix=**
  86. ; Keys for cryption, you reference them in the dialplan
  87. ; later also in dynamic encr.
  88. ;
  89. ; default value: [not set]
  90. ;
  91. crypt_keys=test,muh
  92. ; ----------------------------- JITTER BUFFER CONFIGURATION --------------------------
  93. ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  94. ; SIP channel. Defaults to "no". An enabled jitterbuffer will
  95. ; be used only if the sending side can create and the receiving
  96. ; side can not accept jitter. The SIP channel can accept jitter,
  97. ; thus a jitterbuffer on the receive SIP side will be used only
  98. ; if it is forced and enabled.
  99. ; jbforce = no ; Forces the use of a jitterbuffer on the receive side of a SIP
  100. ; channel. Defaults to "no".
  101. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  102. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  103. ; resynchronized. Useful to improve the quality of the voice, with
  104. ; big jumps in/broken timestamps, usually sent from exotic devices
  105. ; and programs. Defaults to 1000.
  106. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a SIP
  107. ; channel. Two implementations are currently available - "fixed"
  108. ; (with size always equals to jbmaxsize) and "adaptive" (with
  109. ; variable size, actually the new jb of IAX2). Defaults to fixed.
  110. ; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
  111. ; The option represents the number of milliseconds by which the new
  112. ; jitter buffer will pad its size. the default is 40, so without
  113. ; modification, the new jitter buffer will set its size to the jitter
  114. ; value plus 40 milliseconds. increasing this value may help if your
  115. ; network normally has low jitter, but occasionally has spikes.
  116. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  117. ; ----------------------------------------------------------------------------------
  118. ; users sections:
  119. ;
  120. ; name your sections as you wish but not "general" or "default" !
  121. ; the sections are Groups, you can dial out in extensions.conf
  122. ; with Dial(mISDN/g:extern/101) where extern is a section name,
  123. ; chan_misdn tries every port in this section to find a
  124. ; new free channel
  125. ;
  126. ; The default section is not a group section, it just contains config elements
  127. ; which are inherited by group sections.
  128. ;
  129. [default]
  130. ; define your default context here
  131. ;
  132. ; default value: default
  133. ;
  134. context=misdn
  135. ; language
  136. ;
  137. ; default value: en
  138. ;
  139. language=en
  140. ;
  141. ; This option specifies a default music on hold class to
  142. ; use when put on hold if the channel's moh class was not
  143. ; explicitly set with Set(CHANNEL(musicclass)=whatever) and
  144. ; the peer channel did not suggest a class to use.
  145. ;
  146. musicclass=default
  147. ;
  148. ; Either if we should produce DTMF Tones ourselves
  149. ;
  150. senddtmf=yes
  151. ;
  152. ; If we should generate Ringing for chan_sip and others
  153. ;
  154. far_alerting=no
  155. ;
  156. ; Here you can list which bearer capabilities should be allowed:
  157. ; all - allow any bearer capability
  158. ; speech - allow speech
  159. ; 3_1khz - allow 3.1KHz audio
  160. ; digital_unrestricted - allow unrestricted digital
  161. ; digital_restricted - allow restricted digital
  162. ; video - allow video
  163. ;
  164. ; Example:
  165. ; allowed_bearers=speech,3_1khz
  166. ;
  167. allowed_bearers=all
  168. ; Incoming number prefixes for the indicated Type-Of-Number. These are
  169. ; inserted before any number (caller, dialed, connected, redirecting,
  170. ; redirection) received from the ISDN link if that number has the
  171. ; corresponding Type-Of-Number.
  172. ; See the dialplan options.
  173. ;
  174. ; default values:
  175. ; unknownprefix=
  176. ; internationalprefix=00
  177. ; nationalprefix=0
  178. ; netspecificprefix=
  179. ; subscriberprefix=
  180. ; abbreviatedprefix=
  181. ;
  182. ;unknownprefix=
  183. internationalprefix=00
  184. nationalprefix=0
  185. ;netspecificprefix=
  186. ;subscriberprefix=
  187. ;abbreviatedprefix=
  188. ; set rx/tx gains between -8 and 8 to change the RX/TX Gain
  189. ;
  190. ; default values: rxgain: 0
  191. ; txgain: 0
  192. ;
  193. rxgain=0
  194. txgain=0
  195. ; some telcos especially in NL seem to need this set to yes, also in
  196. ; switzerland this seems to be important
  197. ;
  198. ; default value: no
  199. ;
  200. te_choose_channel=no
  201. ;
  202. ; Monitors L1 of the port. If L1 is down it tries
  203. ; to bring it up. The polling timeout is given in seconds.
  204. ; Setting the value to 0 disables monitoring L1 of the port.
  205. ;
  206. ; default value: 0
  207. ;
  208. ; This option is only read at chan_misdn loading time.
  209. ; You need to unload and load chan_misdn to change the
  210. ; value. An asterisk restart will also do the trick.
  211. ;
  212. l1watcher_timeout=0
  213. ;
  214. ; This option defines, if chan_misdn should check the L1 on a PMP
  215. ; before making a group call on it. The L1 may go down for PMP Ports
  216. ; so we might need this.
  217. ; But be aware! a broken or plugged off cable might be used for a group call
  218. ; as well, since chan_misdn has no chance to distinguish if the L1 is down
  219. ; because of a lost Link or because the Provider shut it down...
  220. ;
  221. ; default: no
  222. ;
  223. pmp_l1_check=no
  224. ;
  225. ; in PMP this option defines which cause should be sent out to
  226. ; the 3. caller. chan_misdn does not support callwaiting on TE
  227. ; PMP side. This allows to modify the RELEASE_COMPLETE cause
  228. ; at least.
  229. ;
  230. reject_cause=16
  231. ;
  232. ; Send Setup_Acknowledge on incoming calls anyway (instead of PROCEEDING),
  233. ; this requests additional Infos, so we can waitfordigits
  234. ; without much issues. This works only for PTP Ports
  235. ;
  236. ; default value: no
  237. ;
  238. need_more_infos=no
  239. ;
  240. ; set this to yes if you want to disconnect calls when a timeout occurs
  241. ; for example during the overlapdial phase
  242. ;
  243. nttimeout=no
  244. ; Set the method to use for channel selection:
  245. ; standard - Use the first free channel starting from the lowest number.
  246. ; standard_dec - Use the first free channel starting from the highest number.
  247. ; round_robin - Use the round robin algorithm to select a channel. Use this
  248. ; if you want to balance your load.
  249. ;
  250. ; default value: standard
  251. ;
  252. method=standard
  253. ; specify if chan_misdn should collect digits before going into the
  254. ; dialplan, you can choose yes=4 Seconds, no, or specify the amount
  255. ; of seconds you need;
  256. ;
  257. overlapdial=yes
  258. ;
  259. ; dialplan means Type Of Number in ISDN Terms
  260. ; There are different types of the dialplan:
  261. ;
  262. ; dialplan -> for outgoing call's dialed number
  263. ; localdialplan -> for outgoing call's callerid
  264. ; (if -1 is set use the value from the asterisk channel)
  265. ; cpndialplan -> for incoming call's connected party number sent to caller
  266. ; (if -1 is set use the value from the asterisk channel)
  267. ;
  268. ; dialplan options:
  269. ;
  270. ; 0 - unknown
  271. ; 1 - International
  272. ; 2 - National
  273. ; 3 - Network-Specific
  274. ; 4 - Subscriber
  275. ; 5 - Abbreviated
  276. ;
  277. ; default value: 0
  278. ;
  279. dialplan=0
  280. localdialplan=0
  281. cpndialplan=0
  282. ;
  283. ; turn this to no if you don't mind correct handling of Progress Indicators
  284. ;
  285. early_bconnect=yes
  286. ;
  287. ; turn this on if you like to send Tone Indications to a Incoming
  288. ; isdn channel on a TE Port. Rarely used, only if the Telco allows
  289. ; you to send indications by yourself, normally the Telco sends the
  290. ; indications to the remote party.
  291. ;
  292. ; default: no
  293. ;
  294. incoming_early_audio=no
  295. ; uncomment the following to get into s extension at extension conf
  296. ; there you can use DigitTimeout if you can't or don't want to use
  297. ; isdn overlap dial.
  298. ; note: This will jump into the s exten for every exten!
  299. ;
  300. ; default value: no
  301. ;
  302. ;always_immediate=no
  303. ;
  304. ; set this to yes if you want to generate your own dialtone
  305. ; with always_immediate=yes, else chan_misdn generates the dialtone
  306. ;
  307. ; default value: no
  308. ;
  309. nodialtone=no
  310. ; uncomment the following if you want callers which called exactly the
  311. ; base number (so no extension is set) jump to the s extension.
  312. ; if the user dials something more it jumps to the correct extension
  313. ; instead
  314. ;
  315. ; default value: no
  316. ;
  317. ;immediate=no
  318. ; uncomment the following to have hold and retrieve support
  319. ;
  320. ; default value: no
  321. ;
  322. ;hold_allowed=yes
  323. ; Pickup and Callgroup
  324. ;
  325. ; default values: not set = 0
  326. ; range: 0-63
  327. ;
  328. ;callgroup=1
  329. ;pickupgroup=1
  330. ; Named pickup groups and named call groups
  331. ;
  332. ; give a name to groups and configure any number of groups
  333. ;
  334. ;namedcallgroup=engineering,sales,netgroup,protgroup
  335. ;namedpickupgroup=sales
  336. ; Set the outgoing caller id to the value.
  337. ;callerid="name" <number>
  338. ;
  339. ; these are the exact isdn screening and presentation indicators
  340. ; if -1 is given for either value the presentation indicators are used
  341. ; from asterisks CALLERPRES function.
  342. ; s=0, p=0 -> callerid presented
  343. ; s=1, p=1 -> callerid restricted (the remote end does not see it!)
  344. ;
  345. ; default values s=-1, p=-1
  346. presentation=-1
  347. screen=-1
  348. ; Incoming calls will have a caller ID tag set to this value
  349. ;
  350. ;incoming_cid_tag = "asterisk"
  351. ; With this set, you can automatically append the MSN of a party
  352. ; to the cid_tag. Incoming calls have the dialed number appended
  353. ; to the tag, and outgoing calls have the caller number appended
  354. ; to the tag. An '_' is used to separate the tag from the
  355. ; MSN.
  356. ; Default is no.
  357. ;
  358. ;append_msn_to_cid_tag = no
  359. ; Select what to do with outgoing COLP information on this port.
  360. ;
  361. ; 0 - Send out COLP information unaltered. (default)
  362. ; 1 - Force COLP to restricted on all outgoing COLP information.
  363. ; 2 - Do not send COLP information.
  364. outgoing_colp=0
  365. ; Put a display ie in the CONNECT message containing the following
  366. ; information if it is available (nt port only):
  367. ;
  368. ; 0 - Do not put the connected line information in the display ie.
  369. ; 1 - Put the available connected line name in the display ie.
  370. ; 2 - Put the available connected line number in the display ie.
  371. ; 3 - Put the available connected line name and number in the display ie.
  372. ;
  373. display_connected=0
  374. ; Put a display ie in the SETUP message containing the following
  375. ; information if it is available (nt port only):
  376. ;
  377. ; 0 - Do not put the caller information in the display ie.
  378. ; 1 - Put the available caller name in the display ie.
  379. ; 2 - Put the available caller number in the display ie.
  380. ; 3 - Put the available caller name and number in the display ie.
  381. ;
  382. display_setup=0
  383. ; This enables echo cancellation with the given number of taps.
  384. ; Be aware: Move this setting only to outgoing portgroups!
  385. ; A value of zero turns echo cancellation off.
  386. ;
  387. ; possible values are: 0,32,64,128,256,yes(=128),no(=0)
  388. ;
  389. ; default value: no
  390. ;
  391. ;echocancel=no
  392. ;
  393. ; chan_misdns jitterbuffer, default 4000
  394. ;
  395. jitterbuffer=4000
  396. ;
  397. ; change this threshold to enable dejitter functionality
  398. ;
  399. jitterbuffer_upper_threshold=0
  400. ;
  401. ; change this to yes, if you want to bridge a mISDN data channel to
  402. ; another channel type or to an application.
  403. ;
  404. hdlc=no
  405. ;
  406. ; defines the maximum amount of incoming calls per port for
  407. ; this group. Calls which exceed the maximum will be marked with
  408. ; the channel variable MAX_OVERFLOW. It will contain the amount of
  409. ; overflowed calls
  410. ;
  411. max_incoming=-1
  412. ;
  413. ; defines the maximum amount of outgoing calls per port for this group
  414. ; exceeding calls will be rejected
  415. ;
  416. max_outgoing=-1
  417. ;
  418. ; Enable/disable the call-completion retention option support (ptp only).
  419. ;
  420. ; Note: To use the CCBS/CCNR supplementary service feature and other
  421. ; supplementary services using FACILITY messages requires a
  422. ; modified version of mISDN from:
  423. ; http://svn.digium.com/svn/thirdparty/mISDN/trunk
  424. ; http://svn.digium.com/svn/thirdparty/mISDNuser/trunk
  425. ;
  426. cc_request_retention=yes
  427. [intern]
  428. ; define your ports, e.g. 1,2 (depends on mISDN-driver loading order)
  429. ports=1,2
  430. ; context where to go to when incoming Call on one of the above ports
  431. context=Intern
  432. [internPP]
  433. ;
  434. ; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn
  435. ; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding
  436. ; configs. For backwards compatibility you can still set ptp here.
  437. ;
  438. ports=3
  439. [first_extern]
  440. ; again port defs
  441. ports=4
  442. ; again a context for incoming calls
  443. context=Extern1
  444. ; msns for te ports, listen on those numbers on the above ports, and
  445. ; indicate the incoming calls to asterisk
  446. ; here you can give a comma separated list or simply an '*' for
  447. ; any msn.
  448. msns=*
  449. ; here an example with given msns
  450. [second_extern]
  451. ports=5
  452. context=Extern2
  453. callerid="Asterisk" <1234>
  454. msns=102,144,101,104