<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>I'd change your definition to something 
like</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>[providerX]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>context=providerX-inbound</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>host=11.222.222.23</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>in your providerX-inbound context you can match the 
different extensions</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>[providerX-inbound]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>exten =&gt; 
5149075555,1,NoOp(5149075555)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>exten =&gt; 
5555555555,1,NoOp(5555555555)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>Now a question I've always wondered, What if providerX uses 
multiple IPs. Is there any way to specify a range of IPs for the "host" in 
sip.conf ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>So far I've had to make a sip entry for each IP my provider 
uses.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2>Ben</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156595418-03022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com 
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Michaël 
Gaudette<BR><B>Sent:</B> February 3, 2006 12:47 PM<BR><B>To:</B> 
asterisk-users@lists.digium.com<BR><B>Subject:</B> [Asterisk-Users] SIP 
question<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=406254317-03022006>I have a provider 
sending me data through SIP, but with no registration.&nbsp; (there are 
constraints that forces us to work like this).&nbsp; And, as far as I am 
concerned, that's fine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=406254317-03022006>Here is the relevant 
portion of my SIP.conf file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[514907<SPAN 
class=406254317-03022006>5555</SPAN>]<BR>context=514907<SPAN 
class=406254317-03022006>5555</SPAN>-inbound<BR>type=friend<BR>host=<SPAN 
class=406254317-03022006>11.222.222.23</SPAN><BR>language=fr<BR>disallow=all<BR>allow=ulaw<BR>dtmf=rcf2833<BR></FONT></DIV>
<DIV><FONT size=+0><SPAN class=406254317-03022006><FONT face=Arial 
size=2>Basically, I understand that I am saying everything coming in from 
11.222.222.23 should be sent to the context&nbsp;5149075555-inbound.&nbsp; 
Right?</FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=406254317-03022006><FONT face=Arial 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=+0><SPAN class=406254317-03022006><FONT face=Arial size=2>If it 
is, how do I ask this provider for another DID, let`s say 555-555-5555, and send 
those calls ina&nbsp; different context (let`s say 
5555555555-inbound)???</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=406254317-03022006>There doesn't seem 
to be a way of differenciating between calls meant for 5149075555 and 
5555555555, since they both come in from the same provider (hence same IP 
address).&nbsp; What am I missing to treat those calls 
differently?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=406254317-03022006>Mike</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=406254317-03022006><FONT face=Arial 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=+0><SPAN class=406254317-03022006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>