Jump to content

Archived

This topic is now archived and is closed to further replies.

Buzzchewan

Vgetty/mgetty pour appeler via modem/voix

Recommended Posts

Bonjour à tous,

Voilà le titre est assez explicite sur ce que je tente de réaliser.

Un logiciel mgetty (incluant vgetty) permet de pré-enregistrer des messages vocaux, pour ensuite les envoyer via le modem/voix à mon portable (par exemple).

Il y à eu un topic à ce sujet : http://www.pcinpact.com/forum/index.php?showtopic=26913

C'est à peu près ce que je désire faire, mais même en suivant cette commande :

Callme script

In the examples subdirectory of the source distribution there is a callme.pl script. This dials the given number and plays the given message. Use the following command to run it:

vm shell -S /usr/bin/perl callme.pl <number> <message>.rmd

Le modem fait un léger bruit puis s'éteind :p

Mon vm log me dit ceci :

01/10 16:16:23 vgetty: experimental test release 0.9.33 / 26Dec02

01/10 16:16:23 reading program vm configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf

01/10 16:16:23 opening voice modem device

01/10 16:16:23 opened voice modem device /dev/ttyS0

01/10 16:16:23 reading port ttyS0 configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf

01/10 16:16:23 detecting voice modem type

01/10 16:16:24 V253 modem detected

01/10 16:16:24 initializing V253 voice modem

01/10 16:16:26 vm: Modem returned ERROR

01/10 16:16:27 vm: Executing shell script 5469 with shell callme.pl

01/10 16:16:27 vm: Got child -1 exit status 1701080941 signal

01/10 16:16:28 closing voice modem device

Mes questions sont :

- Dois-je spécifier quelque part une autre information, une config spécial dans un .conf ?

- Si quelqu'un à déjà reussi un projet de ce style pourrait-il me prêter main forte ?

Je ne sais pas si j'ai été très clair,

Merci pour vos réponses ou suggestion ! :francais:

Share this post


Link to post
Share on other sites

Je vous donne ici mon log de vgetty.ttyS0 , si ça peut aider ...

01/10 17:16:10 yS0 lock not made: lock file exists (pid=19119)

--

01/10 17:16:25 yS0 vgetty: experimental test release 0.9.33 / 26Dec02

01/10 17:16:25 yS0 mgetty: experimental test release 1.1.30-Dec16

01/10 17:16:25 yS0 reading generic configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf

01/10 17:16:25 yS0 reading program vgetty configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf

01/10 17:16:25 yS0 reading port ttyS0 configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf

01/10 17:16:25 yS0 check for lockfiles

01/10 17:16:25 yS0 locking the line

01/10 17:16:25 yS0 can't get group 'modem': Success

01/10 17:16:25 yS0 lowering DTR to reset Modem

01/10 17:16:26 yS0 send: \dATQ0V1H0[0d]

01/10 17:16:27 yS0 waiting for ``OK'' ** found **

01/10 17:16:27 yS0 send: ATS0=0Q0&D3&C1[0d]

01/10 17:16:27 yS0 waiting for ``OK'' ** found **

01/10 17:16:27 yS0 mdm_send: 'ATI'

01/10 17:16:27 yS0 non-numeric ID string: '56000 V5.021DS'

01/10 17:16:27 yS0 mdm_send: 'AT+FCLASS=2.0' -> ERROR

01/10 17:16:27 yS0 mdm_send: 'AT+FCLASS=2' -> OK

01/10 17:16:27 yS0 mdm_send: 'AT+FCLASS=0' -> OK

01/10 17:16:27 yS0 mdm_send: 'AT+FAA=1;+FCR=1' -> OK

01/10 17:16:27 yS0 mdm_send: 'AT+FBOR=0' -> OK

01/10 17:16:27 yS0 mdm_send: 'AT+FLID="49 115 xxxxxxxx"' -> OK

01/10 17:16:27 yS0 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK

01/10 17:16:27 yS0 detecting voice modem type

01/10 17:16:28 yS0 V253 modem detected

01/10 17:16:29 yS0 initializing V253 voice modem

01/10 17:16:30 yS0 vgetty: Modem returned ERROR

01/10 17:16:31 yS0 waiting...

Share this post


Link to post
Share on other sites

Pour ceux qui aurait le même soucis, il y avait une erreure dans le scrip callme.pl...

Une erreure de synthaxe... A la ligne 19, il manque un " ; " .

