Re: Zoneminder et asterisk

BERTRAND Joël <[email protected]>
Newsgroups gmane.linux.debian.user.french
Message-ID <[email protected]>
NoSpam a écrit :
> 
> Le 11/08/2026 à 18:37, BERTRAND Joël a écrit :
>>> [...]
>>> Je ferai d'abord le  chow asteriskétant TRÈS rapide à traiter les
>>> fichiers dans outgoing.
> 
> As tu testé?

	Oui, mais ça ne change rien, je ne peux pas faire le chown vu que le
fichier déposé est en www-data:www-data.

>>>
>>> Pour ma part je passe par AMI & originate
>>     Je veux bien passer par autre chose, mais ou trouve-t-on la doc de ce
>> AMI & originate ? ;-)
> 
> Asterisk Manager Interface fait parti d'asterisk. Vois le fichier
> manager.conf
> 
> Pour originate:
> 
> https://docs.asterisk.org/Latest_API/API_Documentation/Dialplan_Applications/Originate/
>

	J'ai regardé cela hier soir, mais pour l'instant, c'est un peu cryptique.

	J'ai créé dans manager.d un fichier zoneminder.conf avec le contenu
suivant :

[zoneminder]
secret = ....
read = call
write = command

	Je ne suis pas sûr que les droits suient suffisants puisque je me
prends un "permission denied".

Root rayleigh:[/etc/asterisk] > telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/11.0.0
Action: Login
Username: zoneminder
Secret: ....

Response: Success
Message: Authentication accepted

Action: MessageSend
ActionID: 1
To: pjsip:6003
From: "Notification" <sip:[email protected]>
Body: Hello from Asterisk AMI!

Response: Error
ActionID: 1
Message: Permission denied

Action: Logoff

Response: Goodbye
Message: Thanks for all the fish.

Connection closed by foreign host.
Root rayleigh:[/etc/asterisk] >

	Dans les logs, je trouve :
WARNING[7702] res_pjsip_outbound_registration.c: No response received
from 'sip:xxxxxxx' on registration attempt to 'sip:trunk-sip@xxxxxx',
retrying in '60'

	Je comprends donc qu'asterisk essaye d'envoyer mon message au
fournisseur de trunk plutôt qu'essayer de le traiter en local.

	JB
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCanwoRgAKCRDFW/s/mMLX
CNXWAP91Omr6EqSokoB638iZiu/Vto4VFeVZEUPNUIEGIy5TmAEAiHfrOyp7MQYh
z8f4WihhO5h4132uul9Gila2c6bELww=
=sQnl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.