RE: chan_lcr change call ID
Aristeidis Tsitras <[email protected]> Wed, 13 Aug 2014 09:46:57 +0000
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
That seems nice. how shall i implement the exten => _X.,n,Set(CALLERPRES()=prohib) how do you set it up for a particular extension eg 504? > Date: Wed, 13 Aug 2014 11:19:59 +0200 > From: [email protected] > To: [email protected] > Subject: Re: chan_lcr change call ID > > aris tsitras schrieb: > > Hi, thanks for the reply. > > > > i have tried it but i think i got it messed up. > > -first of all do i need to have the setup in genextension 501 1 > > 00302108967542 for each extension and msn? > I don´t use any extensions in lcr. All stuff is done with asterisk. > > I also have the following things configured in lcr to route everything > from and to asterisk. > You need to change it to maybe ptp ? > routing.conf > [main] > interface=dialin : remote application=asterisk context=Extern > interface=dialout : remote application=asterisk context=MSN > #interface=Int : remote application=asterisk context=default > interface=Int : outdial interfaces=dialin > > and also in interface.conf for ptp port > > [dialin] > earlyb yes > screen-in international % unknown 00% > screen-in national % unknown 0% > screen-in subscriber % unknown 02207% > portnum 4 > nodtmf > layer2hold yes > ptp > > my extensions for this in asterisk look similar to this.(You need to > change to you needs. This are just hints.) > > [default] > ;Für Tbox direkt abfragen > exten => > 08003302424,1,Dial(LCR/dialin/08003302424/:s:t,40,D(ww0w0wwwwwwwww3w3w2w3w)) > ..... > > [Extern] > exten => 0302108967542,1,NoOp(${EXTEN}:${CALLERID(num)}) > exten => 0302108967542/01930100,2,Goto(SMSIN,${EXTEN},1) > exten => 0302108967542,2,NoOp(Keine SMS) > exten => 0302108967542,n,Set(CHANNEL(language)=de) > exten => 0302108967542,n,Set(CHANNEL(musicclass)=default) > exten => 0302108967542,n,lcr_config(eoslec(deftaps=256):n) > exten => 0302108967542,n,Ringing > exten =>0302108967542,n,Dial(LCR/dialout/12345/) > exten =>0302108967542,n,Dial(SIP/12) > ... > [MSN] > ;Hauptnummer lässt alle Telefone klingeln > exten => 0302108967542,1,NoOp(${EXTEN}:${CALLERID}) > exten => 0302108967542/01930100,2,Goto(SMSIN,${EXTEN},1) > exten => 0302108967542,2,NoOp(Keine SMS) > exten => 0302108967542,n,lcr_config(n:eoslec) > exten =>0302108967542,n,GotoIf($["${CALLERID(num)}" = ""]?anonym) > exten => 0302108967542,n,AGI(reverse1.sh,${CALLERID(num)}) > exten => 030210896754[1-9],1,Set(PRI_CAUSE=28) > exten => 030210896754[1-9],n,Hangup > .... > exten => 030210896754[0-9],n,Dial(SIP/${EXTEN:4}) > exten => 030210896754[0-9],n,Goto(Dstat,s-${DIALSTATUS},1) > .... > > > gl, > > Joerg > > > -the extensions.conf > > exten => _X.,n,Set(CALLERPRES()=allowed) > > exten => _X.,n,Set(CALLERID(num)=*302114008801*) > > exten => _X.,n,Dial(LCR/dialout/${EXTEN}/eoslec(deftaps=256):s:t) > > exten => _X.,n,Goto(Dstat,s-${DIALSTATUS},1) > > > > if i do that all extensions go out with *302114008801. *how do i > > separate each extension to have its own msn on the outgoing call? > > -the lcr: > > [dialout] > > earlyb yes > > screen-in international % unknown 00% > > screen-in national % unknown 0% > > screen-out unknown % national % > > portnum 1 > > nodtmf > > ptp > > portnum 2 > > nodtmf > > ptp > > portnum 3 > > nodtmf > > ptp > > > > > > is that for the extensions.conf? also my isdn is in ptmp not ptp. > > -the exten => _X.,n,Set(CALLERPRES()=prohib) how do you set it up > > for a particular extension eg 504? > > > > > > > > sorry but i have lost it > > > > > > On 12/8/2014 12:57, Jörg Esser wrote: > >> > >> Aristeidis Tsitras schrieb: > >>> it seems really good. i will give it a try tonight and let you know. > >>> what if i want to stop sending my caller ID on demand? > >> exten => _X.,n,Set(CALLERPRES()=prohib) > >>> > >>> > Date: Tue, 12 Aug 2014 08:51:47 +0200 > >>> > From: [email protected] > >>> > To: [email protected] > >>> > Subject: Re: chan_lcr change call ID > >>> > > >>> > Hi, > >>> > > >>> > I use the following dailplan in asterisk to change the Number in > >>> lcr. (I > >>> > also need to subscribe it at the german telekom,but I have an > >>> > Anlagenanschluss=english?) > >>> > > >>> > > >>> > exten => _X.,n,Set(CALLERPRES()=allowed) > >>> > ;since asterisk 1.6 you can use CALLERID(ton) so you don´t need to > >>> set > >>> > the screen option in LCR ? > >>> > ;type of number 0=unknown, 1=International, 2=national, 4=subsciber > >>> > ;exten => _X.,n,Set(CALLERID(ton)=2) > >>> > exten => _X.,n,Set(CALLERID(num)=302114008801) > >>> > exten => _X.,n,Dial(LCR/dialout/${EXTEN}/eoslec(deftaps=256):s:t) > >>> > exten => _X.,n,Goto(Dstat,s-${DIALSTATUS},1) > >>> > > >>> > Maybe you need to change it to your needs. > >>> > lcr: > >>> > [dialout] > >>> > earlyb yes > >>> > screen-in international % unknown 00% > >>> > screen-in national % unknown 0% > >>> > screen-out unknown % national % > >>> > portnum 1 > >>> > nodtmf > >>> > ptp > >>> > portnum 2 > >>> > nodtmf > >>> > ptp > >>> > portnum 3 > >>> > nodtmf > >>> > ptp > >>> > > >>> > Aristeidis Tsitras schrieb: > >>> > > some help please? > >>> > > > >>> > > > >>> ------------------------------------------------------------------------ > >>> > >>> > > From: [email protected] > >>> > > To: [email protected] > >>> > > Subject: chan_lcr change call ID > >>> > > Date: Thu, 17 Jul 2014 07:49:37 +0000 > >>> > > > >>> > > hello everyone. > >>> > > > >>> > > i am running asterisk and i do need to have my isdn in the box. > >>> > > i have installed lcr and all necessary dependencies. i can > >>> receive and > >>> > > route calls correctly to the appropriate extension. my ISDN has > >>> a head > >>> > > number(00302114008801) and 2 msn (00302108967542, > >>> 00302130076549). the > >>> > > problem is that all calls are made and show only the head number > >>> and > >>> > > not msn. how do i make this work? > >>> > > also, it does not work the suppression of the caller ID > >>> (*31*number). > >>> > > the mapping i would like to do is: > >>> > > -extension 500 to show 00302114008801 when place calls. That one > >>> works > >>> > > -extension 501 to show 00302108967542 when place calls. It does not > >>> > > work, it shows the head number instead. > >>> > > -extension 502 to show 00302130076549when place calls. It does not > >>> > > work, it shows the head number instead. > >>> > > -extension 503 to place calls through 00302114008801 but without > >>> > > showing a number on the outside world (*31*). It does not work, it > >>> > > shows the head number instead. > >>> > > > >>> > > > >>> > > i have done the genextension 501 1 00302108967542 without any luck. > >>> > > > >>> > > > >>> > > some help please! > >>> > > > >>> > > _______________________________________________ isdn4linux mailing > >>> > > list [email protected] > >>> > > https://www.isdn4linux.de/mailman/listinfo/isdn4linux > >>> > > >>> > > >>> > -- > >>> > Gruss, Joerg > >>> > _______________________________________________ > >>> > isdn4linux mailing list > >>> > [email protected] > >>> > https://www.isdn4linux.de/mailman/listinfo/isdn4linux > >> > >> > > > > > -- > Gruss, Joerg > _______________________________________________ > isdn4linux mailing list > [email protected] > https://www.isdn4linux.de/mailman/listinfo/isdn4linux _______________________________________________ isdn4linux mailing list [email protected] https://www.isdn4linux.de/mailman/listinfo/isdn4linux