<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Metshet,<div><br></div><div>in the sip.conf located usually in /etc/asterisk/sip.conf</div><div>look for the parameters</div><div><br></div><div>bindport=5060</div><div>bindaddr=0.0.0.0</div><div><br></div><div>You can adjust the port and/or the ip the asterisk listen.</div><div>You can take two paths:</div><div>- Alias interfaces, having the same box w/ several ip address.</div><div>- Let asterisk use a different port</div><div><br></div><div>In both ways you need let kamailio know what ip/port need to talk to asterisk.</div><div><br></div><div>Personally I like to have several ip addresess in one box, this way I can talk directly to asterisk and kamailio in their native sip port.</div><div><br></div><div>Regards,</div><div><br></div><div>Rafael</div><div><br></div><div><br></div><div><div><div>On Apr 17, 2009, at 9:33 AM, Schumann Sebastian wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2">Hi Metshet</font></span></div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2">Sure it is possible. You can specify with the listen= or port= statement the Transport:IP:port or just the port respectively.</font></span></div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2">The option, to modify the SIP port should also exisit in Asterisk.</font></span></div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2">Sebastian</font></span></div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div><div dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="291382713-17042009"><font face="Arial" color="#0000ff" size="2">PS: See e.g.<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#listen">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#listen</a>&nbsp;for listen in Kamailio 1.5</font></span></div><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left-color: rgb(0, 0, 255); border-left-width: 2px; border-left-style: solid; margin-right: 0px; "><div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:users-bounces@lists.kamailio.org">users-bounces@lists.kamailio.org</a><span class="Apple-converted-space">&nbsp;</span>[<a href="mailto:users-bounces@lists.kamailio.org">mailto:users-bounces@lists.kamailio.org</a>]<span class="Apple-converted-space">&nbsp;</span><b>On Behalf Of<span class="Apple-converted-space">&nbsp;</span></b>Metshet Seleshi<br><b>Sent:</b><span class="Apple-converted-space">&nbsp;</span>Friday, 17. April 2009 15:27<br><b>To:</b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br><b>Subject:</b><span class="Apple-converted-space">&nbsp;</span>[Kamailio-Users] run openser and asterisks in one box<br></font><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="font-family: 'Times New Roman'; "><div style="font-size: 12pt; border-top-style: none; font-family: 'times new roman', 'new york', times, serif; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">hi all,&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">is it possible to run openser and asterisks in one box,&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have googled but all the result I got have&nbsp;<span class="Apple-style-span" style="font-size: 12px; white-space: pre; ">rewritehostport("X.X.X.X:5060) with   a diffrent IP than the server IP, </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; "><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; ">I am assuming either they have 2   <span class="yshortcuts" id="lw_1239974727_0" style="cursor: pointer; border-bottom-color: rgb(0, 102, 204); border-bottom-width: 1px; border-bottom-style: dashed; ">network   card</span> or refering to another host . </span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; "><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; ">but will it be possible to put them   togather? if so how, </span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; "><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; ">thanks, </span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; "></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre; ">please   help</span></font></div></div></div></div></span></div><div style="position: fixed; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div></div><br></blockquote>_______________________________________________<br>Kamailio (OpenSER) - Users mailing list<br><a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br><a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br><a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></div></span></blockquote></div><br></div></body></html>