Alex, <br><br>Thanks for your response<br><br>perl is not the only option for me can go with php as well i saw a module named xhttp, can it fulfill my requirements ?<br><br>and by route script API, do you mean <a href="http://kamailio.org/docs/modules/3.1.x/modules/app_lua.html">http://kamailio.org/docs/modules/3.1.x/modules/app_lua.html</a>?<br>
<br><br>Mark, <br><br>Thanks to you too. <br><br>May it would not be an alternate to asterisk for most of the people but for me, i think it would be. <br><br>As my goal is just to exchange sip messages while being in the media and not being in the media, both conditions.<br>
<br><div class="gmail_quote">On Fri, Mar 18, 2011 at 3:07 AM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Sameer,<br>
<br>
I suppose the Kamailio facility most analogical to your current setup would be the Perl module:<br>
<br>
  <a href="http://www.kamailio.org/docs/modules/3.1.x/modules_k/perl.html" target="_blank">http://www.kamailio.org/docs/modules/3.1.x/modules_k/perl.html</a><br>
<br>
Although, you should beware that no call control can be delegated to such a script, just some simple logic.<br>
<br>
This doesn&#39;t mean that a Perl script is necessarily the best way to do what you want, especially because its execution will block one of Kamailio&#39;s relatively few SIP worker threads until it returns.  You may want to consider learning the route script API more in-depth and writing your billing logic in the route script, or deputising it into a database-side stored procedure.<br>

<br>
Thanks,<br>
<br>
-- Alex<div><div></div><div class="h5"><br>
<br>
On 03/17/2011 06:01 PM, Sameer Khan wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
Hi all<br>
<br>
I am looking forward to move from asterisk to kamailio, So may be<br>
asking some unusual questions<br>
<br>
<br>
My current system is working in such a way that<br>
<br>
Whenever a call arrives at asterisk i call perl script by AGI and then<br>
in that perl script i check customer status, billing, extension<br>
routing, updating cdr to my database and many more other operations.<br>
<br>
The billing which i am doing is different than the one in siremes and<br>
i dont want to go for GUI as well<br>
<br>
So I am looking for a solution similar to AGi.<br>
<br>
Please direct me to the right path.<br>
<br>
thanks<br>
<br>
Sameer.<br>
<br>
<br>
<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>
</blockquote>
<br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
260 Peachtree Street NW<br>
Suite 2200<br>
Atlanta, GA 30303<br>
Tel: <a href="tel:%2B1-678-954-0670" target="_blank"></a><a href="tel:%2B1-678-954-0670" target="_blank">+1-678-954-0670</a><br>
Fax: <a href="tel:%2B1-404-961-1892" target="_blank"></a><a href="tel:%2B1-404-961-1892" target="_blank">+1-404-961-1892</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
<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>
</blockquote></div><br>