[Gpephone-devel] How to make phoneserver adapt to different types of modem?
yu tang
tangyu619 at yahoo.com.cn
Thu Mar 15 05:59:54 CET 2007
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.
---------------------------------
雅虎免费邮箱-3.5G容量,20M附件
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxtogo.org/pipermail/gpephone-devel/attachments/20070315/5f4541bc/attachment.htm
More information about the Gpephone-devel
mailing list