<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Brian, hi list,<br>
<br>
Brian Candler wrote:
<blockquote cite="mid20061013082009.GA1970@uk.tiscali.com" type="cite">
<pre wrap="">On Fri, Oct 13, 2006 at 01:35:04AM +0200, Norbert Zawodsky wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've set canreinvite=no on the channel to the SIP provider and it
immediately worked. O.k., I'm happy about that but I want to
*understand* what's going on here.
.
My setup is:
Asterisk is connected on one side via eth1 to the "outside world" (IP
adress 81.223.xxx.xxx) and on the other side via eth0 to the internal
LAN (eth0 has IP 192.168.1.200, SNOM phone has 192.168.1.201, ...).
</pre>
</blockquote>
<pre wrap=""><!---->
A good question, for which it's hard to give a short answer :-) ........
</pre>
</blockquote>
Thanks for your explainations. Now all that is far more clear to me!<br>
And my *-Box starts working now...<br>
<br>
But I have another wierd problem to solve:<br>
<br>
I reduced my sip.conf and extension.conf to an absolute minimum.<br>
<br>
sip.conf:<br>
<tt><br>
[general]<br>
context=from-inode ; Default context for incoming
calls<br>
realm=zawodsky.at ; Realm for digest
authentication<br>
defaultexpirey=14400<br>
bindport=5060 ; UDP Port to bind to (SIP
standard port is 5060)<br>
bindaddr=0.0.0.0 ; IP address to bind to
(0.0.0.0 binds to all)<br>
srvlookup=yes ; Enable DNS SRV lookups on
outbound calls<br>
tos=lowdelay ;
lowdelay,throughput,reliability,mincost,none<br>
disallow=all ; First disallow all codecs<br>
allow=alaw ; Allow codecs in order of
preference<br>
allow=ulaw ; Allow codecs in order of
preference<br>
allow=gsm ; Allow codecs in order of
preference<br>
<br>
register => <user>:<passwor><a
class="moz-txt-link-abbreviated" href="mailto:j@voip.inode.at:5060">@voip.inode.at:5060</a><br>
<br>
externip = 81.223.241.115 ; Address that we're going to
put in outbound SIP messages<br>
localnet=192.168.1.0/255.255.255.0 ; All RFC 1918 addresses are
local networks<br>
nat=yes ; Global NAT settings (Affects
all peers and users)<br>
<br>
;<br>
; 10 - Chef (Snom360)<br>
;<br>
[10]<br>
type=friend<br>
context=local-clients<br>
host=dynamic<br>
secret=WdCm1g<br>
dtmfmode=rfc2833<br>
callerid=Chef <10><br>
; callgroup=1<br>
; pickupgroup=1<br>
subscribecontext=local-clients</tt><br>
<br>
extensions.conf:<tt><br>
<br>
[general]<br>
static=yes<br>
writeprotect=no<br>
autofallthrough=yes<br>
clearglobalvars=no<br>
priorityjumping=no<br>
<br>
[globals]<br>
<br>
[from-inode]<br>
exten => s,1,NoOp(from-inode, EXTEN=${EXTEN})<br>
exten => s,n,Answer()<br>
exten => s,n,Echo()<br>
exten => s,n,Hangup()<br>
<br>
[local-clients]<br>
<br>
[default]<br>
</tt><br>
Now, the behavior I don' understand.<br>
<br>
I would assume that all inbound calls should be routed into the 's'
extension. I called * from another phone. The number my SIP provider
gave to me is 8904676, areacode 01. But<br>
<br>
if I call my box dialing my number "8904676", the call is routed to
's'. (I can hear the Echo application talking back to me)<br>
<br>
if I append an extension, regardless of using '10' or any other (fox
example 89046760, 89046761, 890467610, 890467612345), asterisk simply
rejects the
call. (The calling phones display says "not possible")<br>
<br>
I turned on sip debugging and noted folowing differences in the output
(1st='8904676', 2nd='890467610'):<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<tt>1st: INVITE <a class="moz-txt-link-abbreviated"
href="mailto:sip:s@81.223.241.115">sip:s@81.223.241.115</a> SIP/2.0<br>
2nd: INVITE <a class="moz-txt-link-abbreviated"
href="mailto:sip:01890467610@81.223.241.115">sip:01890467610@81.223.241.115</a>
SIP/2.0<br>
</tt><tt><br>
1st: To: <a class="moz-txt-link-abbreviated"
href="mailto:sip:8904676@p1.voip.inode.at">sip:8904676@p1.voip.inode.at</a><br>
2nd: To: <a class="moz-txt-link-abbreviated"
href="mailto:sip:890467610@p1.voip.inode.at">sip:890467610@p1.voip.inode.at</a><br>
<br>
1st:
From: <a class="moz-txt-link-abbreviated"
href="mailto:sip:0132079780@p1.voip.inode.at;tag=f6554db4ac48a72">sip:0132079780@p1.voip.inode.at;tag=f6554db4ac48a72</a><br>
</tt>
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<tt>2nd: From: <a class="moz-txt-link-abbreviated" href="mailto:sip:0132079780@p1.voip.inode.at;tag=b9295878fc2630d">sip:0132079780@p1.voip.inode.at;tag=b9295878fc2630d</a><br>
<br>
1st: Looking for s in from-inode (domain 81.223.241.115)<br>
2nd: Looking for 01890467610 in from-inode (domain 81.223.241.115)<br>
<br>
</tt>From this point on, debug output is completely different because
1st answers and 2nd hangs up.<br>
But why is this so?<br>
<br>
Regards Norbert<br>
(And thank you for your patience wiht my beginners questions!)<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
</body>
</html>