[Asterisk-Dev] chan_zap bug with hidecallerid?

Martin Pycko martinp at digium.com
Thu May 8 07:30:55 MST 2003


That's what the code did. Now it sets up the call without callerid if
hidecallerid is set to yes.

Martin

On Thu, 8 May 2003, Pauline Middelink wrote:

> On Wed, 07 May 2003 around 11:07:45 -0500, Martin Pycko wrote:
> > Well I looked at the code and with pri_call thereis no hidecallerid.
> > There is l that contains either the callerid number or is empty.
> > I added checking for hidecallerid when initializing the l variable
> > and that should fix this problem. It's in CVS.
>
> Our telco gives out an warning for an empty CALLER ID. I would
> prefer for libpri to setup a call WITHOUT callerid if it detects
> the callerid is empty.
>
> > On Wed, 7 May 2003, Lorenzo Pallara wrote:
> >
> > > Hi all!
> > >     We are taking care of hiding caller ids on E400P and we have a couple of
> > > problems to solve:
> > >
> > > In chan_zap.c the zt_call() passes the following argument to the pri_call():
> > > hidecallerid ? PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN :
> > > PRES_NUMBER_NOT_AVAILABLE,
> > > but the logic is the opposite, isn't it?
> > > hidecallerid ? PRES_NUMBER_NOT_AVAILABLE :
> > > PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN
> > > anyway the correct line for q931, tested in Italy, looks like:
> > > hidecallerid ? PRES_PROHIB_USER_NUMBER_NOT_SCREENED :
> > > PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN
> > >
> > > The value of hidecallerid is specified from zapata.conf but we need to
> > > overwrite it at runtime per call basis, is there already a way or is it
> > > necessary to add information to the ast_channel structure or to the
> > > ast_call() function?
> > >
> > > TIA,
> > >     Lorenzo Pallara
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Asterisk-Dev mailing list
> > > Asterisk-Dev at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > >
> >
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>     Met vriendelijke groet,
>         Pauline Middelink
> --
> GPG Key fingerprint = 2D5B 87A7 DDA6 0378 5DEA  BD3B 9A50 B416 E2D0 C3C2
> For more details look at my website http://www.polyware.nl/~middelink
>




More information about the asterisk-dev mailing list