[solved] '*97#' rejected because extension not found in context 'from-internal'

Hello,

I’m using FreePBX Distro 10.13.66-10 and trying to use the Voicemail from my Siemens Gigaset DECT phones. There are several DECT phones, each with a different VoIP number, connected to one base which connects from WAN to FreePBX.

In- and outgoing calls work, but I’m not able to call voicemail with *97# form the DECT phones. It works on the non-DECT phones which connect from the same external network via WAN to FreePBX. The configuration in FreepBX of the DECT and non-DECT clients is exactly the same.

the log says:
chan_sip.c:25697 handle_request_invite: Call from ‘9665’ (xxx.xxx.xxx.xxx:3822) to extension ‘*97#’ rejected because extension not found in context ‘from-internal’.

but “sip show peer” says that the extension is in context from-internal

Name : 9665
Description :
Secret :
MD5Secret :
Remote Secret:
Context : from-internal
Record On feature : automon
Record Off feature : automon
Subscr.Cont. :
Language : en
Tonezone :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox : [email protected]
VM Extension : *97
LastMsgsSent : 1/0
Call limit : 2147483647
Max forwards : 0
Dynamic : Yes
Callerid : “xxx” <9665>
MaxCallBR : 384 kbps
Expire : 180
Insecure : no
Force rport : Yes
Symmetric RTP: Yes
ACL : Yes
DirectMedACL : No
T.38 support : Yes
T.38 EC mode : FEC
T.38 MaxDtgrm: 4294967295
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : Yes
Send RPID : Yes
Path support : No
Path : N/A
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : xxx.xxx.xxx.xxx:3822
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP,TCP,TLS
Def. Username: 9665
SIP Options : (none)
Codecs : (alaw|ulaw|ilbc|g722)
Auto-Framing : No
Status : OK (64 ms)
Useragent : C430A GO/42.231.00.000.000
Reg. Contact : sip:[email protected]:3822
Qualify Freq : 45000 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

output of “dialplan show [email protected]

[ Included context ‘ext-findmefollow’ created by ‘pbx_config’ ]
‘9665’ => 1. GotoIf($[ “${DB(AMPUSER/9665/followme/ddial)}” = “EXTENSION” ]?ext-local,9665,1) [pbx_config]
[FM9665] 2. Macro(user-callerid,) [pbx_config]
3. Set(DIAL_OPTIONS=${DIAL_OPTIONS}I) [pbx_config]
4. Set(CONNECTEDLINE(num,i)=9665) [pbx_config]
5. Gosub(sub-presencestate-display,s,1(9665)) [pbx_config]
6. Set(CONNECTEDLINE(name)=${DB(AMPUSER/9665/cidname)}${PRESENCESTATE_DISPLAY}) [pbx_config]
7. Set(FM_DIALSTATUS=${EXTENSION_STATE([email protected])}) [pbx_config]
8. Set(__EXTTOCALL=${EXTEN}) [pbx_config]
9. Set(__PICKUPMARK=${EXTEN}) [pbx_config]
10. Macro(blkvm-setifempty,) [pbx_config]
11. GotoIf($["${GOSUB_RETVAL}" = “TRUE”]?skipov) [pbx_config]
12. Macro(blkvm-set,reset) [pbx_config]
13. Set(__NODEST=) [pbx_config]
[skipov] 14. Set(RRNODEST=${NODEST}) [pbx_config]
[skipvmblk] 15. Set(__NODEST=${EXTEN}) [pbx_config]
16. GosubIf($[${DB_EXISTS(AMPUSER/9665/followme/changecid)} = 1 & “${DB(AMPUSER/9665/followme/changecid)}” != “default” & “${DB(AMPUSER/9665/followme/changecid)}” != “”]?sub-fmsetcid,s,1()) [pbx_config]
17. Set(RecordMethod=Group) [pbx_config]
[checkrecord] 18. Gosub(sub-record-check,s,1(exten,9665,)) [pbx_config]
[skipsimple] 19. Set(RingGroupMethod=ringallv2-prim) [pbx_config]
20. Set(_FMGRP=9665) [pbx_config]
[DIALGRP] 21. GotoIf($[("${DB(AMPUSER/9665/followme/grpconf)}"=“ENABLED”) | ("${FORCE_CONFIRM}"!="") ]?doconfirm) [pbx_config]
22. Macro(dial,$[ ${DB(AMPUSER/9665/followme/grptime)} + ${DB(AMPUSER/9665/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/9665/followme/grplist)}) [pbx_config]
23. Goto(nextstep) [pbx_config]
[doconfirm] 24. Macro(dial-confirm,$[ ${DB(AMPUSER/9665/followme/grptime)} + ${DB(AMPUSER/9665/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/9665/followme/grplist)},9665) [pbx_config]
[nextstep] 25. Set(RingGroupMethod=) [pbx_config]
26. GotoIf($[“foo${RRNODEST}” != “foo”]?nodest) [pbx_config]
27. Set(__NODEST=) [pbx_config]
28. Set(__PICKUPMARK=) [pbx_config]
29. Macro(blkvm-clr,) [pbx_config]
30. Set(DIALSTATUS=${IF($["${FM_DIALSTATUS}"=“NOT_INUSE”&"${DIALSTATUS}"!=“CHANUNAVAIL”]?NOANSWER:${IF($["${DIALSTATUS}"=“CHANUNAVAIL”|"${FM_DIALSTATUS}"=“UNAVAILABLE”|"${FM_DIALSTATUS}"=“UNKNOWN”|"${FM_DIALSTATUS}"=“INVALID”]?CHANUNAVAIL:BUSY)})}) [pbx_config]
31. Goto(ext-local,9665,dest) [pbx_config]
[nodest] 32. Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}) [pbx_config]

