[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] SIP Presence using SIP SIMPLE: How?
From:       Dennis Guse <dennis.guse () qu ! tu-berlin ! de>
Date:       2014-04-29 11:11:10
Message-ID: CAEeULf2RqdVZZ1hLbHhxzYxRSuZtJNdh=Xjf591SV7ExiXCX-Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Olle,

adding Kamailio is one option, but I must admit that I don't want to
complicate the existing setup any more and Asterisk is working quite well.
Actually I can live without the feature - it would just make things more
nicer ;)

About adding this feature - I can only offer some my work time (and one of
my co-workers) to implement this feature.
We could start this probably in June. But as I am not an experienced
Asterisk-Developer it would be great, if you (or somebody else) could help
me in finding the best starting point...

Cheers,
Dennis

Kind regards

Dennis Guse

Quality and Usability Lab
Telekom Innovation Laboratories
TU Berlin
Ernst-Reuter-Platz 7
D-10587 Berlin, Germany
Tel: +49 30 8353 58874
Fax: +49 30 8353 58409
E-mail: dennis.guse@telekom.de
Web: www.qu.tlabs.tu-berlin.de


On Mon, Apr 28, 2014 at 10:26 AM, Olle E. Johansson <oej@edvina.net> wrote:

>
> On 28 Apr 2014, at 10:15, Dennis Guse <dennis.guse@qu.tu-berlin.de> wrote:
>
> Thanks Olle for the explanation.
>
> Is such a feature planned, so that the presence status of a hinted
> extensions can be updated via SIP?
> Is anybody interested in such a feature?
>
> I have an old branch that supports PUBLISH for this. If there's funding, I
> can plan on working on this later this year.
>
>
> PS: Switching to Kamailio is not an option as there are some required
> features in Asterisk that I would really miss.
>
> You don't have to switch to Kamailio, you have to ADD kamailio to your
> network and keep Asterisk.
>
> /O
>
>
> ---
> Dennis Guse
>
> Kind regards
>
> Dennis Guse
>
> Quality and Usability Lab
> Telekom Innovation Laboratories
> TU Berlin
> Ernst-Reuter-Platz 7
> D-10587 Berlin, Germany
> Tel: +49 30 8353 58874
> Fax: +49 30 8353 58409
> E-mail: dennis.guse@telekom.de
> Web: www.qu.tlabs.tu-berlin.de
>
>
> On Sun, Apr 27, 2014 at 8:50 PM, Olle E. Johansson <oej@edvina.net> wrote:
>
>>
>> On 27 Apr 2014, at 20:01, Dennis Guse <dennis.guse@qu.tu-berlin.de>
>> wrote:
>>
>> Hallo,
>>
>> I have successfully activated hints and those are working (NOTIFY is send
>> by Asterisk on (un)-register to the subscribed clients). And the presence
>> state can be set using CustomPresence, by calling the dialplan function
>> PRESENCE_STATE [1].
>>
>> However, I have some trouble, if clients are setting there presence state
>> the sip way [2], but using Asterisk as proxy (no P2P presence). The clients
>> do not send there presence updates to Asterisk, because is not subscribing
>> on them (there is no SUBSCRIBE-message from Asterisk to a "hinted" client).
>>
>> How do I get Asterisk to subscribe on the clients, so Asterisk can the
>> presence update and can relay it? Or is this not implemented?
>>
>> It is not implemented and Asterisk is not a proxy.
>>
>> Use Kamailio if you want full presence.
>>
>> /O
>>
>>
>> Software:
>> Asterisk is 11.7 on an Ubuntu 14.04
>> The clients we use are based upon PJSIP 2.1.
>>
>> [1] https://wiki.asterisk.org/wiki/display/AST/Presence+State
>> [2] http://www.ietf.org/rfc/rfc3856.txt
>>
>> ---
>> Dennis Guse
>>  --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi Olle,<div><br></div><div>adding Kamailio is one option, but I must \
admit that I don&#39;t want to complicate the existing setup any more and Asterisk is \
working quite well.</div><div>Actually I can live without the feature - it would just \
make things more nicer ;)</div>

<div><br></div><div>About adding this feature - I can only offer some my work time \
(and one of my co-workers) to implement this feature.</div><div>We could start this \
probably in June. But as I am not an experienced Asterisk-Developer it would be \
great, if you (or somebody else) could help me in finding the best starting \
point...</div>

<div><br></div><div>Cheers,</div><div>Dennis  </div></div><div \
class="gmail_extra"><br clear="all"><div><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;" \
lang="DE">Kind regards<br><br>Dennis Guse<br>

</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br>Quality \
and Usability Lab<br>Telekom Innovation Laboratories<br>TU \
Berlin<br>Ernst-Reuter-Platz 7<br>D-10587 Berlin, Germany<br>

Tel: <a value="+4930835358874">+49 30 8353 58874</a><br>Fax: <a \
value="+4930835358409">+49 30 8353 58409</a><br>E-mail: <a \
href="mailto:dennis.guse@telekom.de" target="_blank"><span \
style="color:blue">dennis.guse@telekom.de</span></a><br>

Web: <a href="http://www.qu.tlabs.tu-berlin.de/" target="_blank"><span \
style="color:blue">www.qu.tlabs.tu-berlin.de</span></a></span></div> <br><br><div \
class="gmail_quote">On Mon, Apr 28, 2014 at 10:26 AM, Olle E. Johansson <span \
dir="ltr">&lt;<a href="mailto:oej@edvina.net" \
target="_blank">oej@edvina.net</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div style="word-wrap:break-word"><br><div><div class=""><div>On 28 Apr 2014, at \
10:15, Dennis Guse &lt;<a href="mailto:dennis.guse@qu.tu-berlin.de" \
target="_blank">dennis.guse@qu.tu-berlin.de</a>&gt; wrote:</div><br><blockquote \
type="cite">

