• Welcome to SAIL Community Supported PBX . Please login or sign up.
 
May 18, 2024, 06:41:58 PM

News:

SMF updated to 2.0


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Del

1
I've been playing with some of the new V6 features in particular the recordings retrieval/playback (which is brilliant).
Just thought I'd post some findings that may help other users and a few questions along the way.

I couldn't get internal calls to show up and I thought maybe they weren't being recorded anymore, then after some digging I realised they were recorded but had been left out the add call portion in the recording class PHP (intended I assume)
Have very basic knowledge with coding but I added the following to catch any files with the to/from portion both being less than 4:

else if ((strlen($file_list[1+$this->offset]) <= 4) && (strlen($file_list[2+$this->offset]) <= 4))

Then added the relevant table for internal calls and then the calls showed up in the retrieval and playback.

Next I thought it would be cool if I could have the conference room calls show up in the retrieval too, I hit a few snags on this.

First thing I noticed (slightly off topic) is when I tested the conference room, the user entering/leaving sound was Alison American voice even though I have the country set to GB and the en-gb sounds installed, when I watched the Asterisk console I noted the following:


Playing 'conf-hasjoin.gsm' (language 'en')
Playing 'confbridge-leave.gsm' (language 'en')
Playing 'conf-hasleft.gsm' (language 'en')


These all had language 'en' where as everything else that was working correctly had 'en-gb' I wasn't sure how to fix this so I just copied those 3 files from the gb sounds and overwrote them in the Alison sounds, it then worked as required.
I don't know if this is a bug or whether my install just got messed up somehow?

So with that out the way I uncommented "record_conference=yes" in the confbridge, which I believe is the correct way to turn on recording for the conference rooms? (it did work)
The conference recordings started popping up in the monitor folder, but then I realised that these aren't processed/moved to the monout folder by the selmix script like the regular calls are.
To get around this I setup a script to rename and move them into the monout folder so the offload script would move them along with the other recordings:

#!/bin/bash

