Skip to content

Commit

Permalink
[call_center] Added MSRP/chat support
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed May 9, 2022
1 parent ba22937 commit d5a99e8
Show file tree
Hide file tree
Showing 27 changed files with 856 additions and 377 deletions.
23 changes: 22 additions & 1 deletion db/schema/cc_agents.xml
Expand Up @@ -44,6 +44,7 @@
<name>location</name>
<type>string</type>
<size>128</size>
<null/>
<description>SIP URI point to the agent location;
All calls for this agents will be sent to this
SIP address.</description>
Expand All @@ -54,12 +55,32 @@
<type>unsigned int</type>
<size>10</size>
<default>0</default>
<description>The login state of the agent;
<description>The call login state of the agent;
0 - not logged in; 1 - logged in ; Agent will
start receiving calls only if logged in.
</description>
</column>

<column id="msrp_location">
<name>msrp_location</name>
<type>string</type>
<size>128</size>
<null/>
<description>MSRP SIP URI point to the agent location;
All chat sessions for this agents will be sent to this
SIP address.</description>
</column>

<column id="msrp_max_sessions">
<name>msrp_max_sessions</name>
<type>unsigned int</type>
<size>10</size>
<default>4</default>
<description>How many MSRP/chat sessions the agent
can handle in the same time.
</description>
</column>

<column id="skills">
<name>skills</name>
<type>string</type>
Expand Down
16 changes: 13 additions & 3 deletions db/schema/cc_calls.xml
Expand Up @@ -9,11 +9,12 @@

<table id="cc_calls" xmlns:db="http://docbook.org/ns/docbook">
<name>cc_calls</name>
<version>2</version>
<version>3</version>
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
<description>
<db:para>This table is used by the Call Center module to store ongoing calls for restart persitancy.
It consists only of runtime data and should not be manually provisioned.
<db:para>This table is used by the Call Center module to store ongoing
calls for restart persitancy. It consists only of runtime data and
should not be manually provisioned.
More information can be found at: &OPENSIPS_MOD_DOC;call_center.html.
</db:para>
</description>
Expand All @@ -37,6 +38,15 @@
</description>
</column>

<column id="media">
<name>media</name>
<type>int</type>
<size>11</size>
<description>Indicates the media type of the call,
(0) RTP/audio or (1) MSRP/chat.
</description>
</column>

<column id="ig_cback">
<name>ig_cback</name>
<type>int</type>
Expand Down
15 changes: 14 additions & 1 deletion db/schema/cc_cdrs.xml
Expand Up @@ -9,7 +9,7 @@

<table id="cc_cdrs" xmlns:db="http://docbook.org/ns/docbook">
<name>cc_cdrs</name>
<version>1</version>
<version>2</version>
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
<description>
<db:para>This table is used by the Call Center module to store
Expand Down Expand Up @@ -139,4 +139,17 @@
</description>
</column>

<column id="media">
<name>media</name>
<type>int</type>
<size>11</size>
<default>0</default>
<description>Media type of the call:
1 - RTP/audio;
2 - MSRP/chat;
</description>
</column>



</table>
2 changes: 1 addition & 1 deletion db/schema/cc_flows.xml
Expand Up @@ -9,7 +9,7 @@

<table id="cc_flows" xmlns:db="http://docbook.org/ns/docbook">
<name>cc_flows</name>
<version>2</version>
<version>3</version>
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
<description>
<db:para>This table is used by the Call Center module to store
Expand Down

0 comments on commit d5a99e8

Please sign in to comment.