<div dir="ltr"><div dir="ltr" \
style="font-family:arial,sans-serif;font-size:13px">Thanks Olle for the \
explanation.<div><br></div><div>Is such a feature planned, so that the presence \
status of a hinted extensions can be updated via SIP?</div>



<div>Is anybody interested in such a feature?</div></div></div></blockquote></div>I \
have an old branch that supports PUBLISH for this. If there&#39;s funding, I can plan \
on working on this later this year.</div><div><div class="">

<br><blockquote type="cite"><div dir="ltr"><div dir="ltr" \
style="font-family:arial,sans-serif;font-size:13px"><div><br></div><div>PS: Switching \
to Kamailio is not an option as there are some required features in Asterisk that I \
would really miss.</div>

</div></div></blockquote></div>You don&#39;t have to switch to Kamailio, you have to \
ADD kamailio to your network and keep Asterisk.</div><span class="HOEnZb"><font \
color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font \
color="#888888">/O</font></span><div>

<div class="h5"><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra" \
style="font-family:arial,sans-serif;font-size:13px">

<br clear="all"><div>---<br>Dennis Guse</div></div></div><div class="gmail_extra"><br \
clear="all"><div><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;" \
lang="DE">Kind regards<br><br>Dennis Guse<br>



</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br>Quality \
and Usability Lab<br>Telekom Innovation Laboratories<br>TU \
Berlin<br>Ernst-Reuter-Platz 7<br>D-10587 Berlin, Germany<br>



Tel: <a value="+4930835358874">+49 30 8353 58874</a><br>Fax: <a \
value="+4930835358409">+49 30 8353 58409</a><br>E-mail: <a \
href="mailto:dennis.guse@telekom.de" target="_blank"><span \
style="color:blue">dennis.guse@telekom.de</span></a><br>



Web: <a href="http://www.qu.tlabs.tu-berlin.de/" target="_blank"><span \
style="color:blue">www.qu.tlabs.tu-berlin.de</span></a></span></div> <br><br><div \
class="gmail_quote">On Sun, Apr 27, 2014 at 8:50 PM, Olle E. Johansson <span \
dir="ltr">&lt;<a href="mailto:oej@edvina.net" \
target="_blank">oej@edvina.net</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">



<div style="word-wrap:break-word"><br><div><div><div>On 27 Apr 2014, at 20:01, Dennis \
Guse &lt;<a href="mailto:dennis.guse@qu.tu-berlin.de" \
target="_blank">dennis.guse@qu.tu-berlin.de</a>&gt; wrote:</div><br><blockquote \
type="cite">



<div dir="ltr"><span \
style="font-family:arial,sans-serif;font-size:13px">Hallo,</span><div \
style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">I have successfully activated \
hints and those are working (NOTIFY is send by Asterisk on (un)-register to the \
subscribed clients). And the presence state can be set using CustomPresence, by \
calling the dialplan function  <span \
style="background-color:rgb(240,240,240);color:rgb(51,51,51);font-family:&#39;Courier \
New&#39;,Courier,monospace;font-size:14px;line-height:1.3">PRESENCE_STATE  \
</span>[1].</div>





<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">However, I have some trouble, if \
clients are setting there presence state the sip way [2], but using Asterisk as proxy \
(no P2P presence). The clients do not send there presence updates to Asterisk, \
because is not subscribing on them (there is no SUBSCRIBE-message from Asterisk to a \
&quot;hinted&quot; client).</div>





<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">How do I get Asterisk to \
subscribe on the clients, so Asterisk can the presence update and can relay it? Or is \
this not implemented?</div>



</div></blockquote></div>It is not implemented and Asterisk is not a \
proxy.</div><div><br></div><div>Use Kamailio if you want full \
presence.</div><div><br></div><div>/O<br><blockquote type="cite"><div><div dir="ltr">



<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">Software:</div><div \
style="font-family:arial,sans-serif;font-size:13px">Asterisk is 11.7 on an Ubuntu \
14.04</div>





<div style="font-family:arial,sans-serif;font-size:13px">The clients we use are based \
upon PJSIP 2.1.<br></div><div \
style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">





[1]  <a href="https://wiki.asterisk.org/wiki/display/AST/Presence+State" \
target="_blank">https://wiki.asterisk.org/wiki/display/AST/Presence+State</a></div><div \
style="font-family:arial,sans-serif;font-size:13px">[2]  <a \
href="http://www.ietf.org/rfc/rfc3856.txt" \
target="_blank">http://www.ietf.org/rfc/rfc3856.txt</a></div>





<div style="font-family:arial,sans-serif;font-size:13px"><br \
clear="all"><div>---<br>Dennis  <span \
style="background-color:rgb(255,255,204)">Guse</span></div></div> \
                </div></div><span><font color="#888888">
-- <br>_____________________________________________________________________<br>-- \
Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" \
target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing \
list<br>



To UNSUBSCRIBE or update options visit:<br>     <a \
href="http://lists.digium.com/mailman/listinfo/asterisk-dev" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></font></span></blockquote></div><br>



</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" \
target="_blank">http://www.api-digital.com</a> --<br> <br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
     <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div>
                
-- <br>_____________________________________________________________________<br>-- \
Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing \
list<br>

To UNSUBSCRIBE or update options visit:<br>     <a \
href="http://lists.digium.com/mailman/listinfo/asterisk-dev" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div></div></div><br></div>


<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br> <br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
     <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div>




-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic