[jitsi-users] Jigasi API


#1

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be able to automatically start a SIP call when joining a room, is this possible?

Regards,
Markus Kullberg


#2

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

···

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be able to
automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#3

And how hard would it be to implement this feature or create a hack for it? Would I need to modify Jicofo and build from sources?

-Markus

···

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org<mailto:damencho@jitsi.org>> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com<mailto:markus.kullberg@teliacompany.com>> wrote:
Hi,

Does Jigasi have an API for starting a SIP call? I would like to be able to
automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________
users mailing list
users@jitsi.org<mailto:users@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org<mailto:users@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#4

Hi,

Yes, you need to modify jicofo, it detects people joining and can call
jigasi on the first user to join a room. It shouldn't be so hard to
hack.

Regards
damencho

···

On Fri, Dec 22, 2017 at 4:59 AM, <markus.kullberg@teliacompany.com> wrote:

And how hard would it be to implement this feature or create a hack for it?
Would I need to modify Jicofo and build from sources?

-Markus

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be able to

automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________

users mailing list

users@jitsi.org

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#5

Is there someone that can help me with this? I looked through the source code of Jicofo for hours but I think that the SIP call function is abstracted quite deep so I can't find it. Am I right in thinking that this feature should be implemented in the https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/JitsiMeetConferenceImpl.java#L495 function?

I am also wondering if it's possible to instead hack the Jitsi-Meet javascript? What are the pros/cons doing it this way? To me this seems easier but I am not very experienced with React+Redux so maybe it's not possible.

-Markus

···

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian Minkov
Sent: 22. joulukuuta 2017 17:38
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes, you need to modify jicofo, it detects people joining and can call jigasi on the first user to join a room. It shouldn't be so hard to hack.

Regards
damencho

On Fri, Dec 22, 2017 at 4:59 AM, <markus.kullberg@teliacompany.com> wrote:

And how hard would it be to implement this feature or create a hack for it?
Would I need to modify Jicofo and build from sources?

-Markus

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be
able to

automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________

users mailing list

users@jitsi.org

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#6

Hi,

Yes in JitsiMeetConferenceImpl onMemberJoined. Here is where the rayo
packets from the client are hendled and are forwarded to jigasi:
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/MeetExtensionsHandler.java#L194

You can do it in the client, but there is no way to detect whether
there is already a jigasi in the room or is currently joining, as I
remember you wanted to hack to invite one jigasi per room
automatically. So every participant will invite new jigasi, and even
if you work around that somehow, you will not be able to synchronize
things across clients, to handle the case where two clients enter
simultaneously and invite jigasi simultaneously.

Regards
damencho

···

On Tue, Jan 2, 2018 at 7:03 AM, <markus.kullberg@teliacompany.com> wrote:

Is there someone that can help me with this? I looked through the source code of Jicofo for hours but I think that the SIP call function is abstracted quite deep so I can't find it. Am I right in thinking that this feature should be implemented in the https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/JitsiMeetConferenceImpl.java#L495 function?

I am also wondering if it's possible to instead hack the Jitsi-Meet javascript? What are the pros/cons doing it this way? To me this seems easier but I am not very experienced with React+Redux so maybe it's not possible.

-Markus

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian Minkov
Sent: 22. joulukuuta 2017 17:38
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes, you need to modify jicofo, it detects people joining and can call jigasi on the first user to join a room. It shouldn't be so hard to hack.

Regards
damencho

On Fri, Dec 22, 2017 at 4:59 AM, <markus.kullberg@teliacompany.com> wrote:

And how hard would it be to implement this feature or create a hack for it?
Would I need to modify Jicofo and build from sources?

-Markus

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be
able to

automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________

users mailing list

users@jitsi.org

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#7

Hi,

I feel like I'm on the right track now but I can't figure out how to get the rayo DialIq packet to the meetExtensionHandler. This is the code that I have in onMemberJoined() in JitsiMeetConferenceImpl:

String from = "markus";
String to = "sip:thetestcall@sip2sip.info";
XmppConnection conn = getXmppConnection();
RayoIqProvider.DialIq dialIq = RayoIqProvider.DialIq.create(to, from);
conn.sendStanza(dialIq);

Through logging I can see that the packet gets sent but it doesn't get handled by meetExtensionHandler. I also thought about changing the handleRayoIq() function in MeetExtensionHandler to public from private and use it directly, but I don't know how to access the meetExtensionHandler member in FocusManager. I'm not sure that this would help either way, because neither of them are a member of JitsiMeetConferenceImpl.

Is there a developer documentation available? I don't understand the architecture behind Jitsi too well so it's really hard for me to understand things by reading the source code.

Any help would be greatly appreciated.

Regards
Markus

···

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian Minkov
Sent: 3. tammikuuta 2018 1:02
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes in JitsiMeetConferenceImpl onMemberJoined. Here is where the rayo packets from the client are hendled and are forwarded to jigasi:
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/MeetExtensionsHandler.java#L194

You can do it in the client, but there is no way to detect whether there is already a jigasi in the room or is currently joining, as I remember you wanted to hack to invite one jigasi per room automatically. So every participant will invite new jigasi, and even if you work around that somehow, you will not be able to synchronize things across clients, to handle the case where two clients enter simultaneously and invite jigasi simultaneously.

Regards
damencho

