VGETTY/MGETTY Envoi de messages vocaux

Fermé
buzzchewan - 10 janv. 2006 à 17:28
 buzzchewan - 12 janv. 2006 à 10:33
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 :
CITATION
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 zarb.gif

Mon vm log me dit ceci :
CITATION
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 !

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

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

1 réponse

Pour ceux qui aurait le même soucis, il y avait une erreur 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
0