(SOLVED) Why are notifications sending from a phone ticket?

Moderator: crythias

Locked
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

(SOLVED) Why are notifications sending from a phone ticket?

Post by morecw »

Hi all,

I activated an auto-response on my queues this week. Type = auto reply. But the problem is it's sending out to customers when a phone ticket is created.

I thought it was only to an email ticket that this gets sent out??

I'm referring to of course to the notification of a new ticket. All other events post this are ok
Last edited by morecw on 08 Nov 2012, 10:06, edited 1 time in total.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Why are notifications sending from a phone ticket???

Post by reneeb »

Why? Because it is said in the code:

(<OTRS_HOME>/Kernel/Modules/AgentTicketPhone.pm)

Code: Select all

        my $ArticleID = $Self->{TicketObject}->ArticleCreate(
            NoAgentNotify    => $NoAgentNotify,
            TicketID         => $TicketID,
            ArticleType      => $Self->{Config}->{ArticleType},
            SenderType       => $Self->{Config}->{SenderType},
            From             => $GetParam{From},
            To               => $To,
            Subject          => $GetParam{Subject},
            Body             => $GetParam{Body},
            MimeType         => $MimeType,
            Charset          => $Self->{LayoutObject}->{UserCharset},
            UserID           => $Self->{UserID},
            HistoryType      => $Self->{Config}->{HistoryType},
            HistoryComment   => $Self->{Config}->{HistoryComment} || '%%',
            AutoResponseType => 'auto reply',
            OrigHeader       => {
                From    => $GetParam{From},
                To      => $GetParam{To},
                Subject => $GetParam{Subject},
                Body    => $Self->{LayoutObject}->RichText2Ascii( String => $GetParam{Body} ),

            },
            Queue => $Self->{QueueObject}->QueueLookup( QueueID => $NewQueueID ),
        );
You see the "AutoResponseType"? If you want to disable that you should comment this line:

Code: Select all

#            AutoResponseType => 'auto reply',
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

Re: Why are notifications sending from a phone ticket???

Post by morecw »

Ok good. I'm not sure how I came to the conclusion that phone tickets don't send emails on ticket creation..

I would simply like to use the telephone and email ticket buttons as a choice between "send customer a notification that the ticket has been created, or not".

I assume the owner and responsible will still get notification?
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Why are notifications sending from a phone ticket???

Post by reneeb »

not necessarily. When an owner is set, no agent notifications are sent (but this has nothing to do with the AutoResponseType)

From the code (AgentTicketPhone.pm):

Code: Select all

        # check if new owner is given (then send no agent notify)
        my $NoAgentNotify = 0;
        if ( $GetParam{NewUserID} ) {
            $NoAgentNotify = 1;
        }
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
rey90
Znuny newbie
Posts: 70
Joined: 16 Aug 2012, 15:56
Znuny Version: 4.0.10

Re: Why are notifications sending from a phone ticket???

Post by rey90 »

try to change the line

Code: Select all

AutoResponseType => 'autoreply',
 in
Kernel/Modules/AgentTicketPhone.pm
to:
   AutoResponseType => '',
waiting for your feedback. thx
Produktiv: OTRS: 4.0.10
Testing": OTRS: 5
OS: Debian 7
Apache2/MySQL 5
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

Re: Why are notifications sending from a phone ticket???

Post by morecw »

I will get back to you in a couple of hours. I have to prepare a vm so I don't annoy the live system users anymore! thanks
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Why are notifications sending from a phone ticket???

Post by crythias »

rey90 wrote:try to change the line

Code: Select all

AutoResponseType => 'autoreply',
 in
Kernel/Modules/AgentTicketPhone.pm
to:
   AutoResponseType => '',
waiting for your feedback. thx
I make this change on every update for this reason. It works perfectly.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Why are notifications sending from a phone ticket???

Post by reneeb »

you should file a bug ;-) It's easy to make it configurable...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Why are notifications sending from a phone ticket???

Post by ferrosti »

One should go Renee´s way. In my case this is wanted for internal customers (IT-OTRS as Helpdesk), since we want Users to have Tickets, as well as Ticket Numbers they can reply to.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

Re: Why are notifications sending from a phone ticket???

Post by morecw »

ok so that worked!! Thanks very much
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

Re: Why are notifications sending from a phone ticket???

Post by morecw »

oh nooo! So I've got the phone ticket working how I want. But now I find that the email ticket isn't using the 'AutoResponseType => 'auto reply',

I was really hoping it would compose a ticket the same way the phone ticket does except it sends the notification to the customer using the "auto reply" which I have already prepared. As a company it makes sense to us to use the same standard "new ticket" notification when a) customer uses Customer.pl b) Emails OTRS c) Agent creates a ticket via Email Ticket. But of course Phone Ticket remains without a customer notification.

So is possible to add "AutoResponseType => 'auto reply'," somewhere in AgentTicketEmail.pm to get this working?

p.s As my initial problem is now solved I will make another post for this.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

Re: (SOLVED) Why are notifications sending from a phone tick

Post by morecw »

New post to discuss Email Ticket problem, here viewtopic.php?f=62&t=17985
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Locked