<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 01/20/2011 04:29 PM, Danny Nicholas wrote:
<blockquote cite="mid:201101201529.p0KFTiak010627@debsweb.debsinc.com"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:smarttagtype
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:404768543;
        mso-list-type:hybrid;
        mso-list-template-ids:1517047032 290101118 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
  </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]-->
  <div class="Section1">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3" color="black"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" size="2" width="100%" align="center"></span></font></div>
  <p class="MsoNormal"><b><font face="Tahoma" size="2" color="black"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 face="Tahoma" size="2" color="black"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Jonas Kellens<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Thursday,
January 20, 2011
9:20 AM<br>
  <b><span style="font-weight: bold;">To:</span></b> <st1:personname
 w:st="on">Asterisk Users Mailing List - Non-Commercial Discussion</st1:personname><br>
  <b><span style="font-weight: bold;">Subject:</span></b>
[asterisk-users] context
problem</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"
 color="black"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Helvetica" size="3" color="black"><span
 style="font-size: 12pt; font-family: Helvetica;">Hello list,<br>
  <br>
Asterisk 1.6.16.1<br>
  <br>
I have the following registrations :<br>
  <br>
register =&gt; <a moz-do-not-send="true"
 href="mailto:119909:passwd@sip.prov.org/52525252">119909:passwd@sip.prov.org/52525252</a><br>
register =&gt; <a moz-do-not-send="true"
 href="mailto:119909:passwd@sip.prov.org/59595959">119909:passwd@sip.prov.org/59595959</a><br>
  <br>
[119909]<br>
type=friend<br>
host=sip.prov.org</span></font><br>
  <font face="Helvetica"><span style="font-family: Helvetica;">username=119909</span></font><br>
  <font face="Helvetica"><span style="font-family: Helvetica;">defaultuser=119909</span></font><br>
  <font face="Helvetica"><span style="font-family: Helvetica;">secret=passwd</span></font><br>
  <font face="Helvetica"><span style="font-family: Helvetica;">context=TRUNKin<br>
  <br>
extensions.conf :<br>
  <br>
[TRUNKin]<br>
exten =&gt; _52525252,1,NoOp(context TRUNKin - 52525252)<br>
exten =&gt; _52525252,n,GoTo(blabla,52525252,1)<br>
  <br>
exten =&gt; _59595959,1,NoOp(context TRUNKin - 59595959)<br>
exten =&gt; _59595959,n,GoTo(blablabla,59595959,1)<br>
  <br>
  <br>
Problem :<br>
  <br>
the call always enters : exten =&gt; _52525252<br>
  <br>
and never : exten =&gt; _59595959<br>
  <br>
Why is that ??<br>
  <br>
  <br>
Kind regards,<br>
Jonas.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Because this
an incoming call.&nbsp; What you
are trying to accomplish should be done via &#8220;ex-girlfriend&#8221; logic.&nbsp;
The way your dialplan is set up, it assumes you are &#8220;dialing&#8221;
525225252 or 59595959 instead of receiving a call.&nbsp; Here is how the
incoming should
read<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">[TRUNKin]<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font
 face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><span
 style="">-<font face="Times New Roman" size="1"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></span></span></font><!--[endif]--><font face="Arial"
 size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">exten
=&gt; s,1,answer<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font
 face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><span
 style="">-<font face="Times New Roman" size="1"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></span></span></font><!--[endif]--><font face="Arial"
 size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">exten
=&gt; s/52525252,n,Goto(blabla,52525252,1)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font
 face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><span
 style="">-<font face="Times New Roman" size="1"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></span></span></font><!--[endif]--><font face="Arial"
 size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">exten
=&gt; s/59595959,n,Goto(blabla,59595959,1)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><font
 face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><span
 style="">-<font face="Times New Roman" size="1"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></span></span></font><!--[endif]--><font face="Arial"
 size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">exten
=&gt; s,n,verbose(call is not from 5252 or 5959)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.25in;"><font face="Arial"
 size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  </div>
  </o:smarttagtype></blockquote>
<br>
<br>
Hello,<br>
<br>
when I leave out the /52525252 and /59595959 in the registration,
indeed the call enters the s-extension in my context.<br>
<br>
I will try your suggestion...<br>
<br>
<br>
Kind regards,<br>
Jonas.<br>
</body>
</html>