Here's a link to the PDF this comes from:
Tuesday, February 7, 2023
Some general Asterisk dialpaln code
Save a Voice recording into a MySQL database
Here is an example of an Asterisk dialplan that asks for a voice recording and then saves it into a MySQL database:
[macro-record-and-save]
exten => s,1,Answer()
exten => s,2,Record(recording:/tmp/recording)
exten => s,3,System(mysql -u [username] -p[password] -h [host] [database] -e "INSERT INTO recordings (filename) VALUES ('/tmp/recording')")
exten => s,4,Hangup()
MySQL username, password, host, and database name.
If the caller presses 1, they are transferred to the sales extension.
If the caller presses 2, they are transferred to the support extension.
If the caller presses 3, they are transferred to the billing extension.
If the caller does not press a key, they stay on the line for 10 seconds before being disconnected.
Each department extension plays a message indicating which department the caller has been transferred to and then waits for 10 seconds for a representative to answer.
The Background command plays a message asking the caller to enter their 4 digit passcode. The WaitExten command waits for 10 seconds for the caller to enter a 4-digit passcode.
Sunday, February 5, 2023
Setting up Sony SRG X120 X400 cameras with RM-IP controllers
This is a kind of high-level setup of X120 cameras.
Essentially:
Cameras will need to be accessible from the IP network as the controller. You can HTTP to each camera's ip address and lock in an IP address.
Then use the IP controller app SONY PTZ SRG-X120 - Google Drive called "RM-IP"
Make sure that you have the cameras setup into group and with unique names. The group number coincides with the RM-IP10 controller.
On the controller itself there are two rows of DIP switches. Bottom row, #8, you set to on to allow writing. Power cycle the controller, the lights on the controller will blink continuously.
Go to the RMIP app, and you should be able to select the controller (assuming all on same network).
under "CAMERA TABLE" what I do is select the spots that I want to occupy a camera, then use "AUTO ASSIGN" then assign the IP range(s) of the cameras I want.
Apply it, and then once you have done that. Flip the switch 8 on the controller back to normal position and power cycle it. Should be good to go.
Sunday, January 22, 2023
Multiple rtsp on Sony SRG-X120
Here's how you get multiple RTSP streams working on a SRG-X120 camera
By Default, 1 RTSP stream is configured. All you have to do to make it work is go to your device that you want to get the video and create a rtsp connection like this:
rtsp://IP_of_CAM/video1 rtsp://IP_of_CAM/video2 and rtsp://IP_of_CAM/video3
You have to activate video2 and video3.
Go to SETTINGS -> VIDEO -> VIDEO CODEC
You'll see "Image 1" is configured, but by default, "Image 2" and "Image 3" are not.
In the drop box, select "H.264" and then you can adjust the other settings if you want.
Default might be enough.
Click on "OK"
Here's an example in OBS connecting to the second RTSP stream using a "MEDIA Source"
put in the URL (same url for VMIX)
rtsp://IP_of_CAM/video2 /video2 or /video3
Remove "INPUT FORMAT" entry.
Click on "OK"
SRT setup on a Sony SRG-X120 SRG-X400
Here's a bit of info on how to setup a SRT config on an SRG-X120 camera.
First, you'll need version 3.0 of the firmware
You can go to Sony's page to get the firmware and instructions how to update
1> First, to get SRT activated, go to Settings-> Audio-> SEND = Enabled -> OK
2> Then you go into your camera, go to SETTINGS - STREAMING
3> In Streaming mode, pick if you are a Caller or a Listener
Caller mode does not support an automatic retry if the destination (OBS) becomes unavailable.
srt://Destination_IP:PORT
The Syntax will look like:
8> Select OK
In the SRG-X120 screen you will see (assuming everything was configured correctly) the screen give a red outline to indicate its streaming:
Saturday, January 21, 2023
Sony SRG-X120 Firmware upgrade
Settings - Initialize -
Select the firmware you want to apply om tje
Version Up section
If your camera is stuck in the "transferring" dialog window shown above, after 5 minutes, in my experience its safe to power cycle the camera and try again.
Factory HTML Password
Username: admin
Password: Admin_1234

