[asterisk-dev] Looking for help for building chan_datacard.

Artem Makhutov artem at makhutov.org
Tue Sep 8 03:03:41 CDT 2009


Hello,

On Tue, Sep 08, 2009 at 03:24:19PM +0800, gmpp wrote:
> Hi Artem,
> 
> First, Thanks for you and Dave developed such a great project!
> 
> I am searching a solution which could dial phone call using asterisk by
> mobile phone, GSM gateway or modem for a long time.
> 
> I already tried some solutions ,for example, chan_mobile and GSM gateway,
> but voice quality and usability is not good enough.

Yes, I was also using it some time before, but I always run into problems
where my mobile phones stopped to work after a few calls and I have to remove
the battery to get them working again and such funny things.

I believe that there were problems with the RF-Frequencies as I had too many
bluetooth devices at one place.

> Two week ago I found odicha's solution which is similar to your project call
> "chan_sebi".
> 
> I successful build and install chan_sebi on my system using Elastix
> 1.5.2(CentOS 5, asterisk 1.4.)
> 
> But I am facing another problem about chan_sebi could not handle DTMF which
> send from remote user,and sound form remote user had 1~2 second delay.

I am working together with odicha on chan_datacard.
I have not tried out chan_sebi, but chan_datacard has no problems with audio
delay for me.

I have also not tried out DTMF soo far, but will do it in the near future. As
faar as I can see the datacards support DTFM stuff so this should be no
problem.
 
> Lucky I found your project four days ago.
> 
> But I got some problem when building chan_datacard.
> 
> I already tried build chan_datacard in Trixbox(Asterisk 1.4 and 1.6) and
> Elastix 1.5.2 (Asterisk 1.4 ).
> 
> Sadly I got some error like below:
> 
> Generating embedded module rules ...
>    [CC] chan_datacard.c -> chan_datacard.o
> chan_datacard.c:81: warning: function declaration isn't a prototype
> chan_datacard.c:82: warning: function declaration isn't a prototype
> chan_datacard.c: In function 'dc_audio_read':
> chan_datacard.c:931: error: request for member 'ptr' in something not a
> structure or union
> chan_datacard.c:933: error: request for member 'ptr' in something not a
> structure or union
> chan_datacard.c:946: error: request for member 'ptr' in something not a
> structure or union
> chan_datacard.c: In function 'dc_audio_write':
> chan_datacard.c:985: error: request for member 'ptr' in something not a
> structure or union
[removed some warnings]
> chan_datacard.c: In function 'dc_load_device':
> chan_datacard.c:3445: error: 'DSP_FEATURE_DIGIT_DETECT' undeclared (first
> use in this function)
> chan_datacard.c:3445: error: (Each undeclared identifier is reported only
> once
> chan_datacard.c:3445: error: for each function it appears in.)
> chan_datacard.c:3446: warning: implicit declaration of function
> 'ast_dsp_set_digitmode'
> chan_datacard.c: At top level:
> chan_datacard.c:3515: warning: function declaration isn't a prototype
> chan_datacard.c:3528: warning: function declaration isn't a prototype
> chan_datacard.c: In function 'load_module':
> chan_datacard.c:3597: warning: passing argument 2 of
> 'ast_register_application2' from incompatible pointer type
> chan_datacard.c:3598: warning: passing argument 2 of
> 'ast_register_application2' from incompatible pointer type
> make[1]: *** [chan_datacard.o] Error 1
> make: *** [channels] Error 2
> 
> Could you show me a direction how to build your chan_datacard.c ?
> 
> Maybe I always build your project in wrong environment or wrong way.  Q-Q
> 
> I would appreciate it very much if you would help me with it.
> 
> Thank you in advance for your help and best regards,

I am building chan_datacard agains asterisk 1.6.2-rc1.

I will try to build it agains earlier versions of asterisk.

But I must say, that chan_datacard is NOT ready for prodution now!
It sill has some seroius bugs with incorect terminated AT-Commands sometimes
send by the datacards and multiline SMS.

It can work for some calls but I am pretty sure that it will get "out of sync"
with the datacard after a while. So please only use it for testing purposes.

Regards, Artem



More information about the asterisk-dev mailing list