Commit Graph

46 Commits

Author SHA1 Message Date
a5aed459a0 agent/bindings/conversation: Add swarm bindings
Change-Id: I8a02ae82cb2cf1494a13b263aca0555ab84ed98f
2021-12-10 09:21:18 -05:00
b65146fed3 agent/bindings/account: Add add-contact, remove-contact bindings
Change-Id: I2fca281e9144d06243ca09879a1d86551ccd1996
2021-12-10 09:21:18 -05:00
66ab51817f agent/bindings/signal: Protect from GC callbacks
Change-Id: If91bed7badd8229aee216a91445b758e8901e573
2021-12-10 09:21:18 -05:00
df9dba9bba multi-stream - remove legacy code
Remove obsolete code kept for backward compatibility.
Add call transfer test case

Gitlab: #470

Change-Id: I81472b8308ec402911670e8658308a184b97206c
2021-11-22 15:37:14 -05:00
5e6b8823fb agent/bindings: Bump bindings to new API for calls, conferences
Change-Id: I759ebe5f1827c27468f0d60e91098c70257c7b30
2021-11-19 10:55:15 -05:00
01cb294c44 callmanager: add accountId to identify calls, conferences
This starts the work to move calls and conference per account,
cleaning up the API and start future re-factorization.

Change-Id: I2a3a2c77e9ba78b1a280bdf8dca7eeaabb72f3fd
2021-11-16 15:59:41 -05:00
d66edafb7d agent/agent: Use parameter instead of fluid
Change-Id: I365b4346d123b0cc8c71a17e62e25bae37e5fc49
2021-11-12 11:20:19 -05:00
562f8c8a56 agent/examples: Fix examples
Change-Id: Idf54e78391eb77c7964c6650b6f70df71b8eac3a
2021-11-12 11:19:23 -05:00
914a8ec516 agent/peer-monitor: Fix typo and add pause in sighandler
Change-Id: I298a8bdca4a9263a5afa332b8501b1fefc3929de
2021-11-12 09:42:17 -05:00
c7a48b2421 agent/scenarios: Add peer-monitor scenario
Change-Id: Idba6d4b23add47382d64afd06808ccce61b90bc8
2021-11-01 17:32:13 -04:00
f6a48f89e9 agent/bindings/account: Add bindings
Change-Id: Ifc363fee36bd10fba9211cddaa03d6fbd8e99d49
2021-11-01 09:35:43 -04:00
d182919763 agent/utils: Add from_guile()::operator uint8_t()
Change-Id: I00df0524c8b00ad55fffe1ab17e82ba8a8ee9c0a
2021-11-01 09:35:43 -04:00
d3cfb5bff2 agent/Makefile.am: Rename agent binary
Guile is confused by agent.scm and agent.  It will try to load the ELF file
instead of the Scheme script when `(use-modules (agent))`.

Change-Id: Ieead4c384f10df9ead351a6ae66b21f708e97424
2021-10-25 17:21:05 -04:00
ddecafc724 agent/utils: Add ensure_type() method to from_guile caster
With the help of a macro, we also get the context where the casting failed.

Change-Id: I7be3d63de9dd07994fb5c8cad39d5a93eedb7e8f
2021-10-25 17:21:05 -04:00
8806899a52 agent/bindings/signal: Add all Jami's signal bindings
Change-Id: I373ddb0efdeca41bf54e80aec4b9d1db69f77300
2021-10-25 09:59:11 -04:00
522e4c325a agent/bindings: Add LOG_BINDING() macro
Change-Id: I95edfc348e9ef431e4ad26827bdfdadbba0fc746
2021-10-25 09:48:54 -04:00
490384875e agent: Add logging to (agent) and examples
Change-Id: I39c2bca72f8b6feb1578aecf32f97738eadfd235
2021-10-25 09:48:54 -04:00
39626f45d9 agent/bindings/logger: Add Jami's logger foreign function bindings
Change-Id: Ib70fdc0739a0ab7216be851b35f55a1ecb72a9a2
2021-10-23 12:43:27 -04:00
e60e88f02b agent/bindings/bindings.h: Add macros for constant definitions
Change-Id: I8c18baa7f42f06a99e56acba0ce7863f1db28938
2021-10-23 12:43:04 -04:00
da270b2ac4 agent/utils: Add to_guile::operator int()
Change-Id: I12a30be4d77574f66bd6fc207cfee501bdb41bfa
2021-10-23 12:43:04 -04:00
cbcb68214e agent/agent: Fix wait for announcement problems
Change-Id: I1de543265671728148e02d5b4d7d1878e22d6e18
2021-10-23 12:43:04 -04:00
064efa9024 agent/README: Update README
Change-Id: I2bcbbf872b54262f8e4406fb01921a1ec07be3b3
2021-10-13 12:08:29 -04:00
26f04d0a5c agent: Remove junks
Change-Id: I09876059293d18e25c34e755deafba8d224dc740
2021-10-13 12:08:29 -04:00
448b4e1e2b agent/examples: Update examples with new bindings
Change-Id: Ib5194ef6ca475df5be621c923d7660266cf7256e
2021-10-12 23:35:58 -04:00
dd132c8628 agent/agent: Add agent helper
Change-Id: I0c44b1a5fdd9727a8acf3d9deb88f9c2b5f71dd8
2021-10-12 23:35:53 -04:00
877f8cd210 agent: Add Jami's signal bindings
Change-Id: I1b21d80b7ea24bfc9334f2f63f3a57f0d4a57522
2021-10-12 23:35:50 -04:00
ecc4a089fd agent: Add Jami's call bindings
Change-Id: I59d9d812b6b5a2c66e2832328fbfdf663d9019af
2021-10-12 23:35:46 -04:00
904f74de22 agent: Add Jami's account bindings
Change-Id: I42fe3a4682bb9468ecf5417d6d9823e151e10bec
2021-10-12 23:35:42 -04:00
aa3299b36b agent: Use Jami's scheme bindings
The agent will be written in Guile Scheme instead of C++ in
order to give maximum flexibility to developers of scenarios.
Thus, bindings will be added for the public Jami interface.

