Friday, February 26, 2021

Sangoma Vega 100g Configuration with FREEPBX

 

This document will discuss how to create a SIP or PJSIP trunk between a Vega 100 and an Asterisk box.  We'll be using FreePBX distribution.

This was built on the VEGA Firmware Version VEGA_R111S033

FreePBX version 14.0.16.4

The process will be first to build the TRUNK in the Asterisk FREPBX config

Then build the trunk connection in the Vega100 device

In the examples used

  • VEGA box will be 10.1.105.50
  • FreePBX will be 10.1.105.52
  • SIP Trunk will be VegaSIP
  • PJSIP Trunk will be VegaPJSIP

SOME other info.
You can console to the port using a serial port (cisco cable works) and the baud rate is 115200
If you get stuck on the configs and want to start again, use "FACTORY RESET" to reset the configs.  This won't reset your LAN or password settings, just configs.   once issued, follow it up with a "SAVE" followed by a "REBOOT
Also in console (such as putty) "CTRL+H" is backspace if you make a syntax typo

CONFIGURATION STEPS

Asterisk FREEPBX Trunk configuration

Currently in the FreePBX gui, you can have SIP or PJSIP trunks.  You can also have your configuration setup so that one or the other is simply disabled


Either will work, just different configuration depending on your situation, all 3 will be discussed.

SIP TRUNK

Create a SIP trunk with the Trunk name of "VegaSIP"


Make the "Trunk Names" and the username match.  Put this in the Outgoing PEER details box

username=VegaSIP
type=peer
trustrpid=yes
sendrpid=yes
secret=VegaSIPpass
qualify=yes
insecure=port,invite
host=dynamic
dtmfmode=rfc2833
disallow=all
context=from-internal
allow=ulaw,alaw

Save and apply this.


PJSIP TRUNK

Trunk Name (aka Username) = VegaSIP
Secret = VegaSIPpass
Authentication = INBOUND
REGISTARTION = RECEIVE



Vega 100G Configuration

STEP 1