Sinon le téléphone sonne bien, mais je n'entend aucun message.

vm.log (debug 5 ) :

(...)

vm: Executing shell script callme.pl with shell /usr/bin/perl

01/12 10:05:58 vm(0): HELLO SHELL

01/12 10:05:58 shell(1): HELLO VOICE PROGRAM

01/12 10:05:58 vm(1): READY

01/12 10:05:58 vm: initialized communication

01/12 10:05:58 shell(1): DEVICE DIALUP_LINE

01/12 10:05:58 voice command: 'AT+VLS=1' -> 'OK'

01/12 10:05:58 shell(2): ENABLE EVENTS

01/12 10:05:58 vm: Nested command in shell script

01/12 10:05:58 vm(2): ERROR

01/12 10:05:58 vm(1): READY

01/12 10:05:58 shell(1): DIAL 5469

01/12 10:05:58 vm(1): DIALING

01/12 10:06:20 vm(1): ERROR

01/12 10:06:20 vm(1): READY

01/12 10:06:20 shell(1): PLAY /var/spool/voice/messages/root.rmd

01/12 10:06:20 vm(1): PLAYING

01/12 10:06:20 playing voice file /var/spool/voice/messages/root.rmd

01/12 10:06:20 can't get group 'phone': Success

01/12 10:06:20 vm: raw modem data header found

01/12 10:06:20 vm: modem type V253modem found

01/12 10:06:20 vm: compression method 0x0008, speed 8000, bits 8

01/12 10:06:20 voice command: 'AT+VSM=1,8000' -> 'OK'

01/12 10:06:20 voice command: 'AT+VSM=1,8000' -> 'OK'

01/12 10:06:20 Just for info: port_speed should be greater than 80000 bps

01/12 10:06:20 voice command: 'AT+IFC=2,2' -> 'OK'

01/12 10:06:21 tio_set_flow_control( HARD XON_OUT )

01/12 10:06:21 voice command: 'AT+VTX' -> 'CONNECT'

01/12 10:06:21 vm: Modem returned ERROR

<<<01/12 10:06:21 vm: start_play_file command failed ###ERREUR ICI JE PENSE###>>>

01/12 10:06:21 vm(1): ERROR

01/12 10:06:21 vm(1): READY

01/12 10:06:21 vm: Got child -1 exit status 134632038 signal

01/12 10:06:21 vm: shell exited normally with status 0x0000

01/12 10:06:21 voice command: 'AT+VLS=0' -> 'OK'

01/12 10:06:21 vm: leaving voice mode

01/12 10:06:21 voice command: 'AT+FCLASS=0' -> 'OK'

01/12 10:06:22 voice command: 'AT' -> 'OK'

01/12 10:06:22 vm: Restoring signal handlers

01/12 10:06:22 closing voice modem device

01/12 10:06:22 removing lock file

Je trouverai bien pourquoi ! :D:transpi:

Share this post


Link to post
Share on other sites

Bonsoir!

Je suis tres curieux de savoir si depuis janvier tu as reussi a trouver une solution a ton probleme? J'ai le meme probleme ici. Voila mon vm.log:

10/09 22:16:47 vgetty: experimental test release 0.9.32 / with duplex patch

10/09 22:16:47 reading program vm configuration from config file /etc/mgetty/v

10/09 22:16:47 opening voice modem device

10/09 22:16:47 opened voice modem device /dev/ttyS5

10/09 22:16:47 reading port ttyS5 configuration from config file /etc/mgetty/v

10/09 22:16:47 detecting voice modem type

10/09 22:16:48 Rockwell detected

10/09 22:16:49 initializing ROCKWELL voice modem

10/09 22:16:49 vm: Modem returned ERROR

10/09 22:16:49 can't set transmit gain

10/09 22:16:49 vm: Modem returned ERROR

10/09 22:16:49 can't set record gain

10/09 22:16:51 vm: Executing shell script callme.pl with shell /usr/bin/perl

10/09 22:16:51 vm: Nested command in shell script

10/09 22:17:07 playing voice file message.rmd

10/09 22:17:08 vm: Got child -1 exit status -1 signal

10/09 22:17:10 closing voice modem device

Ca semble etre un probleme d'initialisation du modem (j'ai un Acer modem 57 Surf) mais ou faire les modifications? Et que faire? Qui sommes nous? Ou allons nous?

Share this post


Link to post
Share on other sites

×
×
  • Create New...