[ Included context ‘ext-local’ created by ‘pbx_config’ ]
‘9665’ => hint: SIP/9665&Custom:DND9665,CustomPresence:9665 [pbx_config]
1. Set(__RINGTIMER=${IF($["${DB(AMPUSER/9665/ringtimer)}" > “0”]?${DB(AMPUSER/9665/ringtimer)}:${RINGTIMER_DEFAULT})}) [pbx_config]
2. Macro(exten-vm,9665,9665,0,0,0) [pbx_config]
[dest] 3. Set(__PICKUPMARK=) [pbx_config]
4. Macro(vm,9665,${DIALSTATUS},${IVR_RETVM}) [pbx_config]
5. Goto(vmret,1) [pbx_config]

[ Included context ‘outrt-5’ created by ‘pbx_config’ ]
’_ZXX.’ (CID match ‘_69203379X’) => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
2. Gosub(sub-record-check,s,1(out,${EXTEN},never)) [pbx_config]
3. ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE})) [pbx_config]
4. GosubIf($[${LEN(${FROM_DID})}>0 & “${FROM_DID}”!=“s”]?sub-diversion-header,s,1()) [pbx_config]
5. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?none:${MOHCLASS})}) [pbx_config]
6. Set(_NODEST=) [pbx_config]
7. Macro(dialout-trunk,4,030${EXTEN},off) [pbx_config]
8. Macro(outisbusy,) [pbx_config]
’_ZXX.’ => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
’_X.’ (CID match ‘_69203379X’) => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
2. Gosub(sub-record-check,s,1(out,${EXTEN},never)) [pbx_config]
3. ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE})) [pbx_config]
4. GosubIf($[${LEN(${FROM_DID})}>0 & “${FROM_DID}”!=“s”]?sub-diversion-header,s,1()) [pbx_config]
5. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?none:${MOHCLASS})}) [pbx_config]
6. Set(_NODEST=) [pbx_config]
7. Macro(dialout-trunk,4,${EXTEN},off) [pbx_config]
8. Macro(outisbusy,) [pbx_config]
’_X.’ => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]

[ Included context ‘outrt-1’ created by ‘pbx_config’ ]
’_ZXX.’ => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
2. Gosub(sub-record-check,s,1(out,${EXTEN},dontcare)) [pbx_config]
3. ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE})) [pbx_config]
4. GosubIf($[${LEN(${FROM_DID})}>0 & “${FROM_DID}”!=“s”]?sub-diversion-header,s,1()) [pbx_config]
5. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?none:${MOHCLASS})}) [pbx_config]
6. Set(_NODEST=) [pbx_config]
7. Macro(dialout-trunk,3,030${EXTEN},off) [pbx_config]
8. Macro(dialout-trunk,1,030${EXTEN},off) [pbx_config]
9. Macro(dialout-trunk,2,030${EXTEN},off) [pbx_config]
10. Macro(outisbusy,) [pbx_config]
’_X.’ => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
2. Gosub(sub-record-check,s,1(out,${EXTEN},dontcare)) [pbx_config]
3. ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE})) [pbx_config]
4. GosubIf($[${LEN(${FROM_DID})}>0 & “${FROM_DID}”!=“s”]?sub-diversion-header,s,1()) [pbx_config]
5. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?none:${MOHCLASS})}) [pbx_config]
6. Set(_NODEST=) [pbx_config]
7. Macro(dialout-trunk,3,${EXTEN},off) [pbx_config]
8. Macro(dialout-trunk,1,${EXTEN},off) [pbx_config]
9. Macro(dialout-trunk,2,${EXTEN},off) [pbx_config]
10. Macro(outisbusy,) [pbx_config]

[ Included context ‘bad-number’ created by ‘pbx_config’ ]
’_X.’ => 1. ResetCDR() [pbx_config]
2. NoCDR() [pbx_config]
3. Progress() [pbx_config]
4. Wait(1) [pbx_config]
5. Progress() [pbx_config]
6. Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer) [pbx_config]
7. Wait(1) [pbx_config]
8. Congestion(20) [pbx_config]
9. Hangup() [pbx_config]

any ideas?
thanks a lot!

It’s the trailing # character in the dialed digits, just dial *97.

works, thank you @lgaetz !

1 Like