FAQ chan lcr

From mISDN.org

Jump to: navigation, search

Contents

FAQ

available chan_lcr options

Asterisk CLI

core show application lcr_config

 -= Info about application 'lcr_config' =-

[Synopsis]
lcr_config

[Description]
lcr_config(<opt><optarg>:<opt>:...)
Sets LCR opts. and optargs

The available options are:
    d - Send display text on called phone, text is the optarg.
    n - Don't detect dtmf tones on called channel.
    h - Force data call (HDLC).
    t - Disable mISDN_dsp features (required for fax application).
    q - Add queue to make fax stream seamless (required for fax app).
        Use queue size in miliseconds for optarg. (try 250)
    f - Adding fax detection. It it timeouts, mISDN_dsp is used.
        Use time to detect for optarg.
    c - Make crypted outgoing call, optarg is keyindex.
    e - Perform echo cancelation on this channel.
        Takes mISDN pipeline option as optarg.
    s - Send Non Inband DTMF as inband.
    r - re-buffer packets (160 bytes). Required for some SIP-phones and fax applications.
   vr - rxgain control
   vt - txgain control
        Volume changes at factor 2 ^ optarg.
    k - use keypad to dial this call.

set LCR_TRANSFERCAPABILITY to the numerical bearer capabilty in order to alter caller's capability
 -> use 16 for fax (3.1k audio)

To send a fax, you need to set LCR_TRANSFERCAPABILITY environment to 16, also you need to set
options: "n:t:q250" for seamless audio transmission.


[Syntax]
Not available

[Arguments]
Not available

[See Also]
Not available

How do I enable the OSLEC echo cancelor

Use lcr_config if on an mISDN channel

exten => XYZ,1,lcr_config(eoslec)

or

exten => XYZ,1,lcr_config(eoslec(deftaps=128))

Use dial from other channels like SIP

exten => XYZ,1,Dial(LCR/<interface>/<destination>/eoslec(deftaps=128))

How can I send DTMF to the called Number

Example to change the notification number from your TNet-Box(Germany) from your own destination

exten => 08003302424,1,Dial,LCR/<interface>/08003302424/:s:t|40|D(www0wwwwwww3323#0190668668**00)

Watch out !
1. Also using the n Option won´t work e.g. s:n because Asterisk sends DTMF and chan_lcr ignores them and won´t let them go to the mISDN channel.
2. Timing for the TNet-Box is critical so make use from w for waits of 0,5 sec.

Howto use clip no screening

asterisk dialplan:

exten => _X.,n,SetCallerPres(allowed)
exten => _X.,n,Set(CALLERID(num)=8912345678))
exten => _X.,n,Dial,LCR/ext/${EXTEN}

Watch out !
For Germany leave out the 0 in front of the number. To send 08912345678 CALLERID(num) should be the above.

lcr interface.conf:

screen-out unknown % national %

Callforwarding with Keypad Elements

You can modify the Callforwarding rules at your providers switch. To do that chan_lcr supports keypad Elements.
This is right now tested on German Telekom Switches.
Here are some info about keypad and what you can do with it.
To use keypad with chan_lcr use the k Option from chan_lcr.

A sample dialplan could look like:

;Enable Callforward
;Forwards the call to German T-NetBox
exten => AB-an,1,Dial(LCR/dialin/*21*08003302424*7605#/k)
exten => AB-an,n,Hangup

;Disable Callforward
exten => aus,1,Dial(LCR/dialin/#21*7605#/k)
exten => aus,n,Hangup
Personal tools