[Asterisk-Users] Does Wildcard x100p support BT Caller ID inUK? [now] outside the US?
Dan
dtoma at fx.ro
Thu Aug 7 23:06:52 MST 2003
Hi,
Did you get something as caller id from the X100P card?
With the original code, in my situation the callerid information taken by
the X100P card was my own PSTN number.
With a very small change in the source code (commenting one line in
callerid.c source file) everithing now is ok.
This is that part of the code:
You can start commenting first 'case 4: statement then one by one the other
ones.
In my case, commenting case 3: statement solve my problem.
/* MDMF */
/* Go through each element and
process */
for (x=0;x< cid->pos;) {
switch(cid->rawdata[x++]) {
case 1:
/* Date */
break;
case 2: /* Number */
/*case 3: Number (for
Zebble) */
case 4: /*Number */
res =
cid->rawdata[x];
if (res > 32) {
ast_log(LOG_NOTICE, "Truncating long caller ID number from %d bytes
to 32\n", cid->rawdata[x]);
res = 32;
}
memcpy(cid->number,
cid->rawdata + x + 1, res);
/* Null terminate */
cid->number[res] =
'\0';
break;
case 7: /* Name */
case 8: /* Name */
res =
cid->rawdata[x];
if (res > 32) {
ast_log(LOG_NOTICE, "Truncating long caller ID name from %d bytes to
32\n", cid->rawdata[x]);
res = 32;
}
memcpy(cid->name,
cid->rawdata + x + 1, res);
cid->name[res] =
'\0';
break;
BR,
Dan
----- Original Message -----
From: "Dave Cotton" <dcotton at linuxautrement.com>
To: "Asterisk List" <asterisk-users at lists.digium.com>
Sent: Friday, August 08, 2003 8:55 AM
Subject: Re: [Asterisk-Users] Does Wildcard x100p support BT Caller ID inUK?
[now] outside the US?
> On Fri, 2003-08-08 at 01:28, Armand A. Verstappen wrote:
> > Hi Martin,
> >
> > On Fri, 2003-08-08 at 00:16, Martin Stubbs wrote:
> > > Unfortunately the present x100p driver code will not decode the
callerid for 2
> > > reasons
> > >
> > > 1) the UK protocol is different to the US system.
>
> As it's French this is certainly the case for us here in France (see the
> PAL/SECAM fiasco)
>
> > > I have downloaded the specs and coding it would not be too difficult.
>
> > Maybe you could open a bug for it, and attach the specs / a link to
> > those specs?
>
> Yes then I might know where to start for the French system.
>
> > > 2) in the US the callerid is sent between the first and second rings.
In the
> > > UK the callerid is sent before the first ring.
> >
> > Same in the Netherlands.
> --
> Dave Cotton <dcotton at linuxautrement.com>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
More information about the asterisk-users
mailing list