[Gpephone-devel] How to make phoneserver adapt to different typesof modem?

Dirk Sigurdson dsigurdson at a-la-mobile.com
Thu Mar 15 16:41:39 CET 2007


Another option would be to define a shared library interface and to  
have the phoneserver load the correct library based on configuration.

Dirk


On Mar 14, 2007, at 10:48 PM, JIANG Dan RD-ILAB-PEK wrote:

> Yes.
>
> This method could deal with some asynchronous calls, such as Dial  
> out, Hold, Hangup, etc.
>
> But how does it handler the unsolited event, such as incoming call,  
> call status indication?
> For different modem, the format of message  which is sent to  
> phoneserver may be different.
> Phoneserver has to analysis the message with certain rules to get  
> proper information.
>
> How could this be solved?
>
> Is there other method available?
>
>
>
>
>
> From: gpephone-devel-bounces at linuxtogo.org [mailto:gpephone-devel- 
> bounces at linuxtogo.org] On Behalf Of yu tang
> Sent: 2007年3月15日 13:00
> To: gpephone-devel at linuxtogo.org
> Subject: [Gpephone-devel] How to make phoneserver adapt to  
> different typesof modem?
>
> Hi,
> It is very important to have a good structure of phoneserver to  
> make it adapt to different types of modem.
> Here is some idea which may be a start of discussion.
> A config file is read when phoneserver is started. The config file  
> includes the configuration information of modem,
> Such as:
> SERIAL_PORT: {/dev/ttyS0}
> SERIAL_BAUDRATE: {...}
> ATCOMMAND_BUFFER_SIZE:{...}
> //format of AT command sent and repsonse message
> //FUNCTION : COMMAND: RESPONSE
> DIAL:{ ATD<number>;}:{OK}
> CONFERENCE:{+CHLD=3 }: {PPURC:8192,,4}
> …..
> So each config file corresponds to one different modem. When  
> phoneserver starts, it read the config file.
> When phoneserver need to DIAL a call out, it founds out that the  
> command should be DIAL:{ ATD<number>;}:{OK}, and the response  
> should be OK.
> The idea is very rough, comments are welcome.
> Thanks.
>
> _______________________________________________
> Gpephone-devel mailing list
> Gpephone-devel at linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/gpephone-devel




More information about the Gpephone-devel mailing list