File tree 3 files changed +38
-0
lines changed
3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # ###########################################################
4
+ # Alice calls Bob. Given Alice call_sid, use this script to
5
+ # move both calls to a conference room with music and muted
6
+ # that means to hold the call.
7
+ # ###########################################################
8
+
9
+ # Provide Restcomm ip address
10
+ restcomm_ip=
11
+ # Provide Username sid
12
+ userSid=
13
+ # Provide Auth Token
14
+ authToken=
15
+
16
+ # Call SID of the call to move. Use the call SID of the initial Call
17
+ sid=$1
18
+
19
+ echo " Moving call $1 to Conference"
20
+
21
+ curl -X POST http://$userSid :$authToken @$restcomm_ip :8080/restcomm/2012-04-24/Accounts/$userSid /Calls.json/$1 -d " Url=http://$restcomm_ip :8080//restcomm/demos/dial/conference/dial-conference.xml" -d " MoveConnectedCallLeg=true"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # ###########################################################
4
+ # Use this script to unhold a call previously set on hold
5
+ # ###########################################################
6
+
7
+ # Provide Restcomm ip address
8
+ restcomm_ip=
9
+ # Provide Username sid
10
+ userSid=
11
+ # Provide Auth Token
12
+ authToken=
13
+
14
+ # Call SID of the call to move. Use the call SID of the initial Call
15
+ sid=$1
16
+
17
+ curl -X POST http://$userSid :$authToken @$restcomm_ip :8080/restcomm/2012-04-24/Accounts/$userSid /Calls.json/$1 -d " Url=http://$restcomm_ip :8080/restcomm/demos/dial/conference/dial-conference-moderator.xml "
You can’t perform that action at this time.
0 commit comments