<br><br>
<div class="gmail_quote">On Wed, Jan 6, 2010 at 11:55 AM, Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>></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 'Inquiry:' 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>> Can you please let me know how can I define incoming route to accept<br>> incoming calls from an external sip server?<br><br>
</div>Just send them there?<br>
<div class="im"><br>> I have defined the following profile for my sip phone :<br>> Under sip.conf :<br>> ---------------------<br>> [osaka]<br>> type=friend<br>> context=sip-outgoing<br>> host=192.168.0.139<br>
> disallow=all<br>> allow=alaw<br><br></div>This looks like a local phone, and you direct all the calls coming from<br>it to the context 'sip-outgoing' .<br>
<div class="im"><br>> [6672019]<br>> type=friend<br>> context=sip-outgoing<br>> canreinvite=no<br>> host=dynamic<br>> nat=no<br><br></div>Likewise this one (though it registers).<br>
<div class="im"><br>><br>> Under extensions.conf :<br>> --------------------------------<br>> [sip-outgoing]<br>> include=sip_outgoing<br>> [sip_outgoing]<br>> exten => _XXXXXXX,1,Dial(SIP/osaka/${EXTEN})<br>
> [line-incoming]<br>> exten => _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>><br>> Please be informed that the sip outbound toward the external sip server is<br>> quite ok , but sip incoming is not working . Can you please let me know why<br>> 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>