<div dir="ltr">Hi all I have been trying to figure out where Im going wrong with following this guide:<br>
<a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb</a><br>
<br>
The only thing that is different is I am using Asterisk 1.8.22.0<br>
<br>
Kamailio works fine and I am able to register a phone to it but the forward register fails to register with Asterisk.<br>
<br>
<br>
Its like Asterisk doesn't see the request even running sip debug on the 
Asterisk Console it doesn't show the register attempts. I have to use 
ngrep to see any thing.<br>
<br>
Realtime works fine when I register the phone on Asterisk.<br>
<br>
Although I can get round the register using AGI I get the same issue 
when passing a call to asterisk, Asterisk doesn't see the invite.<br>
<br>
Am I missing something so obvious :-/  <br>
<br>
<br>
This is what I have in sip.conf<br>
"IP change to protect the innocent!"<br>
<br>
[kamailio-2]<br>
type=peer<br>
host=1.1.1.1<br>
fromdomain=1.1.1.1<br>
context=outgoing<br>
insecure=invite,port<br>
directmedia=nonat<br>
qualify=yes<br>
disallow=all<br>
allow=all<br>
<br>
and this is the sip trace  for the register<br>
<br>
<br>
U 2013/09/13 16:54:50.697484 <a href="http://1.1.1.1:5060">1.1.1.1:5060</a> -> <a href="http://172.16.0.110:5080">172.16.0.110:5080</a><br>
REGISTER sip:<a href="http://172.16.0.110:5080">172.16.0.110:5080</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bKd5d1.80da8915.0.<br>
To: <a href="mailto:sip%3A102@172.16.0.110">sip:102@172.16.0.110</a>.<br>
From: <a href="mailto:sip%3A102@172.16.0.110">sip:102@172.16.0.110</a>;tag=533cb9e91f4b999cf76861cbb9ed54ed-65e5.<br>
CSeq: 10 REGISTER.<br>
Call-ID: <a href="mailto:4670378d1185f5b6-25000@127.0.0.1">4670378d1185f5b6-25000@127.0.0.1</a>.<br>
Content-Length: 0.<br>
User-Agent: kamailio (3.3.1 (x86_64/linux)).<br>
Contact: <<a href="http://sip:102@172.16.0.112:5060">sip:102@172.16.0.112:5060</a>>.<br>
Expires: 120.<br>
.<br>
<br>
<br>
U 2013/09/13 16:54:54.697484 <a href="http://1.1.1.1:5060">1.1.1.1:5060</a> -> <a href="http://172.16.0.110:5080">172.16.0.110:5080</a><br>
REGISTER sip:<a href="http://172.16.0.110:5080">172.16.0.110:5080</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bKd5d1.80da8915.0.<br>
To: <a href="mailto:sip%3A102@172.16.0.110">sip:102@172.16.0.110</a>.<br>
From: <a href="mailto:sip%3A102@172.16.0.110">sip:102@172.16.0.110</a>;tag=533cb9e91f4b999cf76861cbb9ed54ed-65e5.<br>
CSeq: 10 REGISTER.<br>
Call-ID: <a href="mailto:4670378d1185f5b6-25000@127.0.0.1">4670378d1185f5b6-25000@127.0.0.1</a>.<br>
Content-Length: 0.<br>
User-Agent: kamailio (3.3.1 (x86_64/linux)).<br>
Contact: <<a href="http://sip:102@172.16.0.112:5060">sip:102@172.16.0.112:5060</a>>.<br>
Expires: 120.<br>
<br>
and I have this for my <br>
Asterisk binds in kamamilio.cfg<br>
<br>
#!ifdef WITH_ASTERISK<br>
asterisk.bindip = "172.16.0.110" desc "Asterisk IP Address"<br>
asterisk.bindport = "5080" desc "Asterisk Port"<br>
kamailio.bindip = "172.16.0.112" desc "Kamailio IP Address"<br>
kamailio.bindport = "5060" desc "Kamailio Port"<br>
#!endif<br>
<br>
<br>
<pre class="" cols="72">-- 
Regards
Mick
<br></pre></div>