<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="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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]-->
<title>Problem with incoming calls.</title>
<style>
<!--
 /* Font Definitions */
 @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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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 lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I now have a workaround for this problem; I
carried on research after posting.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I now route both incoming numbers in the
IAX.conf into one context, like they wanted to before.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the new context I just use the goto
command to farm the numbers out to separate contexts. This works well.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I believe this problem is due to both
number being from the same account; which it only want to associate with one
context. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>C<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>C. Tomlinson<br>
<b><span style='font-weight:bold'>Sent:</span></b> 10 March 2005 13:39<br>
<b><span style='font-weight:bold'>To:</span></b> 'Asterisk Users Mailing List -
Non-Commercial Discussion'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Asterisk-Users] Problem
with incoming calls.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
have a problem with incoming IAX calls. I have 2 numbers from the same supplier
delivered over IAX. I register once with the server, and both calls get to my
box, and I get output on the console</span></font> <font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>with both calls. However I cannot
get each number to go to separate contexts....</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Please
see relevant sections from extensions and iax conf. files</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Section
from IAX.conf:</span></font><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>[448700XXXXXX] ;incoming 0870 number</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>type=user</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>username=448700XXXXXX</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>context=conference</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>trunking=off</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>[448450XXXXXX] ;incoming 0845 number</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>type=user</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>username=448450XXXXXX</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>context=demo_default</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>trunking=off</span></font></i><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Section
from extensions.conf</span></font><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>[demo_default] ;the 0845 number should go here</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>exten =&gt; 448450XXXXXX,1,Answer</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>exten =&gt; &#8230;..i have more here.</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>[conference] ;the 0870 number should go here</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>exten =&gt; 448700XXXXXX,1,Answer</span></font></i><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>exten =&gt; &#8230;..i have more here.</span></font></i><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>The
output on the CLI looks like:</span></font><o:p></o:p></p>

<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>NOTICE[1282]: chan_iax2.c:5461 socket_read: Rejected connect
attempt from XXX.XXX.X.XXX,</span></font> </i><i><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-style:italic'>request
'448700XXXXXX@demo_default' does not exist</span></font></i><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>However
if you look above, the 0870 number should go to the [conference] context; not
the</span></font> <font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[demo_default] one..</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>If</span></font><span lang=EN-GB> </span><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I then call the other
0845 number it works:</span></font><o:p></o:p></p>

<p><i><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;font-style:italic'>-- Accepting unauthenticated call from</span></font></i><i><span
lang=EN-GB style='font-style:italic'> </span></i><i><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;font-style:italic'>XXX.XXX.X.XXX,
requested format = 8, actual format = 8</span></font></i><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>-working&#8230;</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>If</span></font><span lang=EN-GB> </span><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I comment out one of the
numbers in the iax.conf, the other one works fine&#8230;.its just when both are
active it</span></font><span lang=EN-GB> </span><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'>doesn&#8217;t seem to
play properly.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>Does anyone have any ideas? As far as</span></font><span lang=EN-GB> </span><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I
know I'm not being stupid, but please point it out if</span></font><span
lang=EN-GB> </span><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I</span></font><span lang=EN-GB> </span><font size=2
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>am. Any
help much appreciated.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>Regards,</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial'>C</span></font><o:p></o:p></p>

</div>

</body>

</html>