We use Jitsi as SIP client, and openxcap along with camailio to handle presence. Then jitsi know if account is online or offline.<div>Our Asterisk dont know nothing about accounts (it accepts all calls from kamailio). There I run AGI scripts, which can check kamailio tables - and I can know if account is online or offline. Of course this do not work if account is &quot;forced&quot; to offline.</div>
<div>But may be there is better solution.<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 10:04 PM, Dominik Mauritz <span dir="ltr">&lt;<a href="mailto:dominik.mauritz@web.de" target="_blank">dominik.mauritz@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have already tried that. I defined SIP-Accounts in Asterisk with host=&lt;Kamailio-IP&gt; (instead of host=dynamic). This solves the described problem but it also has side effects:<br>

<br>
- You don&#39;t have the correct presence status on your phone (e. g. xlite) indicating wether the account is online or offline<br>
- Asterisk always sends invites to Kamailio on incoming calls even if there is no phone registered to the account<br>
<br>
These are not the worst things in the world, but it is maybe not the best solution possible.<br>
<br>
<br>
<br>
Am 06.06.12 20:41, schrieb Stoyan Mihaylov:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
We use also Kamailio in front of Asterisk - but I forward only calls to Asterisk - register/unregister stay in Kamailio. Asterisk dont know which device is registered, and which is not.<br>
<br>
<br></div><div class="im">
On Wed, Jun 6, 2012 at 8:20 PM, Dominik Mauritz &lt;<a href="mailto:dominik.mauritz@web.de" target="_blank">dominik.mauritz@web.de</a> &lt;mailto:<a href="mailto:dominik.mauritz@web.de" target="_blank">dominik.mauritz@web.de</a><u></u>&gt;&gt; wrote:<br>

<br>
    Hi All,<br>
<br>
    some days ago I installed Kamailio as a front end for Asterisk following this tutorial:<br>
<br></div>
    <a href="http://kb.asipto.com/asterisk:__realtime:kamailio-3.1.x-__asterisk-1.6.2-astdb" target="_blank">http://kb.asipto.com/asterisk:<u></u>__realtime:kamailio-3.1.x-__<u></u>asterisk-1.6.2-astdb</a> &lt;<a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb" target="_blank">http://kb.asipto.com/<u></u>asterisk:realtime:kamailio-3.<u></u>1.x-asterisk-1.6.2-astdb</a>&gt;<div class="im">
<br>
<br>
    I added Multi Domain support and adjusted some other things to fit my environment. Almost everything is working perfectly now. One small issue is left:<br>
<br>
    With Kamailio in front of Asterisk I have one feature (next to other cool things) I was missing for years. I am now able to register more than one device on the same SIP account. This is nothing new for Kamailio users but Asterisk doesn’t support this.<br>

<br>
    If I register two phones on one SIP account with Kamailio everything is fine. They are able to make outgoing calls and both ring on incoming calls. But if one phone unregisters Kamailio forwards the unregister request to Asterisk and Asterisk sets this account to offline. Now a call comes in but Asterisk is not sending out an invite because for Asterisk the phone is offline.<br>

<br>
    I wonder if it is possible to forward an unregister request from Kamailio to Asterisk only if the last endpoint registered with one SIP account unregisters. If there is more than one endpoint using the same Account Kamailio should not forward the unregister request to Asterisk.<br>

<br>
    Any idea?<br>
<br>
    Thanks,<br>
    Dominik<br>
<br></div>
    ______________________________<u></u>___________________<div class="im"><br>
    SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br></div>
    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> &lt;mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>&gt;<br>

    <a href="http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users" target="_blank">http://lists.sip-router.org/__<u></u>cgi-bin/mailman/listinfo/sr-__<u></u>users</a> &lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a>&gt;<div class="im">
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<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/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div>