<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE>@font-face {
        font-family: Courier;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: @SimSun;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; DIRECTION: rtl; FONT-FAMILY: "Times New Roman"; unicode-bidi: embed; TEXT-ALIGN: right
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; DIRECTION: rtl; FONT-FAMILY: "Times New Roman"; unicode-bidi: embed; TEXT-ALIGN: right
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; DIRECTION: rtl; FONT-FAMILY: "Times New Roman"; unicode-bidi: embed; TEXT-ALIGN: right
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=768495814-11112005><FONT face=Arial
color=#0000ff size=2>What version are you running, and is your [Cisco]
definition the last one in the file? I have the same problem with 1.0.7,
and the ugly fix I came up with was to add a dummy entry as the last sip
entry. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=768495814-11112005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=768495814-11112005><FONT face=Arial
color=#0000ff size=2>B. J.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ohad.Levy@infineon.com
[mailto:Ohad.Levy@infineon.com] <BR><B>Sent:</B> Friday, November 11, 2005
4:48<BR><B>To:</B> asterisk-users@lists.digium.com.<BR><B>Subject:</B>
[Asterisk-Users] sip ignores context definition?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1 dir=rtl>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">Hi All,
</SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">I've a very strange error.
<BR>I've configured a Cisco gw with * and when an incoming call is arriving from
the Cisco to * asterisk will always put the call in the default context
(ignoring the part in the [Cisco]) </SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">I'm attaching my conf files:
</SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">[general] <BR>port = 5060
; Port to bind to (SIP is 5060) <BR>bindaddr =
0.0.0.0 ; Address to bind to (all addresses on machine)
<BR>disallow=all <BR>allow=alaw <BR>allow=gsm <BR>allow=ulaw <BR>context =
from-trunk ; Send unknown SIP callers to this context <BR>callerid = Unknown
</SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">[Cisco] <BR>type=user/friend/peer
(tried all options) <BR>port=5060 <BR>host=myip <BR>context=from-Cisco
<BR>disallow=all <BR>allow=alaw <BR>allow=ulaw <BR>qualify=yes
<BR>autocreatepeer=yes (with and without this option, in here and in the
<BR>general setting) <BR>nat=no <BR>canreinvite=no </SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">on Asterisk Console I see (with
Verbose 9): <BR>Executing AbsoluteTimeout("SIP/myip-b6895f10", "15") in new
stack <BR> -- Set Absolute Timeout to 15 <BR> --
Executing Congestion("SIP/myip-b6895f10", "") in new stack <BR> --
Executing AbsoluteTimeout("SIP/myip-b6895f10", "15") in new <BR>stack <BR>
-- Set Absolute Timeout to 15 <BR> -- Executing
Congestion("SIP/myip-b6895f10", "") in new stack </SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">which is my default context:
<BR>[from-trunk] <BR>exten => _.,1,AbsoluteTimeout(15) <BR>exten =>
_.,2,Congestion <BR>exten => _.,3,Hangup </SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">[from-Cisco] <BR>exten =>
s,1,Answer <BR>exten => s,2,Dial($bla) <BR>exten => s,3,Hangup
</SPAN></FONT><o:p></o:p></P>
<P dir=ltr><FONT face=Courier size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">Thanks!
</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal dir=rtl><FONT face=Arial size=2><SPAN dir=ltr
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>