<br><br>
<div class="gmail_quote">On Wed, Jan 6, 2010 at 11:55 AM, Tzafrir Cohen <span dir="ltr">&lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>I noticed you always prefix &#39;Inquiry:&#39; to your questions on the list.<br>This is implied from the subject line itself, and wastes some space in<br>
the subject line, so I guess it is kind of pointless.<br><br>Now to the question itself,<br>
<div class="im"><br>On Wed, Jan 06, 2010 at 10:44:31AM +0000, hadi motamedi wrote:<br><br>&gt; Can you please let me know how can I define incoming route to accept<br>&gt; incoming calls from an external sip server?<br><br>
</div>Just send them there?<br>
<div class="im"><br>&gt; I have defined the following profile for my sip phone :<br>&gt; Under sip.conf :<br>&gt; ---------------------<br>&gt; [osaka]<br>&gt; type=friend<br>&gt; context=sip-outgoing<br>&gt; host=192.168.0.139<br>
&gt; disallow=all<br>&gt; allow=alaw<br><br></div>This looks like a local phone, and you direct all the calls coming from<br>it to the context &#39;sip-outgoing&#39; .<br>
<div class="im"><br>&gt; [6672019]<br>&gt; type=friend<br>&gt; context=sip-outgoing<br>&gt; canreinvite=no<br>&gt; host=dynamic<br>&gt; nat=no<br><br></div>Likewise this one (though it registers).<br>
<div class="im"><br>&gt;<br>&gt; Under extensions.conf :<br>&gt; --------------------------------<br>&gt; [sip-outgoing]<br>&gt; include=sip_outgoing<br>&gt; [sip_outgoing]<br>&gt; exten =&gt; _XXXXXXX,1,Dial(SIP/osaka/${EXTEN})<br>
&gt; [line-incoming]<br>&gt; exten =&gt; _6XXXXXX,1,Dial(SIP/${EXTEN})<br><br></div>Could you explain what you actually want to do? Where do you expect<br>those SIP calls will come from?<br>
<div class="im"><br>&gt;<br>&gt; Please be informed that the sip outbound toward the external sip server is<br>&gt; quite ok , but sip incoming is not working . Can you please let me know why<br>&gt; my incoming route is not working properly ?<br>
<br></div>I would actually go the other way around. Please try to convince us<br>(which also implies: convince yourself) that your setup should work.<br>Please try to explain why an incoming call should work according to your<br>
configuration.<br><br>--<br>              Tzafrir Cohen<br>icq#16849755              <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>+972-50-7952406           mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com/" target="_blank">http://www.xorcom.com</a>  <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div>
<div><br> </div>
<div>Thank you for your reply . I want to correctly route the incoming calls coming from external sip (named in my profile as osaka) to the destination (that is my Asterisk subscriber sip phone) . To this end , I defined the osaka profile in my sip.conf and my Asterisk subscriber phone is at 6672019 that I have defined his profile in my sip.conf as well (as you saw it) . Then , I tried to define the [sip-outgoing] route in my extensions.conf for rourting my Asterisk sip subscriber outgoing calls toward the external sip server (named osaka) and it works here . But my [line-incoming] route for accepting incoming sip calls from external sip server (osaka) toward my Asterisk subscriber sip phone at 6672019 fails . Can you please let me know what is wrong in my configuration ?</div>

<div> </div>