<html><head><base href="x-msg://137/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>22 aug 2012 kl. 18:01 skrev Carlos Cruz:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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: 0px; font-size: medium; "><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I'm just starting to evaluate Kamailio to be used as a front end to a couple of Asterisk Servers.<o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Currently I have an Adobe Flex application that interfaces with Asterisk via AMI using a socket connection. I searched on how to interface with Kamailio but wasn't able to find anything that helped me. &nbsp;I would appreciate it if someone could point me to where I can find information on how this can be done using Kamailio. For example I would like my Flex Application to connect to Kamailio to know the status of the SIP channels.<o:p></o:p></div></div></div></span></blockquote><br></div><div>By default, kamailio doesn't have any knowledge about "channel". A SIP proxy is transaction stageful - in telephony terminology, it knows a call setup or a teardown, but doesn't have any relationship between them - the idea of a "call" is lost.</div><div><br></div><div>You can make Kamailio call stateful by using the dialog module, but on the other side - you don't need it since Asterisk is very call stateful. In fact, it makes your platform less redundant to have call states everywhere.</div><div><br></div><div>The interface you are looking for is either the MI interface or the RPC interface. We have two interfaces that mostly provides the same functionality. Every module has different functions. It is a simple query-answer interface and has not got the "events" that you get from Asterisk.</div><div><br></div><div>I hope this helps you.</div><div><br></div><div>/Olle</div><br></body></html>