<div dir="ltr">Hello folks,<div><br></div><div>I am trying to configure this on the same server:</div><div><br></div><div>Kamailio v4.2 port 5060 </div><div>RTPEngine v2.3 port 22222</div><div>Asterisk v11.18.0 port 5080</div><div><br></div><div><br></div><div>I am follow the Asipto tutorials, for the Kamailio and the real time configuration.</div><div><br></div><div>Now, I can talk between extension and PSTN without issues. </div><div><br></div><div>But the trouble is with the Status registration with Asterisk. And I need that Status OK because I am using queues in asterisk for call centre. </div><div><br></div><div>I got this from with: sip show peers</div><div><br></div><p style="margin:0px;font-size:12px;font-family:Menlo">Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description                      Realtime</p>
<p style="margin:0px;font-size:12px;font-family:Menlo">101                       (Unspecified)                            D  Yes        Yes            0        UNREACHABLE                                  Cached RT</p><div><br></div><div> the status is UNREACHABLE and the asterisk table sipregs won't update after each registration. To be sure, I tried first all config only with asterisk to check that is not a problem with MySQL or something.</div><div><br></div><div>On my cfg file I have this for the asterisk registration:</div><div><br></div><div><div>route[REGFWD] {</div><div>  if(!is_method("REGISTER"))</div><div>  {</div><div>    return;</div><div>  }</div><div>  $var(rip) = $sel(cfg_get.asterisk.bindip);</div><div>  $uac_req(method)="REGISTER";</div><div>  $uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.asterisk.bindport);</div><div>  $uac_req(furi)="sip:" + $au + "@" + $var(rip);</div><div>  $uac_req(turi)="sip:" + $au + "@" + $var(rip);</div><div>  $uac_req(hdrs)="Contact: <sip:" + $au + "@"</div><div>        + $sel(cfg_get.kamailio.bindip)</div><div>        + ":" + $sel(cfg_get.kamailio.bindport) + ">\r\n";</div><div>  if($sel(contact.expires) != $null)</div><div>    $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) + "\r\n";</div><div>  else</div><div>    $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";</div><div>  uac_req_send();</div><div>}</div><div><br></div><div><br></div><div>Any clue? </div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Javier Aristizábal<br></div>
</div></div>