Différences
Ci-dessous, les différences entre deux révisions de la page.
documentation:yate_tdmoe [2012/06/02 02:04] shimaore [Compilation of dahdi-linux and dahdi-tools] ENABLE_TASKLETS |
documentation:yate_tdmoe [2012/09/17 08:15] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Tester SS7 entre deux machines virtuelles avec Yate et TDMoE ====== | ||
- | |||
- | Note: TDMoE utilise beaucoup de CPU, et ne transmet que 1000 fois / seconde. Cette configuration fonctionne mais la qualité audio est très mauvaise, et le CPU est à 100% pour un appel (environ 50% sans appel). | ||
- | |||
- | ===== Build a DAHDI TDMoE span ===== | ||
- | |||
- | ==== Compilation of dahdi-linux and dahdi-tools ==== | ||
- | |||
- | Testé avec: | ||
- | http:// | ||
- | http:// | ||
- | mais des paquets Debian existent. | ||
- | |||
- | Note: dans dahdi-linux, | ||
- | |||
- | #undef ENABLE_TASKLETS | ||
- | |||
- | Remplacer ''# | ||
- | |||
- | # Virtual Machines 10 and 11 (in my setup) | ||
- | aptitude install linux-headers-amd64 linux-image-amd64 grub | ||
- | # put grub on /dev/sda | ||
- | |||
- | ==== Configuration details ==== | ||
- | |||
- | See below for proper example. | ||
- | |||
- | # / | ||
- | # Notice how we specify the _actual_ number of channels | ||
- | # (24 for T1, 31 for E1) | ||
- | # The MAC Address is the address of the remote (far) end. | ||
- | dynamic=ethmf, | ||
- | # etc., see below. | ||
- | |||
- | ( based on http:// | ||
- | |||
- | ==== Starting the TDMoE link ==== | ||
- | |||
- | modprobe dahdi | ||
- | dahdi_cfg | ||
- | |||
- | ===== Yate ===== | ||
- | |||
- | ==== Compile ==== | ||
- | |||
- | Ma copie locale du code SVN | ||
- | http:// | ||
- | sinon | ||
- | svn checkout http:// | ||
- | |||
- | Compiler: | ||
- | |||
- | aptitude install sox libspandsp-dev | ||
- | |||
- | ./ | ||
- | ./configure | ||
- | make | ||
- | |||
- | Start with | ||
- | sudo ./run -v | ||
- | |||
- | sudo est nécessaire pour l' | ||
- | FIXME: comment modifier udev pour que ce ne soit pas nécessaire (creer un group " | ||
- | |||
- | ==== Configure ==== | ||
- | |||
- | Voir par exemple | ||
- | http:// | ||
- | |||
- | Pour créer à partir des templates existantes: | ||
- | ( cd conf.d && mv zapcard.conf.sample zapcard.conf ) | ||
- | |||
- | ===== Working Configurations ===== | ||
- | |||
- | ==== Host 10 ==== | ||
- | |||
- | Local MAC: 52: | ||
- | |||
- | / | ||
- | |||
- | dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | bchan=1-30 | ||
- | dchan=31 | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | format=alaw | ||
- | [span1] | ||
- | type=E1 | ||
- | offset=0 | ||
- | sigchan=31 | ||
- | voicechans=1-30 | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | dtmfinband=true | ||
- | [isup1] | ||
- | type=ss7-isup | ||
- | pointcodetype=ITU | ||
- | pointcode=1011 | ||
- | defaultpointcode=1011 | ||
- | remotepointcode=1012 | ||
- | router=ss7router | ||
- | voice=span1 | ||
- | range=span1: | ||
- | strategy-restrict=even-fallback | ||
- | format=alaw | ||
- | print-messages=yes | ||
- | [linkset1] | ||
- | type=ss7-mtp3 | ||
- | netind2pctype=ITU | ||
- | adjacent=ITU, | ||
- | local=ITU, | ||
- | router=ss7router | ||
- | link=span1, | ||
- | [span1] | ||
- | type=ss7-mtp2 | ||
- | [ss7router] | ||
- | type=ss7-router | ||
- | local=ITU, | ||
- | |||
- | conf.d/ | ||
- | |||
- | [priorities] | ||
- | [$once] | ||
- | [$init] | ||
- | [extra] | ||
- | [contexts] | ||
- | [default] | ||
- | ^99991001$=tone/ | ||
- | ^99991002$=tone/ | ||
- | ^99991003$=tone/ | ||
- | ^99991004$=tone/ | ||
- | ^99991005$=tone/ | ||
- | ^99991006$=tone/ | ||
- | ^99991007$=tone/ | ||
- | ^99991008$=tone/ | ||
- | ^123$=tone/ | ||
- | |||
- | We'll be using 123 for tests. | ||
- | |||
- | ==== Host 11 ==== | ||
- | |||
- | Local MAC: 52: | ||
- | |||
- | / | ||
- | |||
- | dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | # dynamic=ethmf, | ||
- | bchan=1-30 | ||
- | dchan=31 | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | format=alaw | ||
- | [span1] | ||
- | type=E1 | ||
- | offset=0 | ||
- | sigchan=31 | ||
- | voicechans=1-30 | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | dtmfinband=true | ||
- | [isup1] | ||
- | type=ss7-isup | ||
- | pointcodetype=ITU | ||
- | pointcode=1012 | ||
- | defaultpointcode=1012 | ||
- | remotepointcode=1011 | ||
- | router=ss7router | ||
- | voice=span1 | ||
- | range=span1: | ||
- | strategy-restrict=odd-fallback | ||
- | format=alaw | ||
- | print-messages=yes | ||
- | [linkset1] | ||
- | type=ss7-mtp3 | ||
- | netind2pctype=ITU | ||
- | adjacent=ITU, | ||
- | local=ITU, | ||
- | router=ss7router | ||
- | link=span1, | ||
- | [span1] | ||
- | type=ss7-mtp2 | ||
- | [ss7router] | ||
- | type=ss7-router | ||
- | local=ITU, | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | [registrar] | ||
- | [sip-t] | ||
- | [codecs] | ||
- | default=disable | ||
- | alaw=enable | ||
- | [methods] | ||
- | [hacks] | ||
- | [listener sip1] | ||
- | type=udp | ||
- | |||
- | |||
- | conf.d/ | ||
- | |||
- | [priorities] | ||
- | [$once] | ||
- | [$init] | ||
- | [extra] | ||
- | [contexts] | ||
- | [default] | ||
- | ^99991001$=tone/ | ||
- | ^99991002$=tone/ | ||
- | ^99991003$=tone/ | ||
- | ^99991004$=tone/ | ||
- | ^99991005$=tone/ | ||
- | ^99991006$=tone/ | ||
- | ^99991007$=tone/ | ||
- | ^99991008$=tone/ | ||
- | ^123$=sig/ | ||
- | |||
- | ==== Other changes ==== | ||
- | |||
- | Autres changements possibles mais pas obligatoires. (A documenter pour avoir une configuration qui soit plus efficace.) | ||
- | |||
- | conf.d/ | ||
- | |||
- | [general] | ||
- | modload=disable | ||
- | [modules] | ||
- | ; production modules | ||
- | rmanager.yate=yes | ||
- | regexroute.yate=yes | ||
- | wpcard.yate=yes | ||
- | yrtpchan.yate=yes | ||
- | ysigchan.yate=yes | ||
- | ysipchan.yate=yes | ||
- | wavefile.yate=yes | ||
- | tonedetect.yate=yes | ||
- | ; test modules | ||
- | zapcard.yate=yes | ||
- | tonegen.yate=yes | ||
- | [localsym] | ||
- | [nounload] | ||
- | [preload] | ||
- | [postload] | ||
- | [debug] | ||
- | [telephony] | ||