Bonjour,
le nom du compte = bureau
Bonjour,
Ok donc le non du compte est l'identifiant de connexion qui est bureau et non pas poste21.
J'ai des erreurs dans la console CLI
Merci.Code:serveur@raspberrypi:~ $ sudo asterisk -rvvv Asterisk 13.14.1~dfsg-2+deb9u3, Copyright (C) 1999 - 2014, Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 13.14.1~dfsg-2+deb9u3 currently running on raspberrypi (pid = 12232) -- Registered SIP 'bureau' at 192.168.1.26:5060 [Jul 20 04:10:30] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked [Jul 20 04:10:30] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau [Jul 20 04:11:17] WARNING[12435][C-00000000]: app_dial.c:2525 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/bureau-00000000' status is 'CHANUNAVAIL' [Jul 20 04:11:30] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau [Jul 20 04:16:31] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau [Jul 20 04:21:32] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau == Using SIP RTP CoS mark 5 -- Executing [11@maison:1] Dial("SIP/bureau-00000004", "SIP/salon") in new stack [Jul 20 04:34:55] WARNING[12522][C-0000000b]: app_dial.c:2525 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/bureau-00000004' status is 'CHANUNAVAIL' == Using SIP RTP CoS mark 5 -- Executing [11@maison:1] Dial("SIP/bureau-00000005", "SIP/salon") in new stack [Jul 20 04:35:17] WARNING[12526][C-0000000c]: app_dial.c:2525 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/bureau-00000005' status is 'CHANUNAVAIL' [Jul 20 04:36:36] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau -- Unregistered SIP 'bureau' [Jul 20 04:36:57] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked [Jul 20 04:37:00] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked -- Registered SIP 'bureau' at 192.168.1.26:5060 [Jul 20 04:37:00] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau raspberrypi*CLI>
Dernière modification par xunil2003 ; 20/07/2018 à 06h48.
sûrement un problème de droit d'accès à la base de donnée.Code:[Jul 20 04:10:30] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
pas de boîte vocale pour le compte bureau et le poste correspondant cherche à obtenir l'état de la messagerie (mwi on)Code:[Jul 20 04:10:30] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau
ajoutes une boîte vocale aux comptes, à créer dans voicemail.conf !
le poste du bureau est mal enregistré ou en mode DND.Code:[Jul 20 04:11:17] WARNING[12435][C-00000000]: app_dial.c:2525 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/bureau-00000000' status is 'CHANUNAVAIL'
regarde le retours de la commande
dans la consoleCode:sip show peer bureau
si le poste est correctement enregistré tu dois voir son adresse IP.
Code:Addr->IP : 192.168.96.55:5060 Defaddr->IP : 192.168.96.55:5060 Status : Unmonitored Useragent : Aastra 6735i/3.3.1.8215 Reg. Contact : sip:xxxxxxxxxxxx@192.168.96.55:5060;transport=udp
Dernière modification par olppp ; 20/07/2018 à 10h49.
Bonjour,
Tout d'abord je tiens à vous remercie de votre aide.
Ok je vais me documenté sur le net pour créer la boite vocale.
Voici le retour de la commande
Avec le minimum d'informations
Avec plus de détailsCode:serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Addr->IP' Addr->IP : 192.168.1.26:5060 serveur@raspberrypi:~ $ serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Defaddr->IP' Defaddr->IP : (null) serveur@raspberrypi:~ $ serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Status' Status : Unmonitored serveur@raspberrypi:~ $ serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Useragent' Useragent : CSipSimple_trelte-23/r2457 serveur@raspberrypi:~ $ serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Reg. Contact' Reg. Contact : sip:bureau@192.168.1.26:5060;ob serveur@raspberrypi:~ $
Concernant le problème de droit d'accès à la base de donnée, comment je doit procéder pour résoudre le problème ?Code:serveur@raspberrypi:~ $ sudo asterisk -rvvv Asterisk 13.14.1~dfsg-2+deb9u3, Copyright (C) 1999 - 2014, Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 13.14.1~dfsg-2+deb9u3 currently running on raspberrypi (pid = 12232) raspberrypi*CLI> sip show peer bureau * Name : bureau Description : Secret : <Set> MD5Secret : <Not set> Remote Secret: <Not set> Context : maison Record On feature : automon Record Off feature : automon Subscr.Cont. : <Not set> Language : fr Tonezone : <Not set> AMA flags : Unknown Transfer mode: open CallingPres : Presentation Allowed, Not Screened Callgroup : Pickupgroup : Named Callgr : Nam. Pickupgr: MOH Suggest : Mailbox : VM Extension : asterisk LastMsgsSent : 32767/65535 Call limit : 0 Max forwards : 0 Dynamic : Yes Callerid : "" <> MaxCallBR : 384 kbps Expire : 522 Insecure : no Force rport : Auto (No) Symmetric RTP: No ACL : No DirectMedACL : No T.38 support : No T.38 EC mode : Unknown T.38 MaxDtgrm: 4294967295 DirectMedia : Yes PromiscRedir : No User=Phone : No Video Support: No Text Support : No Ign SDP ver : No Trust RPID : No Send RPID : No Path support : No Path : N/A TrustIDOutbnd: Legacy Subscriptions: Yes Overlap dial : Yes DTMFmode : auto Timer T1 : 500 Timer B : 32000 ToHost : Addr->IP : 192.168.1.26:5060 Defaddr->IP : (null) Prim.Transp. : UDP Allowed.Trsp : UDP Def. Username: poste21 SIP Options : (none) Codecs : (ulaw|alaw|gsm|h263) Auto-Framing : No Status : Unmonitored Useragent : CSipSimple_trelte-23/r2457 Reg. Contact : sip:bureau@192.168.1.26:5060;ob Qualify Freq : 60000 ms Keepalive : 0 ms Sess-Timers : Accept Sess-Refresh : uas Sess-Expires : 1800 secs Min-Sess : 90 secs RTP Engine : asterisk Parkinglot : Use Reason : No Encryption : No raspberrypi*CLI>
Merci.Code:[Jul 20 04:10:30] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
pour l'appel vers bureau certainement un réglage de csipsimple :
- il y a une option à activer pour toujours recevoir les appels (attention à la batterie) et si le compte est actif seulement pour une connexion par wifi ou aussi sur la data 3g/4g
- le smartphone coupe peut-être le wifi en mode veille.
pour la base de données monte le niveau de détails dans la console pour récupérer plus d'infos.
Code:core set verbose 5
Re,
Voici le retour de la commande
Merci.Code:serveur@raspberrypi:~ $ sudo asterisk -rvvv Asterisk 13.14.1~dfsg-2+deb9u3, Copyright (C) 1999 - 2014, Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 13.14.1~dfsg-2+deb9u3 currently running on raspberrypi (pid = 12232) [Jul 20 12:15:20] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: salon [Jul 20 12:16:39] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau [Jul 20 12:21:49] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked raspberrypi*CLI> core set verbose 5 Console verbose was 3 and is now 5. raspberrypi*CLI>
tu as installer une base de donnée sur le raspberry ? postgresql ou mysql ?
résultats de la commande
etCode:cdr show status
Code:odbc show all