Page 2 of 2

Re: Asterisk 16 Support (BETA)

PostPosted: Tue May 17, 2022 9:19 am
by martinch
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.

Re: Asterisk 16 Support (BETA)

PostPosted: Tue May 17, 2022 9:55 am
by mflorell
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!

Re: Asterisk 16 Support (BETA)

PostPosted: Fri Sep 29, 2023 5:44 am
by ciacho
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

Re: Asterisk 16 Support (BETA)

PostPosted: Fri Sep 29, 2023 1:15 pm
by carpenox
Matt or Kumba, do you guys have a patched asterisk 16 or 19 to run confbridges on?