[chan-capi-users] Hints for respond to incoming calls

Andreas Ruf andreas_ruf at gmx.net
Tue Apr 7 17:36:39 CEST 2009


Am Montag, den 06.04.2009, 22:29 +0200 schrieb Armin Schindler:

> Yes, your log shows that the connctednumber is set in connectedsubaddress.
> This is wrong. I guess the phone just display connectednumber AND 
> connectedsubaddress, and that's why you see the doubled number.

> >> From your experience, are these settings appropriate?
Thanks for the tips

> > capi.conf:
> > [general]
> > nationalprefix=0
> > internationalprefix=049
> 
> this should be just 00
corrected

> 
> > ;subscriberprefix=+4969
> > ;defaultcid=Stammnummer+0
> > rxgain=-0.5       ;reinkommende Lautstaerke
> > txgain=0.47      ;rausgehende Lautstaerke
> 
> why not just 1.0 as with normal ISDN telephony?
Had something to do with different internal/external levels of volume.
Probably we change in the future.

> 
> > language=de      ;set default language
> >
> > ; Anlagenanschluss
> > ;;;;;;;;;;;;;;;;;
> > [isdn_port1]
> > isdnmode=did
> > incomingmsn=*
> > controller=1
> > group=1
> > faxdetect=off
> > accountcode=isdn_port1
> > context=isdn_in_port1
> > softdtmf=off
> > immediate=no
> > overlapdial=yes
> 
> overlapdial does not exist for chan_capi!
corrected


> 
> > [Apr  2 18:18:48] VERBOSE[9287] logger.c: CONNECT_RESP ID=002 #0x8382
> > LEN=0043
> >  Controller/PLCI/NCCI            = 0x101
> >  Reject                          = 0x0
> >  BProtocol
> >   B1protocol                     = 0x1
> >   B2protocol                     = 0x1
> >   B3protocol                     = 0x0
> >   B1configuration                = default
> >   B2configuration                = default
> >   B3configuration                = default
> >  ConnectedNumber                 = default
> >  ConnectedSubaddress             = <01 80>1234536
> >  LLC                             = default
> >  AdditionalInfo                  = default
> 
> Okay, this seems to be the cause of your problem.
> What we see here is that obviously chan_capi sets
> ConnectedSubaddress instead of ConnectedNumber.
> 
> But the field GlobalConfiguration before ConnectedNumber is missing.
> That's the reason why the value set afterwards is one entry too late.
> 
> So my conclusion is that your libcapi20 (which is in charge of using and
> showing these values) is buggy!!! It is not acting according to CAPI 2.0 
> standard.
Cited: the manufacturer's (and developer of the libcapi20) answers to my (two) questions regarding the above

-The struct GlobalConfiguration seems to be not implemented in your libcapi20?
"...die Zusatzfunktionen, die sich die Linux-Enwickler ausgedacht haben, kannten in den ersten Versionen diese GlobalConfiguration nicht. Um nun auf der einen Seite diese Struktur unterstützen zu können ohne auf der anderen Seite alle älteren Programme kaputtzumachen, haben die eine Version 3 der Library gemacht, die den Parameter kennt und eine Version 2, die ihn nicht kennt. Das ist der Grund für die zwei libcapi20.so Varianten, die wir installieren (libcapi20.so.2 und libcapi20.so.3).
Standardmässig werden Anwendungen unter Linux mit dem Parameter
CAPI_LIBRARY_V2 übersetzt, dann verwenden Sie die libcapi20.so.2 und
benutzen GlobalConfiguration nicht. Durch ein paar Modifikationen an der
jeweiligen Anwendung lässt sich die libcapi20.so.3 verwenden..."

-Could applications (like chan_capi) relying on the correct
implementation of this struct be misbehaving, if struct is not
implemented?
"...Ihre zweite Frage lässt sich generisch nicht beantworten. Ein Blick
in die chan_capi Sourcen (im Internet frei verfügbar) zeigt jedoch, dass
die aktuelle Version die Linux-Funktionen gar nicht verwendet, sondern
die CAPI Nachrichten selbst formatiert (wie es auch richtig ist).
chan_capi kontrolliert die Erzeugung von CAPI Nachrichten also
vollständig selbst und ist der Ansicht, dass eine leere
GlobalConfiguration Struktur in Ordnung ist (stimmt auch)..."




Does chan_capi compile against libcapi20.so.3?
Do you have any suggestions how to remedy the above?


Totally confused
Andreas Ruf
> 
> _______________________________________________
> Chan-capi-users mailing list
> Chan-capi-users at lists.melware.net
> http://lists.melware.net/mailman/listinfo/chan-capi-users



More information about the Chan-capi-users mailing list