Subscribe with Event 'dialog'

23 views
Skip to first unread message

Thomas Schulze

unread,
Dec 9, 2024, 7:36:38 AM12/9/24
to discuss-doubango
Hi @ all,

i followed the guide to subscribe to presence. At the end is it not what i want to achieve, i guess. Instead of "Event = Presence" i use "Event = Dialog" to be informed whether user are busy (in call) or not, but also when it's ringing at some specific user. At the end i want to have a BLF functionality.

Everything works so far, but if i get the event "ringing" i see the callee, but not the caller to take over the call.

This is my subscribe:
...
sip_headers: [
                          { name: 'Event', value: 'dialog' }, 
                          { name: 'Accept', value: 'application/pidf+xml' }
                ]
 });

Do i miss something?

Regards
Thomas

komil....@gmail.com

unread,
Dec 9, 2024, 10:32:46 PM12/9/24
to discuss-doubango
Hello Thomas,

Can you share whole code to see and test with my own environment?

Regards.


понедельник, 9 декабря 2024 г. в 17:36:38 UTC+5, Thomas Schulze:

Thomas Schulze

unread,
Dec 10, 2024, 2:10:19 AM12/10/24
to discuss-doubango
Hello,

from my opinion you don't need the whole code, it's even too much. 

I investigate it a little bit more. And i realized i don't need the callers number. There is a notification in the dialog "Ringing", and with this i can place an action to asterisk to take over the call by just calling "**ext" (where ext is the callee). I will check it out.

Regards

Thomas
Reply all
Reply to author
Forward
0 new messages