for file in /var/spool/asterisk/monitor/confbridge*; do
    bn=$(basename $file)
    checkifempty=${#bn}
    if [[ "$checkifempty" = 1 ]]; then exit
fi

IFS='-|\.' read var1 var2 var3 var4 <<< "$bn"

newfile="$var3-default-$var2-$var2.$var4"

mv $file /var/spool/asterisk/monout/$newfile

done
exit


This basically moved the portion of the file name around so it could be inline with the format of the other recordings:
confbridge-100-1586602936.wav
would be come
1586602936-default-100-100.wav
I added the default tenant to pass the recordings result file check and added the extra conference room number so I could match a rule when searching.

So with the conference files in a useable format matching the others I added the following into the recording class file
else if (strcmp($file_list[1+$this->offset], $file_list[2+$this->offset]) == 0)

This checks the to and from portion of the recording file name to see if they are the same, since I renamed the conference recording files to have the room number in both the to and from portion they should be the only files that ever match this rule (I couldn't think of any other circumstances)
I added the relevant table, and then conference calls now show for retreival and playback too (finished output screenshot attached)

Issues with the above from what I can see:
1. Due to me forcing default into the filename it makes the solution only for single tenant, which leads me to a quick question, is multiple tenant implemented on conferences? I couldn't see an option.
2. The script for moving the conference recordings from monitor to monout has to be run when the system isn't active because the conference file is in the monitor folder before the conference is finished so could potentially be moved before complete (I've set it to run in a cron job at 1am)

The workaround to both in an ideal situation would be the conferences given over to selmix and be processed and moved like the regular recordings and then just comment out the lines in recording class file if you don't want them to show in the retreival.
Also some sort of multi tenant could be added on the conference section of the gui to have that picked up/added in the recording name and maybe a little record yes/no option for each conference room on the gui could be cool (if conferences can have individual options like that in Asterisk)

I don't know if any of that is possible, I'm pretty limited with my knowledge and I may be misunderstanding how everything works and the limitations from what can be done within the SARK interface. Looking to learn and play with it more now.

Sorry for the long post, hopefully no one comes along and tells me there's a toggle option somewhere in the web GUI for all of this!  ;D







2
I'm still running V5 on my main box, haven't had much chance to play with the newer version since the release (I really liked the V6 interface from what I saw when messing with it)

In the original alpha V6 announcement it mentioned a possible replacement to the Areski CDR, has this seen any progress?
3
Hello,

I seem to be having trouble with a SAIL PBX (V5) with trunks and incoming calls.
All works perfectly then randomly every few days all calls go to the SIP providers voicemail, outgoing calls still work fine.
3 different test trunk provider behave the same.
Trunks all show as registered from the SAIL web interface (though one time they did show registered to 127.0.0.1) - If I issue a commit from the web gui incoming calls immediately start to work again.
I originally thought it might be linked to when the external IP from the ISP changes? I'm pretty sure it had changed each time they stop.
Can I get Debian/SAIL to check this and issue a commit if that is the cause?

Anything I can try to troubleshoot?

Heres some of the asterisk log when incoming call were down

[2017-10-26 17:59:44] ERROR[1501] chan_sip.c: Peer '4189702' is trying to register, but not configured as host=dynamic
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Registration from '<sip:4189702@sip.voipcheap.co.uk>' failed for '127.0.0.1:5060' - Peer is not supposed to register
[2017-10-26 17:59:44] SECURITY[1378] res_security_log.c: SecurityEvent="FailedACL",EventTV="1509037184-954445",Severity="Error",Service="SIP",EventVersion="1",AccountID="4189702",SessionID="0x7f278c0ff828",LocalAddress="IPV4/UDP/127.0.0.1/5060",RemoteAddress="IPV4/UDP/127.0.0.1/5060",ACLName="peer_not_dynamic"
[2017-10-26 17:59:44] ERROR[1501] chan_sip.c: Peer '2127491' is trying to register, but not configured as host=dynamic
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Registration from '<sip:2127491@sipgate.co.uk>' failed for '127.0.0.1:5060' - Peer is not supposed to register
[2017-10-26 17:59:44] ERROR[1501] chan_sip.c: Peer '4189702' is trying to register, but not configured as host=dynamic
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Registration from '<sip:4189702@sip.voipcheap.co.uk>' failed for '127.0.0.1:5060' - Peer is not supposed to register
[2017-10-26 17:59:44] SECURITY[1378] res_security_log.c: SecurityEvent="FailedACL",EventTV="1509037184-962073",Severity="Error",Service="SIP",EventVersion="1",AccountID="4189702",SessionID="0x7f278c0ff828",LocalAddress="IPV4/UDP/127.0.0.1/5060",RemoteAddress="IPV4/UDP/127.0.0.1/5060",ACLName="peer_not_dynamic"
[2017-10-26 17:59:44] ERROR[1501] chan_sip.c: Peer '4189702' is trying to register, but not configured as host=dynamic
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Registration from '<sip:4189702@sip.voipcheap.co.uk>' failed for '127.0.0.1:5060' - Peer is not supposed to register
[2017-10-26 17:59:44] WARNING[1501] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for '4189702' to 'sip.voipcheap.co.uk'
[2017-10-26 17:59:44] WARNING[1501] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for '2127491' to 'sipgate.co.uk'
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Peer '404' is now Reachable. (13ms / 2000ms)
[2017-10-26 17:59:44] NOTICE[1501] chan_sip.c: Peer '402' is now Reachable. (19ms / 2000ms)
[2017-10-26 17:59:45] NOTICE[1501] chan_sip.c: Peer '401' is now Reachable. (61ms / 2000ms)
[2017-10-26 17:59:54] NOTICE[1501] chan_sip.c: Peer '2127491' is now Reachable. (1ms / 2000ms)
[2017-10-26 17:59:56] NOTICE[1501] chan_sip.c:    -- Registration for '30201321@46.31.231.185' timed out, trying again (Attempt #3)
[2017-10-26 18:00:16] NOTICE[1501] chan_sip.c:    -- Registration for '30201321@46.31.231.185' timed out, trying again (Attempt #4)
[2017-10-26 18:00:36] NOTICE[1501] chan_sip.c:    -- Registration for '30201321@46.31.231.185' timed out, trying again (Attempt #5)


Any suggestion appreciated  :)
4
Hello,

I've decided to move from SME SAIL v4 to Debian 8.0 SAIL V5. I've done a clean install of Debian minimal and SARK V5.
Everything seems to have gone fine, the last piece is to get my B100P PCI card setup and working.
I'm following the Debian DAHDI guide from the wiki, all is good and the card is recognised in the hardware tab.
When I come to to the closing stages and regenerate, once I try to commit I get the following message:

"Could not write to genconf_parameters"

The file exists and permissions are 664.
Strangely if I go to the parameters tab in the SAIL interface and manually type anything into the box then commit, I don't get any error.

I don't know if I'm missing anything, any ideas are appreciated.

On a side note, can a SME v4 db be converted to work with Debian v5 or would I have to go from SME v4 to Debian v4 then upgrade to v5?

Thanks.
5
General Discussion on SAIL and Asterisk / Ports for Sail
September 28, 2016, 10:45:56 AM
Hi All,

Can someone clarify the ports that need to opened for Sail to work. I'm installing a new router and I want to make sure I only open the ones required, I don't have any remote extensions. Thanks in advance.

Regards,
Del
6
Hi All,

Just wondered if the latest version for SME Server is still sail-4.0.0-127.noarch.rpm that is dated 23/06/2014?

Regards,
Del