In other words, the agent will be a client of yet another
Jami's bindings.

Change-Id: Ic2cd333007d0b1aad56c02b116ea708b56e96cc5
2021-10-12 23:35:38 -04:00
5dc71b2021 logging: fix signature and name space
Also set agent logging to console by default.

Change-Id: I4993886a149eb4f60e1d61bad7ed18956350599f
2021-09-23 14:24:24 -04:00
7357589ea9 agent: update README.md
Change-Id: I7e46255256ebce1a1e133c53d170539f6c8e1f8c
2021-08-31 15:27:41 -04:00
083f672819 agent/Makefile.am: Switch check_PROGRAMS to noinst_PROGRAMS
Change-Id: I384bca2ca4e97588b21041ebca72083c57abb915
2021-08-27 10:02:31 -04:00
2a2edcbbd7 agent/tools: Better make-account-archive
Change-Id: I5924025c4c9e37f7ebe554151b39a8da5eb5154e
2021-08-26 09:51:20 -04:00
fddb2ef82e agent: Add wait-for-call-state
Change-Id: I692df9c8e315e703fb079e136962905b9e83dce8
2021-08-26 09:51:07 -04:00
c4da9debfb agent: Use scm_schell() for execution of the agent
Change-Id: Ief1fd8fc1058f77784260d5be7a116d13ce06480
2021-08-26 09:51:07 -04:00
8468af34e3 agent: Add get-details
Change-Id: I7de1fb513238707930d500472bb6d8b2139aba2a
2021-08-26 09:51:07 -04:00
43c4c18561 agent: Make activate work
Change-Id: I08dc1c58529872c031ce9e5c36706173857f3f83
2021-08-26 09:51:07 -04:00
66d5d95557 agent: Fix possible race conditions
Change-Id: Ie6c21d1505f218a0de3bf79aec4565fc3713a922
2021-08-26 09:51:07 -04:00
baf62dd3d5 agent/bindings: Add pack/apply generics
Change-Id: Ia16f429032fd940b52393d946400300fe269048e
2021-08-25 12:09:45 -04:00
c5e369eaad agent/bindings: Add generic casts to/from Guile
Change-Id: Ib03bb6e858d0ad232c4fbe66846b2080b45ef4fc
2021-08-13 09:36:24 -04:00
f6217f1c24 agent: update README.md
Change-Id: If133b3ccb576a3def747c6175dce201b589de35a
2021-08-02 11:51:51 -04:00
98df43e9f2 agent: Use Guile
By removing the YAML configuration, the agent is now configured via a Scheme
file interpreted by Guile.

There's no need for behavior trees now since it can be reproduced naturally in
the Scheme language.

See README.md for how to compile and run.

Change-Id: Ibbf9ed0f965cee71bce63c0f8e8c12862f37176d
2021-07-28 14:12:21 -04:00
ba3a411ca3 daemon: Rename dring occurrences in code and file names to jamid.
Automated using the following commands:

  $ mv src/{dring,jami}
  $ git grep -l src/dring | xargs sed -i 's,src/dring,src/jami,g'
  $ git grep -l '#include "dring/' | \
    xargs sed -i 's,#include "dring/,#include "jami/,g'
  $ git grep -l 'dring.h' | xargs sed -i 's,dring.h,jami.h,g'

And finally,

  $ git grep -l 'dring' | xargs sed -i 's,dring,jami,g'

  $ files=$(find -name '*dring*' | sort)
  $ for f in $files; do mkdir -p "$(dirname "$f")"; \
      mv "$f" "$(echo $f | sed 's/dring/jami/g')"; done

To resolve a bad renaming favorably:

  $ git grep -l -i AlsaCarjami | \
    xargs sed -i -E 's/([Aa])lsaCarjami/\1lsaCardRingtone/g'

The above renaming command is not perfect, so some hand-tuning was
required to complete it.

* src/manager.cpp (Manager::ManagerPimpl::retrieveConfigPath):
Preserve the dring.yml configuration file name, until we add something
to migrate (rename) it to jami.yml.
* man/dring.pod: Delete.
* bin/dbus/jamid.pod: Move to ...
* man/jamid.pod: here.
* bin/dbus/meson.build (jamid_targets): Normalize man section to the
pre-existing 1 and adjust accordingly.
* src/jami/def.h (dring_EXPORTS): Rename to ...
(jami_EXPORTS): ... this.

change-Id: I9828be6da9c711ab2f22c4d1b9539fea89d7b6fb
2021-07-15 10:57:26 -04:00
b9779761c5 agent: Add log recording behavior
Change-Id: I702ab3422c3fd6bd528fe65a5541c98150a5722d
2021-07-07 14:50:21 -04:00
879185f851 agent: Use static account ID
Change-Id: I68e954bc8de9548a9da0026c014f27141e0b7ec0
2021-07-07 14:50:21 -04:00
7ed35a6eb6 agent: Initial agent with simple behavior tree
Change-Id: I67825b04f1fead3d4267564e4c366cb54037c593
2021-07-02 11:25:50 -04:00