Hi all, new to the list and this is probably a basic question and couldn't find anything clear googling around but I don't know how to handle calls to sip extensions not defined on sip.conf while using pattern matching. On my example I have sip extensions 10, 11, 12, and 13 on sip.conf. On a basic extension.conf I set up a pattern starting with "1" and a second digit should dial the sip extension entered by the user and if the user don't pick up or is unavailable the call goes to the user voicemail and then hangup. This basic setup can be seen next:<br><br>[default]<br>exten => _1X,1,Dial(SIP/${EXTEN},10)<br>exten => _1X,2,VoiceMail(${EXTEN}@default,u)<br>exten => _1X,3,HangUp()<br><br>Now, what happens if the user dials 15? Then the pattern is applied and the asterisk tries to dial that sip extension that doesn't exist, the next step that is the voicemail also fails as 15 is not defined on voicemail.conf and finally reaches the last step where it hang ups. This can be seen on the cli output copied below:<br><br>astbox*CLI> <br> -- Executing [15@default:1] Dial("SIP/10-0820d8e0", "SIP/15|10") in new stack<br>[Mar 21 19:57:48] WARNING[14321]: chan_sip.c:2860 create_addr: No such host: 15<br>[Mar 21 19:57:48] WARNING[14321]: app_dial.c:1111 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)<br> == Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing [15@default:2] VoiceMail("SIP/10-0820d8e0", "15@default|u") in new stack<br>[Mar 21 19:57:48] WARNING[14321]: app_voicemail.c:2808 leave_voicemail: No entry in voicemail config file for '15'<br> -- Executing [15@default:3] Hangup("SIP/10-0820d8e0", "") in new stack<br> == Spawn extension (default, 15, 3) exited non-zero on 'SIP/10-0820d8e0'<br>astbox*CLI> <br><br><br>What I am looking for is to play Playback(pbx-invalid) if a user enters a sip extension not created. I've been testing a few options using DIALSTATUS, AVAILSTATUS and their values but without luck as if the sip phone 11 is not registered the pbx-invalid message.<br><br>Thansk for reading and any suggestion will be welcome.<br><br>Richard<br><br>
<div>
</div>
<BR>
--
<div> Want an e-mail address like mine? </b><br>
Get a <b>free e-mail </b>account today at <a href="http://www.mail.com/Product.aspx" target="_blank">www.mail.com</a>!</div>