<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Microsoft Theme 2.00" content="Echo 011"><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
h1
        {mso-style-priority:9;
        mso-style-link:"Título 1 Char";
        margin-top:24.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
h2
        {mso-style-priority:9;
        mso-style-link:"Título 2 Char";
        margin-top:10.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h3
        {mso-style-priority:9;
        mso-style-link:"Título 3 Char";
        margin-top:10.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h4
        {mso-style-priority:9;
        mso-style-link:"Título 4 Char";
        margin-top:10.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h5
        {mso-style-priority:9;
        mso-style-link:"Título 5 Char";
        margin-top:10.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h6
        {mso-style-priority:9;
        mso-style-link:"Título 6 Char";
        margin-top:10.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#339999;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#999999;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        color:black;}
span.Ttulo1Char
        {mso-style-name:"Título 1 Char";
        mso-style-priority:9;
        mso-style-link:"Título 1";
        font-family:"Arial","sans-serif";
        color:black;
        font-weight:bold;}
span.Ttulo2Char
        {mso-style-name:"Título 2 Char";
        mso-style-priority:9;
        mso-style-link:"Título 2";
        font-family:"Arial","sans-serif";
        color:black;}
span.Ttulo3Char
        {mso-style-name:"Título 3 Char";
        mso-style-priority:9;
        mso-style-link:"Título 3";
        font-family:"Arial","sans-serif";
        color:black;}
span.Ttulo4Char
        {mso-style-name:"Título 4 Char";
        mso-style-priority:9;
        mso-style-link:"Título 4";
        font-family:"Arial","sans-serif";
        color:black;}
span.Ttulo5Char
        {mso-style-name:"Título 5 Char";
        mso-style-priority:9;
        mso-style-link:"Título 5";
        font-family:"Arial","sans-serif";
        color:black;}
span.Ttulo6Char
        {mso-style-name:"Título 6 Char";
        mso-style-priority:9;
        mso-style-link:"Título 6";
        font-family:"Arial","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white background="cid:image001.gif@01CB72D1.870B7F00" lang=PT-BR link="#339999" vlink="#999999"><img src="cid:image001.gif@01CB72D1.870B7F00" v:src="cid:image001.gif@01CB72D1.870B7F00" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
<v:fill src="cid:image001.gif@01CB72D1.870B7F00" o:title="echbkgnd" type="frame" />
</v:background></xml><![endif]--><div class=WordSection1><p class=MsoNormal>Prezados, estou com o seguinte problema.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Ao receber uma chamada por canal SIP externo, embora o DID esteja devidamente configurado para direcionar a chamada para uma URA, o asterisk está ignorando.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Alguém pode me ajudar?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cenário:<o:p></o:p></p><p class=MsoNormal>Asterisk 1.4.24 (Com base na distribuição Elastix 1.5.2-2 / freePBX com upgrade para 2.8.0.3)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>No CLI de entrada aparece:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>-- Executing [883510001397397@from-sip-external:1] NoOp("SIP/7070-0a00bff8", "Received incoming SIP connection from unknown peer to 883510001397397") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [883510001397397@from-sip-external:2] Set("SIP/7070-0a00bff8", "CHANNEL(language)=pt_BR") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [883510001397397@from-sip-external:3] Set("SIP/7070-0a00bff8", "DID=883510001397397") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [883510001397397@from-sip-external:4] Goto("SIP/7070-0a00bff8", "s|1") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Goto (from-sip-external,s,1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [s@from-sip-external:1] GotoIf("SIP/7070-0a00bff8", "0?checklang:noanonymous") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Goto (from-sip-external,s,5)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [s@from-sip-external:5] Set("SIP/7070-0a00bff8", "TIMEOUT(absolute)=15") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Channel will hangup at 2010-10-23 19:36:01 UTC.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [s@from-sip-external:6] Answer("SIP/7070-0a00bff8", "") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [s@from-sip-external:7] Wait("SIP/7070-0a00bff8", "2") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- Executing [s@from-sip-external:8] Playback("SIP/7070-0a00bff8", "ss-noservice") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> -- <SIP/7070-0a00bff8> Playing 'ss-noservice' (language 'pt_BR')<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>No extensions_additional.conf está apontando para a URA<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,1,Set(__FROM_DID=${EXTEN})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,Set(CHANNEL(language)=pt_BR)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,Gosub(app-blacklist-check,s,1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,ExecIf($[ "${CALLERID(name)}" = "" ] ,Set,CALLERID(name)=${CALLERID(num)})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,SetMusicOnHold(none)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,Set(__MOHCLASS=none)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,Wait(3)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n,SetCallerPres(allowed_not_screened)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _510001397XXX,n(dest-ext),Goto(ivr-5,s,1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>No extensions.conf o context [from-sip-external] está:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>[from-sip-external]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>; Yes. This is _really_ meant to be _. - I know asterisk whines about it, but <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>; I do know what I'm doing. This is correct.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _.,1,NoOp(Received incoming SIP connection from unknown peer to ${EXTEN})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _.,n,Set(CHANNEL(language)=pt_BR)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _.,n,Set(DID=${IF($["${EXTEN:1:2}"=""]?s:${EXTEN})})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => _.,n,Goto(s,1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,1,GotoIf($["${ALLOW_SIP_ANON}"="yes"]?checklang:noanonymous)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n(checklang),GotoIf($["${SIPLANG}"!=""]?setlanguage:from-trunk,${DID},1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n(setlanguage),Set(CHANNEL(language)=${SIPLANG})<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Goto(from-trunk,${DID},1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n(noanonymous),Set(TIMEOUT(absolute)=15)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Answer<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Wait(2)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Playback(ss-noservice)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Playtones(congestion)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => s,n,Congestion(5)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => h,1,Hangup<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>exten => i,1,Hangup<o:p></o:p></span></p><p class=MsoNormal>exten => t,1,Hangup<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Estando a linha #include extensions_additional.conf no início do extensions.conf, o DID não deveria estar sendo reconhecido previamente, direcionando para a URA, antes de chegar a ler o contexto [from-sip-external]?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Grato;<o:p></o:p></p><p class=MsoNormal>Fernando<span style='font-size:14.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:PT-BR'> <o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>