<div dir="ltr"><div><div><div><div><div><div><div>Directly jumping to Kamailio-Asterisk integration is not going to be a useful way to start any technology. First try and understand how kamailio works like:<br></div>- Uses of its core modules<br>
</div>- Parameters to pass these module<br></div>- Routing logic like you should understand the meaning of different routes in the default config, their flow.<br></div>- Instead of moving on directly to load balancing just try and RELAY a call to your Asterisk Media Server from Kamailio (look for t_relay).<br>
<br></div>Integrating Kamailio-Asterisk is not a big deal, but first you need to understand basics of Kamailio and its script.<br><br></div>Register @Kamailio -->  set a destination URI - Simply hard-code for understanding so set $du = "sip:" + Request-URI@Asterisk-IP -> then t_relay() -> you will receive a call on Asterisk if you have a dialplan set for the trunk/context created you will receive the call.<br>
<br><br></div>Note: This method is just for you to understand.<br><div><br><br><div><div><div><div><div><br><br><br><div><br><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Aug 18, 2013 at 1:59 PM, Nishar M.H <span dir="ltr"><<a href="mailto:nisharmh85@gmail.com" target="_blank">nisharmh85@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>I am comfortable with Asterisk.<br></div>Here i am facing the issues with kamailio. Last few days i have been struggling in kamailio integration with asterisk.<br><a href="http://lists.sip-router.org/pipermail/sr-users/2013-August/079311.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/2013-August/079311.html</a><br>

</div>I couldn't understand anything about kamailio configuration.<br></div>So i want to learn about the .cfg file and the programming they have used for. <br><br><br><br></div>Regards,<br><br></div>Nishar Hamsa<br><br>

<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 18, 2013 at 12:33 PM, Salman Zafar <span dir="ltr"><<a href="mailto:msalman212@gmail.com" target="_blank">msalman212@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Go through the documentation available, refer to the Building Telephony Systems book, try and add logs to understand the call flow, routing etc<br>

<br></div>SIP-Fundamentals are prerequisite you must understand a little more than basic SIP technology knowledge to get started.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, Aug 18, 2013 at 12:50 PM, Nishar M.H <span dir="ltr"><<a href="mailto:nisharmh85@gmail.com" target="_blank">nisharmh85@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hi,<br><br></div>How can i learn <b>kamailio.cfg</b> basics?<br>
</div>Is there any document for v4.0<br>
<br><br><br clear="all"><div><div><div><div><br>-- <br><div dir="ltr"><pre><br><code><span><code><span>Thanks & Regards,<br>
<br></span></code>--------------------------------------------------------------------------------------------<br><br><span style="font-family:arial narrow,sans-serif"><font><b>Nishar Hamsa<br><br></b></font></span><br><br>



<br><br><br></span></code><code><span><code><span>--------------------------------------------------------------------------------------------</span></code></span><br><br><br><span></span></code></pre></div>
</div></div></div></div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div>
<pre cols="72"><font face="'times new roman', serif">**************************
Muhammad Salman
***************************</font>
</pre></div></div>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><pre><br><code><span><code><span>Thanks & Regards,<br><br></span></code>--------------------------------------------------------------------------------------------<br>

<br><span style="font-family:arial narrow,sans-serif"><font><b>Nishar Hamsa<br><br></b></font></span><br><br><br><br><br></span></code><code><span><code><span>--------------------------------------------------------------------------------------------</span></code></span><br>

<br><br><span></span></code></pre></div>
</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">**************************
Muhammad Salman
***************************</font>
</pre></div></div>
</div>