Hi all
I am looking forward to move from asterisk to kamailio, So may be asking some unusual questions
My current system is working in such a way that
Whenever a call arrives at asterisk i call perl script by AGI and then in that perl script i check customer status, billing, extension routing, updating cdr to my database and many more other operations.
The billing which i am doing is different than the one in siremes and i dont want to go for GUI as well
So I am looking for a solution similar to AGi.
Please direct me to the right path.
thanks
Sameer.
Sameer,
I suppose the Kamailio facility most analogical to your current setup would be the Perl module:
http://www.kamailio.org/docs/modules/3.1.x/modules_k/perl.html
Although, you should beware that no call control can be delegated to such a script, just some simple logic.
This doesn'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'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.
Thanks,
-- Alex
On 03/17/2011 06:01 PM, Sameer Khan wrote:
Hi all
I am looking forward to move from asterisk to kamailio, So may be asking some unusual questions
My current system is working in such a way that
Whenever a call arrives at asterisk i call perl script by AGI and then in that perl script i check customer status, billing, extension routing, updating cdr to my database and many more other operations.
The billing which i am doing is different than the one in siremes and i dont want to go for GUI as well
So I am looking for a solution similar to AGi.
Please direct me to the right path.
thanks
Sameer.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Sameer,
Kamailio is not a replacement for Asterisk. We, and many others on this list, use Kamilio+Asterisk+AGI to accomplish what we want.
Mark
On Fri, Mar 18, 2011 at 9:07 AM, Alex Balashov abalashov@evaristesys.com wrote:
Sameer,
I suppose the Kamailio facility most analogical to your current setup would be the Perl module:
http://www.kamailio.org/docs/modules/3.1.x/modules_k/perl.html
Although, you should beware that no call control can be delegated to such a script, just some simple logic.
This doesn'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'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.
Thanks,
-- Alex
On 03/17/2011 06:01 PM, Sameer Khan wrote:
Hi all
I am looking forward to move from asterisk to kamailio, So may be asking some unusual questions
My current system is working in such a way that
Whenever a call arrives at asterisk i call perl script by AGI and then in that perl script i check customer status, billing, extension routing, updating cdr to my database and many more other operations.
The billing which i am doing is different than the one in siremes and i dont want to go for GUI as well
So I am looking for a solution similar to AGi.
Please direct me to the right path.
thanks
Sameer.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 03/17/2011 06:20 PM, Mark Sayer wrote:
Kamailio is not a replacement for Asterisk.
In some cases, it can be, depending on what you're doing with Asterisk to begin with. Pure call routing without any of the interactivity that Asterisk introduces is a valid application for a solitary Kamailio setup. But you're right, many real-world call transit applications can't get by on Kamailio alone.
On 3/17/11 6:23 PM, Alex Balashov wrote:
In some cases, it can be, depending on what you're doing with Asterisk to begin with. Pure call routing without any of the interactivity that Asterisk introduces is a valid application for a solitary Kamailio setup. But you're right, many real-world call transit applications can't get by on Kamailio alone.
It is possible to only setup Kamailio to do far end nat-traversal without proxying RTP. So, depending on the 'world' in question a B2BUA / Asterisk might not be absolutely required.
I have a simple configuration on my blog: http://bit.ly/f8X9SN
Comments and/or improvements are absolutely welcome!
Jeremy McNamara
Looks Great Jeremy,
I will see if there is of any help for me and let u know.
Thanks for sharing
On Fri, Mar 18, 2011 at 3:38 AM, Jeremy McNamara jj@indie.org wrote:
On 3/17/11 6:23 PM, Alex Balashov wrote:
In some cases, it can be, depending on what you're doing with Asterisk to begin with. Pure call routing without any of the interactivity that Asterisk introduces is a valid application for a solitary Kamailio setup. But you're right, many real-world call transit applications can't get by on Kamailio alone.
It is possible to only setup Kamailio to do far end nat-traversal without proxying RTP. So, depending on the 'world' in question a B2BUA / Asterisk might not be absolutely required.
I have a simple configuration on my blog: http://bit.ly/f8X9SN
Comments and/or improvements are absolutely welcome!
Jeremy McNamara
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi All .
Any other suggestion for this ?
On Sat, Mar 19, 2011 at 3:35 AM, Sameer Khan sameer2k3t@gmail.com wrote:
Looks Great Jeremy,
I will see if there is of any help for me and let u know.
Thanks for sharing
On Fri, Mar 18, 2011 at 3:38 AM, Jeremy McNamara jj@indie.org wrote:
On 3/17/11 6:23 PM, Alex Balashov wrote:
In some cases, it can be, depending on what you're doing with Asterisk to begin with. Pure call routing without any of the interactivity that Asterisk introduces is a valid application for a solitary Kamailio setup. But you're right, many real-world call transit applications can't get by on Kamailio alone.
It is possible to only setup Kamailio to do far end nat-traversal without proxying RTP. So, depending on the 'world' in question a B2BUA / Asterisk might not be absolutely required.
I have a simple configuration on my blog: http://bit.ly/f8X9SN
Comments and/or improvements are absolutely welcome!
Jeremy McNamara
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Alex,
Thanks for your response
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 ?
and by route script API, do you mean http://kamailio.org/docs/modules/3.1.x/modules/app_lua.html?
Mark,
Thanks to you too.
May it would not be an alternate to asterisk for most of the people but for me, i think it would be.
As my goal is just to exchange sip messages while being in the media and not being in the media, both conditions.
On Fri, Mar 18, 2011 at 3:07 AM, Alex Balashov abalashov@evaristesys.comwrote:
Sameer,
I suppose the Kamailio facility most analogical to your current setup would be the Perl module:
http://www.kamailio.org/docs/modules/3.1.x/modules_k/perl.html
Although, you should beware that no call control can be delegated to such a script, just some simple logic.
This doesn'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'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.
Thanks,
-- Alex
On 03/17/2011 06:01 PM, Sameer Khan wrote:
Hi all
I am looking forward to move from asterisk to kamailio, So may be asking some unusual questions
My current system is working in such a way that
Whenever a call arrives at asterisk i call perl script by AGI and then in that perl script i check customer status, billing, extension routing, updating cdr to my database and many more other operations.
The billing which i am doing is different than the one in siremes and i dont want to go for GUI as well
So I am looking for a solution similar to AGi.
Please direct me to the right path.
thanks
Sameer.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: <%2B1-678-954-0670>+1-678-954-0670 Fax: <%2B1-404-961-1892>+1-404-961-1892 Web: http://www.evaristesys.com/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 3/17/11 6:01 PM, Sameer Khan wrote:
So I am looking for a solution similar to AGi.
Kamailio and Asterisk are not in the least bit 'replacements' for each other. Kamailio is a SIP Proxy. Asterisk is a hybrid B2BUA/App Server/Gateway creation.
Also, when you say AGI and based on the nature of your question itself, I fear you are not running FastAGI. You should be!
Given a proper FastAGI enabled application, one could also add in an additional remote access method (xml-rpc? XMPP? etc) that Kamailio could also utilize as necessary.
Jeremy McNamara