On Tue, Jan 2, 2018 at 7:03 AM, <markus.kullberg@teliacompany.com> wrote:

Is there someone that can help me with this? I looked through the source code of Jicofo for hours but I think that the SIP call function is abstracted quite deep so I can't find it. Am I right in thinking that this feature should be implemented in the https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/JitsiMeetConferenceImpl.java#L495 function?

I am also wondering if it's possible to instead hack the Jitsi-Meet javascript? What are the pros/cons doing it this way? To me this seems easier but I am not very experienced with React+Redux so maybe it's not possible.

-Markus

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian
Minkov
Sent: 22. joulukuuta 2017 17:38
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes, you need to modify jicofo, it detects people joining and can call jigasi on the first user to join a room. It shouldn't be so hard to hack.

Regards
damencho

On Fri, Dec 22, 2017 at 4:59 AM, <markus.kullberg@teliacompany.com> wrote:

And how hard would it be to implement this feature or create a hack for it?
Would I need to modify Jicofo and build from sources?

-Markus

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be
able to

automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________

users mailing list

users@jitsi.org

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#8

I'm not intimately familiar with that code, but:

You're not setting the recipient of the DialIQ stanza. "destination" is a custom field that tells Jigasi who to call, not to whom the DialIQ is sent. You'll want to set the "to" Jid, which needs to be the conference focus Jid you want to modify (e.g. HeroesWillDoSomething@conf.example.com/focus), but since you're sending this to yourself it should be as simple as xmppConnection.getOurJid().

Also, just firing and forgetting about an IQ is a bad habit. Use sendPacketAndGetReply and determine what you will do if the delivery/Jigasi invitation failed.

Ingo

···

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of
markus.kullberg@teliacompany.com
Sent: Donnerstag, 4. Januar 2018 19:01
To: users@jitsi.org
Subject: Re: [jitsi-users] Jigasi API
Hi,

I feel like I'm on the right track now but I can't figure out how to get the
rayo DialIq packet to the meetExtensionHandler. This is the code that I have
in onMemberJoined() in JitsiMeetConferenceImpl:

String from = "markus"; String to = "sip:thetestcall@sip2sip.info";
XmppConnection conn = getXmppConnection(); RayoIqProvider.DialIq dialIq
= RayoIqProvider.DialIq.create(to, from); conn.sendStanza(dialIq);

Through logging I can see that the packet gets sent but it doesn't get
handled by meetExtensionHandler. I also thought about changing the
handleRayoIq() function in MeetExtensionHandler to public from private and
use it directly, but I don't know how to access the meetExtensionHandler
member in FocusManager. I'm not sure that this would help either way, because
neither of them are a member of JitsiMeetConferenceImpl.

Is there a developer documentation available? I don't understand the
architecture behind Jitsi too well so it's really hard for me to understand
things by reading the source code.

Any help would be greatly appreciated.

Regards
Markus

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian Minkov
Sent: 3. tammikuuta 2018 1:02
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes in JitsiMeetConferenceImpl onMemberJoined. Here is where the rayo
packets from the client are hendled and are forwarded to jigasi:
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicof
o/Me etExtensionsHandler.java#L194

You can do it in the client, but there is no way to detect whether there is
already a jigasi in the room or is currently joining, as I remember you
wanted to hack to invite one jigasi per room automatically. So every
participant will invite new jigasi, and even if you work around that somehow,
you will not be able to synchronize things across clients, to handle the case
where two clients enter simultaneously and invite jigasi simultaneously.

Regards
damencho

On Tue, Jan 2, 2018 at 7:03 AM, <markus.kullberg@teliacompany.com> wrote:

Is there someone that can help me with this? I looked through the source

code of Jicofo for hours but I think that the SIP call function is
abstracted quite deep so I can't find it. Am I right in thinking that
this feature should be implemented in the
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicof
o/Ji tsiMeetConferenceImpl.java#L495 function?

I am also wondering if it's possible to instead hack the Jitsi-Meet

javascript? What are the pros/cons doing it this way? To me this seems easier
but I am not very experienced with React+Redux so maybe it's not possible.

-Markus

-----Original Message-----
From: users [mailto:users-bounces@jitsi.org] On Behalf Of Damian
Minkov
Sent: 22. joulukuuta 2017 17:38
To: Jitsi Users <users@jitsi.org>
Subject: Re: [jitsi-users] Jigasi API

Hi,

Yes, you need to modify jicofo, it detects people joining and can call
jigasi on the first user to join a room. It shouldn't be so hard to
hack.

Regards
damencho

On Fri, Dec 22, 2017 at 4:59 AM, <markus.kullberg@teliacompany.com> wrote:

And how hard would it be to implement this feature or create a hack
for it? Would I need to modify Jicofo and build from sources?

-Markus

Sent from my iPhone

On 21 Dec 2017, at 16.11, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

No, there is no such option at the moment. Jicofo is the one
responsible for controlling the conference and controlling jigasi.

Regards
damencho

On Thu, Dec 21, 2017 at 4:58 AM, <markus.kullberg@teliacompany.com> >>> wrote:

Hi,

Does Jigasi have an API for starting a SIP call? I would like to be
able to

automatically start a SIP call when joining a room, is this possible?

Regards,

Markus Kullberg

_______________________________________________

users mailing list

users@jitsi.org

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________ users mailing list
users@jitsi.org Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users
_______________________________________________ users mailing list
users@jitsi.org Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users