# Touche de fonction BLF

**URL:** <https://wazo-platform.discourse.group/t/touche-de-fonction-blf/1743>\
**Category:** Français\
**Created:** [February 5, 2026, 5:09pm UTC](https://wazo-platform.discourse.group/t/touche-de-fonction-blf/1743 "2026-02-05T17:09:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buzzz](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@buzzz](https://wazo-platform.discourse.group/u/buzzz)\
**Post date:** [February 5, 2026, 5:09pm UTC](https://wazo-platform.discourse.group/t/touche-de-fonction-blf/1743/1 "2026-02-05T17:09:53Z")

</div>

Bonjour,

J’essaye d’utiliser une touche de fonction sur telephone (Yealink) pour gerer l’ouverture fermeture d’un standard. Pour cela je veux passer par les sous routine. Voici le code utilisé

**pour la gestion du bouton**

[default]  
exten = \*4444 ,1,NoOp(Test BLF STD = ${DEVICE\_STATE(Custom:\*4444)})  
; INUSE = rouge = STD fermé  
same = n,GotoIf($[${DEVICE\_STATE(Custom:\*4444)}=INUSE]?TOOPEN:TOCLOSE)  
same = n(TOCLOSE),Set(DEVICE\_STATE(Custom:\*4444)=INUSE)  
same = n,NoOp(Set to INUSE = ${DEVICE\_STATE(Custom:\*4444)})  
same = n,Playback(std-ferme)  
same = n,Hangup()  
same = n(TOOPEN),Set(DEVICE\_STATE(Custom:\*4444)=NOT\_INUSE)  
same = n,NoOp(Set to NOT\_INUSE = ${DEVICE\_STATE(Custom:\*4444)})  
same = n,Playback(std-ouvert)  
same = n,Hangup()

Le bouton est de type Personnalisé, Destination \*4444, BLF activé

**Pour la gestion de l’appel entrant**

[std-close]  
exten = s,1,NoOp(BLF STD custom \*4444 = ${DEVICE\_STATE(Custom:\*4444)})  
same = n,Answer()  
same = n,GotoIf($[${DEVICE\_STATE(Custom:\*4444)}=INUSE]?CLOSED:OPEN)  
same = n(CLOSED),Voicemail(299@default,u)  
same = n,Hangup()  
same = n(OPEN),Return()

Quand j’utilise la console je change bien le status avec la commande

devstate change Custom:\*4444 INUSE or NOT\_INUSE

**Quand j’appuis sur le bouton du telephone j’ai une erreur**

_[2026-02-05 18:05:09.8611] NOTICE[4038013]: res\_pjsip\_session.c:4041 new\_invite: 5rvm4uy6: Call (UDP:172.17.0.78:5060) to extension ‘\*4444’ rejected because extension not found in context ‘my-company-internal’._

Je pense forcement avoir oublier quelques mais quoi?

Pour info voici le resultat de la commande

_dialplan show \*4444@my-company-internal  
[Context ‘my-company-internal’ created by ‘pbx\_config’]  
‘\*4444’ =\> hint: Custom:\*\*4444 [exec.1770308006532021.139791086290624:280]_

_-= 1 extension (1 priority) in 1 context. =-_

Merci pour votre aide car je tourne en rond.

---

<div class="post-metadata">

**Author:** ![buzzz](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@buzzz](https://wazo-platform.discourse.group/u/buzzz)\
**Post date:** [February 6, 2026, 10:13am UTC](https://wazo-platform.discourse.group/t/touche-de-fonction-blf/1743/2 "2026-02-06T10:13:11Z")

</div>

J’ai corrigé mon erreur, dsl
