[Asterisk-Users] Asterisk ISDN: Problem Setting CallerID as DID Extension Numbers.

Armin Schindler armin at melware.de
Mon Sep 19 01:06:53 MST 2005


On Mon, 19 Sep 2005, Voicomm User wrote:
> Thanks very much Armin.
> 
> After migrating to chan_capi-cm, the issue now is, everytime a dial 
> statement is 
> executed, it fails and restarts asterisk! The restart I believe is due to 
> safe_asterisk 
> script. So, in my opinion chan_capi-cm terminates asterisk process abruptly. 
> 
> When I replace the driver, everything comes back fine. I have updated the 
> dial 
> syntax to suit the new driver. My Dial command now is Dial(CAPI/g1/<dialled 
> #>,30), 
> I have even tried Dial(CAPI/contr1/<dialled #>,30)
> 
> Unfortunately there arent many messges displayed on CLI, since asterisk gets
> a SIGSEGV.

Can you create a backtrace (generating core file using option -g) ?
 
> Have people in this list had any successfull implementation with 
> chan_capi-cm 
> driver and Eicon Hardware?

Which version of chan_capi-cm do you use?
Have you tried latest CVS HEAD? This will become chan_capi-cm-0.6 soon
and has many new features and of course fixes.

Armin

> On 8/28/05, Armin Schindler <armin at melware.de> wrote:
> > 
> > On Sun, 28 Aug 2005, Voicomm User wrote:
> > > Hello Group,
> > >
> > > Current Setup:
> > > - Eicon Quad BRI ISDN Card.
> > > - 4 ISDN BRI (Telco: Telstra) Onramp2 services.
> > > - Mode: Point2Point.
> > > - 100 Indial Number ranges. Full National Number (9 digit format): 
> > BAAAAAAXX
> > >
> > > where: B (Area code): 2/3/7/8
> > > A (Normal Numbers)
> > > X (99 Indial extensions)
> > > eg: BAAAAAA00
> > > BAAAAAA20 etc
> > > Requirement:
> > > - To be able send Indial numbers as Caller ID when dialing out.
> > >
> > > Configration:
> > > capi.conf
> > > ---------
> > >
> > > [general]
> > > nationalprefix=0
> > > internationalprefix=00
> > > rxgain=0.8
> > > txgain=0.8
> > >
> > > [interfaces]
> > > mode=immediate
> > > isdnmode=ptp
> > > msn=BAAAAAA
> > > incomingmsn=*
> > > controller=1
> > > softdtmf=1
> > > accountcode=
> > > context=main-menu
> > > usecallerid=yes
> > > callerid=asreceived
> > > ;echosquelch=1
> > > ;echocancel=yes
> > > ;echotail=64
> > > callgroup=1
> > > pickupgroup=1
> > > devices=2
> > >
> > > mode=immediate
> > > isdnmode=ptp
> > > msn=BAAAAAA
> > > incomingmsn=*
> > > controller=2
> > > softdtmf=1
> > > accountcode=
> > > context=main-menu
> > > usecallerid=yes
> > > callerid=asreceived
> > > callgroup=1
> > > pickupgroup=1
> > > devices=2
> > >
> > > mode=immediate
> > > isdnmode=ptp
> > > msn=BAAAAAA
> > > incomingmsn=*
> > > controller=3
> > > softdtmf=1
> > > accountcode=
> > > context=main-menu
> > > usecallerid=yes
> > > callerid=asreceived
> > > callgroup=1
> > > pickupgroup=1
> > > devices=2
> > >
> > >
> > > mode=immediate
> > > isdnmode=ptp
> > > msn=BAAAAAA
> > > incomingmsn=*
> > > controller=4
> > > softdtmf=1
> > > accountcode=
> > > context=main-menu
> > > usecallerid=yes
> > > callerid=asreceived
> > > callgroup=1
> > > pickupgroup=1
> > > devices=2
> > >
> > >
> > > extensions.conf
> > >
> > > [mob-service]
> > > ; Calleridnum is of the format 0BAAAAAAXX and TRUNKMSD = 1, TRUNKCAPI = 
> > CAPI
> > > exten =>
> > > ${PAT-MOB},1,Dial(${TRUNKCAPI}/${CALLERIDNUM:1}:${EXTEN:${TRUNKMSD}},,t)
> > >
> > >
> > > Problem:
> > > When dialling out the number *always* defaults to the default service
> > > number.
> > > I have contacted the telco and they have confirmed they expect the 
> > caller id
> > > in 9
> > > digit format. I tried modifying msn value in capi.conf to include more 
> > comma
> > >
> > > separated Full National Numbers of users internally. Eg.
> > >
> > > 
> > msn=BAAAAAA00,BAAAAAA06,BAAAAAA07,BAAAAAA08,BAAAAAA09,BAAAAAA10,BAAAAAA11,BAAAAAA12,BAAAAAA13,BAAAAAA14,BAAAAAA15,BAAAAAA16,BAAAAAA17,BAAAAAA20,BAAAAAA21,BAAAAAA22
> > >
> > > This works fine upto BAAAAAA17, but for numbers from extentions 20 
> > onwards I
> > > get
> > > a 'msn not found! check your config error'.
> > >
> > > Can anyone please shed somelight on whether this is really possible (to 
> > be
> > > able
> > > to send DID numbers as caller ID when dialling out)? I have read some 
> > posts
> > > indicating more than 5 msns is not possible, but in my case I have
> > > definetely
> > > got it working with more than 5 msns atleast. No source clearly 
> > indicated if
> > > this
> > > is possible, and if yes, how.
> > 
> > Use chan_capi-cm from sourceforge.net <http://sourceforge.net>, adapt your 
> > capi.conf and the
> > dialstring to new structure (see README of chan_capi-cm) and set your DID
> > with e.g.
> > SetCallerId(15)
> > 
> > Armin
> > 
> >
> 



More information about the asterisk-users mailing list