Login to your Vega 100 gui  (http://IPof Vega )

Click on QUICK CONNECT

Set your Country


Click on VOIP

At point of writing this, I'm not sure what "VOIP" section in quick config does exactly.  because it doesn't seem to populate anything in the main configuration.  But I'll include this step anyway till I can figure it out.

Put in the IP of your asterisk PBX server.  No registration mode required.

The above entry reflects in this entries
   set .quick.voip.proxy.auth_name="TEST"
   set .quick.voip.proxy.auth_pwd="MARKET"
   set .quick.voip.proxy.outbound_profile_sig_transport="udp"
   set .quick.voip.proxy.outbound_proxy_port="5160"
   set .quick.voip.proxy.proxy_addr="10.1.105.52"
   set .quick.voip.proxy.tls_port="5061"

(This document won't reflect the T1/E1 configurations)

Click on “NEW INSTALL” check box

Click on “SUBMIT”

REBOOT

STEP 2

Goto EXPERT CONFIG -> SIP ->  "MODIFY" (under "SIP PROFILES")


Set LOCAL DOMAIN - IP of your PBX



Click SUBMIT

STEP 3

Below "SIP Profile 1 Proxy Parameters 1"

Select the "Chg? MODIFY" button 

Put in your IP of your PBX and ensure its "ENABLED"

Select SUBMIT

STEP 4

Scroll down to the bottom in the section with "SIP Registrar" and select "MODIFY"


Ensure it is enabled

Put in the IP of your PBX and click on SUBMIT

STEP 5

Go to Expert Config -SIP

In the "Registration" section

Enable Registration check box 

Press submit

STEP 6

Go to EXPERT CONFIG - SIP - "SIP Authentication Configuration"

Click on the "SIP Authentication" link


Select MODIFY

Enter in your Asterisk FreePBX trunk use name and password

Select "ENABLE"

Press SUBMIT

STEP 7

Goto EXPERT CONFIG - SIP 

Select "SIP Registration Users Configuration"

You should now see a profile that reflects the user name of your trunk.  Click on MODIFY beside the one with your trunk user name


Click on MODIFY beside the entry with an authentication name

Put in the USER name, set to enable, and press submit

click on SAVE

click on APPLY CHANGES

Reboot unit

If everything is configured, in your asterisk log you should see something like this:

Contact VegaSIP/sip:01@10.9.105.15:5060 is now Reachable.  RTT: 10.895 msec

And in the SANGOMA gui you'll see something like this:




 

Tuesday, February 23, 2021

Stream to YouTube and Facebook simultaneously from OBS

 Want to be able to stream to both YouTube and Facebook simultaneously from OBS?  Well you can with this plug in!

Download this plug in for your Windows box from the following location (as of writing its version 0.2.5.3)

Releases · sorayuki/obs-multi-rtmp · GitHub

"obs-multi-rtmp.zip"


Now unzip the file



Now open up your existing OBS installation location C:\Program Files\obs-studio


Now just drag and drop the 'data" and the "obs-plugins" folder one at a time from your downloaded file and drop it into the C:\Program Files\obs-studio location, windows will merge the files together automatically.

Now launch OBS


You may need to activate enable its view by clicking on "VIEW -> DOCKS -> MULTIPLE OUTPUT"



It will now show up in your view

Now its easy.  If you are doing this you should be familiar with streaming configs.

First, you'll need to have one pre configured in OBS itself.  My example I've got a YouTube stream already configured in OBS.


If the plugin didn't automatically populate these configs in the plugin itself, you'll need to add them manually.  So, you'll have YouTube configured in the regular stream section in OBS, then you'll repeat the config in the Multi-OBS plug-in as well.  



Now add your FaceBook (or whatever other streams you want to add in)


Click on "START" stream in OBS regular spot (you need to tell OBS to start streaming in the program itself.


Once you do this, you can click start on both entries in the plugin:

You can safely click "STOP STREAMING" in the OBS button.  Your plugin will keep streaming.

That should be it, you should be streaming to 2 different destinations.











Monday, February 15, 2021

Prevent CENTOS from putting laptop to sleep when closing the lid.

This will stop CENTOS from powering off, suspending, or knocking the network out if you close the lid of the laptop.

Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack. Therefore, consider if changing the default setting (suspend) is the best option in your case.

  1. Open /etc/systemd/logind.conf file for editing.
  2. Find HandleLidSwitch=suspend line in the file. If it has a hash/pound (#) symbol, remove it. 
    Most instructions fail to mention that.  Very important.
    If the line is not present in the file, add it.

  3. Replace the default suspend parameter with one of the following:

    lock for the screen to lock
    poweroff for the computer to switch off
    ignore for nothing to happen

    Example:
    HandleLidSwitch=lock
  4. Save your changes and close the editor.
  5. Run the following command so that your changes preserve the next restart of the system:

    systemctl restart systemd-logind.service

Sunday, February 14, 2021

Mounting an SMB share in linux

 There are lots of docs on this, heres a situation i have.

Trying to mount a SMB share in linux.  In my situation, CENTOS7, the GUI i could see the smb share and browse, but i couldn't see/mount anything in the GUI as one normally would want to.

my issue, I kept getting "HOST DOWN" or other errors and I couldn't figure out why.

In my situation, i discovered it was my SMB version that was messing things up.  My device was older SMB1.0 and i think everything was using 3.0.  Anyway, THIS command got it working for me.

mount -t cifs "//192.168.2.15/Movies" -o username=admin,domain=WORKGROUP,\vers=1\.0 (your mount point)


You can change the version to \vers=3\.0  if you want 3.0

Share a single VPN connection with multiple systems

This will only work for certain situations, and will depend on the security settings of your machine (as features maybe disabled by admins) and your VPN provider.  But if you come this far, check and see if yours meet the criteria.

In this example, I'm using windows 10.  I VPN to my office, but I want to be able to also connect another computer and a couple of phones that are normally connected on the LAN at work, but since we are in a WFH situation, I want them to work from here.

tl;dr

Were going to connect to the internet (then VPN) through the wireless connection, then we'll share the VPN connection to the ethernet, attach a POE switch so that we can attach other devices and phones.


So here I've connected to my wifi



Now I've established an SSL VPN connection

And you can see it is set to "Ethernet 3" on my system 

Now we'll right click on that and select PROPERTIES

Now click on the SHARING tab


Then select the checkbox for "Allow other network users to connect...."

Then click on the drop box with the title "Select a private network connection"
...and select the ethernet name of the jack on your computer

Then select OK

Now you should be able to attach a lan switch to your ethernet port, connect another device to that laptop and it should get an IP address.  It will get one that Windows 10 assigns that is usually 192.168.137.X , with a name "mshome.net"

You should now be able to reach devices on via the VPN from systems attached to this switch.














Saturday, January 16, 2021

Audio Delay Application for Windows

Audio Delay App for Windows

I am putting this link here to Fountainware.com 's application that allows you to delay audio. 
They term it as "Synchronize Radio Sports Broadcasts With Television." which itself is exactly what you can do with it.  Searches for such an app weren't coming up very quick for me, so I'm just adding this sites to this page that might help others.

Thursday, October 1, 2020

Automatically Login to Windows 10 without a password

As of the release May 2020 build of windows methodology:

STEP 1:

WINDOWS + I  (settings)
-> ACCOUNTS
-> SIGN-IN OPTIONS

turn OFF "Require Windows Hello sign-in for Microsoft accounts"



close the settings window (changes are saved automatically)

STEP 2:

launch a CMD prompt AS administrator

run   " netplwiz "

You should now get a "USER ACCOUNT" window

UNselect the option "Users must enter user name and password...."  (the change above in the accounts makes this option visible)

Click APPLY

You'll be asked to give a user name and password.  

Put in the username and  password for the main account for this machine

Press APPLY 

Reboot!