Asterisk 16 Support (BETA)

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Re: Asterisk 16 Support (BETA)

Postby martinch » Tue May 17, 2022 9:19 am

Hey Matt,

I have installed 16.17.0-vici and did my usual testing;

- manual dial
- auto dial
- inbound call
- inbound call (on hold for a few minutes)
- transfers (blind, 3-way)
- assessed call quality
- sending DTMF tones
- call recordings
- increased dial level to crazy levels (15.0 then 50.0)

I didn't observe any anomalies. I just had to check with you;

Code: Select all
; Optional
eventfilter=Event: PeerStatus
eventfilter=Event: SIPRTPDisconnect
eventfilter=Event: PeerRegistered
eventfilter=Event: SIPCriticalTimeout


The above code is found in SVN revision 3422...however, they are optional. Since I'm running a slightly older ViCi build, I should be okay to continue using 16 without the above code? Is this the only code related to 16?

Thanks,
Martin.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK

Re: Asterisk 16 Support (BETA)

Postby mflorell » Tue May 17, 2022 9:55 am

Yes you should be fine without it, that's just for logging the registration of SIP phones. We've been using that only for clients that have issues with phones becoming unreachable at random times.

Thanks for testing!
mflorell
Site Admin
 
Posts: 18383
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Asterisk 16 Support (BETA)

Postby ciacho » Fri Sep 29, 2023 5:44 am

Hey Matt,

Could You please fix:
/usr/share/astguiclient/AST_conf_update_3way.pl

The script is not ready for the new AMI version
@318:
Code: Select all
                        if ($ami_version =~ /^1\./i)
                        {
                                $COMMAND = "Action: Command\nCommand: Meetme list $PT_conf_extens[$i]\n\nAction: Ping$command_end";
                                $event_string = "|$PT_conf_extens[$i]|$COMMAND|";
                                &event_logger;
                                %ast_ver_str = parse_asterisk_version($asterisk_version);
                                if (( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))
                                {
                                        @list_channels = $t->cmd(String => "$COMMAND", Prompt => '/Response: Pong.*/');
                                }
                                else
                                {
                                        @list_channels = $t->cmd(String => "$COMMAND", Prompt => '/Response: Success\nPing: Pong.*/');
                                }
                        }
                        elsif ($ami_version =~ /^2\./i)
                        {
                                # get the current time
                                ( $now_sec, $now_micro_sec ) = gettimeofday();

                                # figure out how many micro seconds since epoch
                                $now_micro_epoch = $now_sec * 1000000;
                                $now_micro_epoch = $now_micro_epoch + $now_micro_sec;

                                $begin_micro_epoch = $now_micro_epoch;

                                # create a new action id
                                $action_id = "$now_sec.$now_micro_sec";

                                $COMMAND = "Action: Command\nActionID:$action_id\nCommand: Meetme list $PT_conf_extens[$i]";
                                $event_string = "|$PT_conf_extens[$i]|$COMMAND|";
                                &event_logger;
                                @list_channels = $t->cmd(String => "$COMMAND");
                        }
### ======> ADD THIS
                        else
                        {
                                # get the current time
                                ( $now_sec, $now_micro_sec ) = gettimeofday();

                                # figure out how many micro seconds since epoch
                                $now_micro_epoch = $now_sec * 1000000;
                                $now_micro_epoch = $now_micro_epoch + $now_micro_sec;

                                $begin_micro_epoch = $now_micro_epoch;

                                # create a new action id
                                $action_id = "$now_sec.$now_micro_sec";
                                $COMMAND = "Action: Command\nActionID:$action_id\nCommand: Meetme list $PT_conf_extens[$i]\n\nAction: Ping\n\n";
                                $event_string = "|$PT_conf_extens[$i]|$COMMAND|";
                                &event_logger;

                                @list_channels = $t->cmd(String => "$COMMAND", Prompt => '/Response: Success\nPing: Pong.*/');

                        }
###### <===== END
VICIdial installations in POLAND
ciacho
 
Posts: 48
Joined: Tue Jul 08, 2008 1:46 am
Location: POLAND

Re: Asterisk 16 Support (BETA)

Postby carpenox » Fri Sep 29, 2023 1:15 pm

Matt or Kumba, do you guys have a patched asterisk 16 or 19 to run confbridges on?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 20 guests