[rt-users] rt & asterisk

2014-11-04 Thread Shahab Sharifzadeh

hi
good time

i want to join rt(request tracker) to asterisk by rt-soap-server.pl.
but i dont no what to do...

1- i installed-> SOAP::Lite and MIME::Entity
2-after that ,how I run ./rt-soap-server.pl ? And how configure?

-- 
RT Training November 4 & 5 Los Angeles
http://bestpractical.com/training


[rt-users] create a ticket with attach by command

2014-11-04 Thread Shahab Sharifzadeh

Hi
I want to in rt ، create a ticket with attach by command...(cli)

Is it doable? How do I proceed?

rt create -t ticket set subject='New ticket'...

Plz help me...
-- 
RT Training November 4 & 5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] rt & asterisk

2014-11-04 Thread Shahab Sharifzadeh
Thanks...
I want to create a ticket with attachment...(callervoice.gsm)
But according to my search in web I can not use from Rest because when I create 
ticket, the attach file was not sent with them...
This is important for me that gsm file be created  with ticket...

Pls help me...
-- 
RT Training November 4 & 5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Contents of rt-users digest rt & asterisk

2014-11-04 Thread Shahab Sharifzadeh




Thanks...
I want to create a ticket with attachment...(callervoice.gsm)
But according to my search in web I can not use from Rest because when I create 
ticket, the attach file was not sent with them...
This is important for me that gsm file be created  with ticket...

Pls help me...-- 
RT Training November 4 & 5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] rt & asterisk

2014-11-05 Thread Shahab Sharifzadeh
Thanks you...

i tried according to my search in web wrote the following code by php:

http://192.168.1.201/rt/REST/1.0/';  
$request .= 'ticket/12/comment'; 

$postargs = array( 
'user' => 'root', 
'pass' => 'Nasim1414', 
'content' => $content, 
'attachment_1' => $attachment_1 
); 

// get the curl session object 
$session = curl_init($request); 

// set the POST options 
curl_setopt ($session, CURLOPT_POST, true); 
curl_setopt ($session, CURLOPT_POSTFIELDS, $postargs); 
curl_setopt($session, CURLOPT_HEADER, true); 
curl_setopt($session, CURLOPT_RETURNTRANSFER, true); 
curl_setopt( $session, CURLOPT_HTTPHEADER, array( 'Expect:' ) ); 

// do the POST and then close the session 
$response = curl_exec($session); 
print_r($response); 
curl_close($session); 

?>

But i Do not know Why not run and Gives the following message:

HTTP/1.1 200 OK
Date: Wed, 05 Nov 2014 03:37:57 GMT
Server: Apache/2.4.7 (Ubuntu)
Set-Cookie: RT_SID_tickets.80=53fc8c23dd35759180ae28e5edb2a967; path=/rt; 
HttpOnly
X-Frame-Options: DENY
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

RT/4.0.19 400 Bad Request

# No attachment for 1.jpg

please help...




Re: [rt-users] rt & asterisk

2014-11-05 Thread Shahab Sharifzadeh
 
 Does not work :( :
 
 HTTP/1.1 200 OK
 Date: Wed, 05 Nov 2014 05:21:25 GMT
 Server: Apache/2.4.7 (Ubuntu)
 Set-Cookie:
 RT_SID_tickets.80=18cb22f93510931eb02ea53741f19242;
 path=/rt; HttpOnly
 X-Frame-Options: DENY
 Vary: Accept-Encoding
 Transfer-Encoding: chunked
 Content-Type: text/plain; charset=utf-8
 
 RT/4.0.19 400 Bad Request
 
 # No attachment for 1
 
 


Re: [rt-users] rt & asterisk

2014-11-05 Thread Shahab Sharifzadeh
very thank...

nobody help me?
 


[rt-users] how add attachment to my perl file

2014-11-05 Thread Shahab Sharifzadeh
I have a perl code.
in the code add comment on ticket (rt)..
how can i add attach file to this code?
.
#!/usr/bin/perl
#
# comment_on_ticket.pl -- add comment to an RT ticket.

use strict;
use warnings;
use RT::Client::REST::Ticket;
use Error qw(:try);
use RT::Client::REST;
use RT::Client::REST::Ticket;


unless (@ARGV >= 4) {
die "Usage: $0 username password ticket_id comment\n";
}

my $rt = RT::Client::REST->new(
server  => ($ENV{RTSERVER} || 'http://192.168.1.201/rt'),
);
$rt->login(
username=> shift(@ARGV),
password=> shift(@ARGV),
);

my $ticket = RT::Client::REST::Ticket->new(
rt  => $rt,
id  => shift(@ARGV),
);

try {
$ticket->comment(
message => shift(@ARGV),
cc  => [qw(i...@pionfirm.com)],
);
} catch Exception::Class::Base with {
my $e = shift;
die ref($e), ": ", $e->message || $e->description, "\n";
};

use Data::Dumper;
print Dumper($ticket);



Re: [rt-users] how add attachment to my perl file

2014-11-05 Thread Shahab Sharifzadeh
please please  debug my code  just once...

i tried on the in code Hours...
This is very important for me

comment in ticket in create but Without attach...

#!/usr/bin/perl
#
# comment_on_ticket.pl -- add comment to an RT ticket.

use strict;
use warnings;
use RT::Client::REST::Ticket;
use Error qw(:try);
use RT::Client::REST;
use RT::Client::REST::Ticket;
use MIME::Entity;
use MIME::Lite;



unless (@ARGV >= 4) {
die "Usage: $0 username password ticket_id comment\n";
}

my $rt = RT::Client::REST->new(
server  => ($ENV{RTSERVER} || 'http://192.168.1.201/rt'),
);
$rt->login(
username=> shift(@ARGV),
password=> shift(@ARGV),
);

my $attachments_1 = MIME::Lite->new(Type =>'application/octet-stream');
$attachments_1->attach(Type  => 'application/octet-stream',
 Path=> '/pasokh.gsm',
 Filename=> 'pasokh.gsm',
 Disposition => 'attachment'
);   

my $ticket = RT::Client::REST::Ticket->new(
rt  => $rt,
id  => shift(@ARGV),
);
 

try {
$ticket->comment(
message => shift(@ARGV), 
cc  => [qw(i...@pionfirm.com)],
attachments_1 => $attachments_1
);
} 


catch Exception::Class::Base with {
my $e = shift;
die ref($e), ": ", $e->message || $e->description, "\n";
};

use Data::Dumper;
print Dumper($ticket);




Re: [rt-users] rt & asterisk

2014-11-06 Thread Shahab Sharifzadeh
ok thanks.
in perl:
comment in ticket in create but Without attach... 
What to Do?

#!/usr/bin/perl 
# 
# comment_on_ticket.pl -- add comment to an RT ticket. 

use strict; 
use warnings; 
use RT::Client::REST::Ticket; 
use Error qw(:try); 
use RT::Client::REST; 
use RT::Client::REST::Ticket; 
use MIME::Entity; 
use MIME::Lite; 



unless (@ARGV >= 4) { 
die "Usage: $0 username password ticket_id comment\n"; 
} 

my $rt = RT::Client::REST->new( 
server => ($ENV{RTSERVER} || 'http://192.168.1.201/rt'), 
); 
$rt->login( 
username=> shift(@ARGV), 
password=> shift(@ARGV), 
); 

my $attachments_1 = MIME::Lite->new(Type =>'application/octet-stream'); 
$attachments_1->attach(Type => 'application/octet-stream', 
Path => '/pasokh.gsm', 
Filename => 'pasokh.gsm', 
Disposition => 'attachment' 
); 

my $ticket = RT::Client::REST::Ticket->new( 
rt => $rt, 
id => shift(@ARGV), 
); 


try { 
$ticket->comment( 
message => shift(@ARGV), 
cc => [qw(info [at] pionfirm)], 
attachments_1 => $attachments_1 
); 
} 


catch Exception::Class::Base with { 
my $e = shift; 
die ref($e), ": ", $e->message || $e->description, "\n"; 
}; 

use Data::Dumper; 
print Dumper($ticket);



On Wednesday, November 5, 2014 10:01 PM, Shahab Sharifzadeh 
 wrote:
 


very thank...

nobody help me?

Re: [rt-users] how add attachment to my perl file

2014-11-07 Thread Shahab Sharifzadeh
nobody?


Re: [rt-users] rt & asterisk

2014-11-07 Thread Shahab Sharifzadeh
nobody?


[rt-users] error 401 Credentials required

2014-11-07 Thread Shahab Sharifzadeh
i run command:

curl -u root:Nasim1414 http://192.168.1.201/rt/REST/1.0/ticket/33/comment
 
but get me error :

RT/4.0.19 401 Credentials required

what to do?


[rt-users] command last ticket-id created

2014-11-08 Thread Shahab Sharifzadeh
hi
what is report last ticket-id created by command line?


Re: [rt-users] error 401 Credentials required

2014-11-08 Thread Shahab Sharifzadeh
Does not work...



[rt-users] command vi save by scrip

2014-11-08 Thread Shahab Sharifzadeh
hi
i want to run command:  rt comment 35 -a 'sound.gsm'
open the editor vi when execute command...
but i want to Direct save comment with attach when execute command...

$rt = exec("rt comment ticket/31 -a 'sound.gsm' < `tty` > `tty`");


[rt-users] how sync mysql?

2014-11-12 Thread Shahab Sharifzadeh
how i sync status field's in table Tickets (RT) with other table in remote 
server?(Update or insret)

example :
if i changed ticket status(new => open) in RT web interface other filed table 
in remote server is change. 


[rt-users] edit and change footer in rt(»|« RT 4.0.19 Copyright 1996-2014 Best)

2014-12-06 Thread Shahab Sharifzadeh
i tried edit footer in rt page in 
/usr/share/request-tracker4/html/Elements/footerbut no effect my change in 
file(footer)why?
 

[rt-users] problem in RT

2015-01-13 Thread Shahab Sharifzadeh

Hi
When I change the login page ( for example I want to edit "username" to "user" 
) I have a problem, when I want to login to RT with every device I have 
redirected to selfservice automatically. Please help me that why this happened?
Thanks for your attention.



Re: [rt-users] command vi save by scrip

2015-01-18 Thread Shahab Sharifzadeh
>If I understand you correctly, you need to make your user "privileged." 
>Unprivileged users are forced to use the Self Service area. 

>I don't know what you mean by 'edit "username" to "user"'. Are you trying 
>to change the visible wording on the login page? 
Yes i want to change visible wording on the login page.
i have changed permission RT_SitecConfig.pm (775 & 777) but it doesn't work.
what i have to do? 

 On Saturday, November 8, 2014 1:43 PM, Shahab Sharifzadeh 
 wrote:
   

 hi
i want to run command:  rt comment 35 -a 'sound.gsm'
open the editor vi when execute command...
but i want to Direct save comment with attach when execute command...

$rt = exec("rt comment ticket/31 -a 'sound.gsm' < `tty` > `tty`");


   

[rt-users] problem in RT

2015-01-18 Thread Shahab Sharifzadeh
>If I understand you correctly, you need to make your user "privileged." 
>Unprivileged users are forced to use the Self Service area. 

>I don't know what you mean by 'edit "username" to "user"'. Are you trying 
>to change the visible wording on the login page? 

Yes i want to change visible wording on the login page.
i have changed permission RT_SitecConfig.pm (775 & 777) but it doesn't work.
what i have to do?


Re: [rt-users] problem in RT

2015-01-27 Thread Shahab Sharifzadeh
hiI have done the following things:

1- Copy /usr/share/request-tracker4/html/Elements/login.html to 
/usr/local/share/request-tracker4/html/Elements/login.html
2- Modify /usr/local/share/request-tracker4/html/Elements/login.html as desired.
3- Clean the Mason Cache and restart.
but so forward to Selfservice page whenever login to rt.
help me plz... 

 On Sunday, January 18, 2015 2:13 PM, Alex Peters  wrote:
   

 To change the HTML of the Login page:   
   - Copy share/html/Elements/Login.html to 
local/share/html/Elements/Login.html.   

   - Modify local/share/html/Elements/Login.html as desired.
   - Clean the Mason cache and restart RT to see your changes.
To make an RT user "privileged," log into RT as a superuser (such as "root") 
and tick the "Let this user be granted rights (Privileged)" option for the user 
to be privileged (Admin > Users > Select > user).
Note that RT user rights/privileges and UNIX permissions are different things.  
As such, you should not be giving your RT_SiteConfig.pm file executable 
permissions.
On 18 January 2015 at 21:37, Shahab Sharifzadeh  wrote:

>If I understand you correctly, you need to make your user "privileged." 
>Unprivileged users are forced to use the Self Service area. 

>I don't know what you mean by 'edit "username" to "user"'. Are you trying 
>to change the visible wording on the login page? 

Yes i want to change visible wording on the login page.
i have changed permission RT_SitecConfig.pm (775 & 777) but it doesn't work.
what i have to do?




   

Re: [rt-users] problem in RT

2015-01-27 Thread Shahab Sharifzadeh
HiI do everything that you say and i do your instructions but my problem is 
yet.Your solution didnt work correctly for me,please give me another solution.

Re: [rt-users] problem in RT

2015-01-27 Thread Shahab Sharifzadeh
I have to say that by your solution i could change and edit the word " 
username" to "user" in login page but after this, every user (even root) i have 
redirected to selfservice page.i think that every user even ROOT change to the 
unpreviledge user or my connection to DB was disconnected. 

 On Tuesday, January 27, 2015 5:19 PM, Shahab Sharifzadeh 
 wrote:
   

 HiI do everything that you say and i do your instructions but my problem is 
yet.Your solution didnt work correctly for me,please give me another solution.



Re: [rt-users] problem in RT

2015-01-31 Thread Shahab Sharifzadeh
now what i have to do?when i edit login page all of my users even root was 
redirected to selfservice page. 

 On Tuesday, January 27, 2015 11:13 PM, Alex Peters  wrote:
   

 That is very strange.  User "root" should not redirect to Self Service.  
Perhaps your DB has in fact been corrupted somehow.  Maybe someone else can 
offer another solution.On 28 Jan 2015 1:03 am, "Shahab Sharifzadeh" 
 wrote:

I have to say that by your solution i could change and edit the word " 
username" to "user" in login page but after this, every user (even root) i have 
redirected to selfservice page.i think that every user even ROOT change to the 
unpreviledge user or my connection to DB was disconnected. 

     On Tuesday, January 27, 2015 5:19 PM, Shahab Sharifzadeh 
 wrote:
   

 HiI do everything that you say and i do your instructions but my problem is 
yet.Your solution didnt work correctly for me,please give me another solution.




   

Re: [rt-users] problem in RT

2015-02-04 Thread Shahab Sharifzadeh
HiThannks for your attention,my problem had succesfully solved...This problem 
was from my RT 

 On Sunday, February 1, 2015 6:50 AM, Alex Peters  wrote:
   

 If this issue is only occurring after you modify the Login page, then you have 
made an incorrect modification.  Delete the copy of the Login page in the 
"local" directory, clean the Mason cache, restart RT and try again.If the issue 
still occurs, then something else is wrong.  Possibly the included 
"rt-validator" tool will help.  If not, besides deleting and reinstalling RT, I 
personally don't have any other suggestions.On 31 Jan 2015 8:56 pm, "Shahab 
Sharifzadeh"  wrote:

now what i have to do?when i edit login page all of my users even root was 
redirected to selfservice page. 

 On Tuesday, January 27, 2015 11:13 PM, Alex Peters  wrote:
   

 That is very strange.  User "root" should not redirect to Self Service.  
Perhaps your DB has in fact been corrupted somehow.  Maybe someone else can 
offer another solution.On 28 Jan 2015 1:03 am, "Shahab Sharifzadeh" 
 wrote:

I have to say that by your solution i could change and edit the word " 
username" to "user" in login page but after this, every user (even root) i have 
redirected to selfservice page.i think that every user even ROOT change to the 
unpreviledge user or my connection to DB was disconnected. 

 On Tuesday, January 27, 2015 5:19 PM, Shahab Sharifzadeh 
 wrote:
   

 HiI do everything that you say and i do your instructions but my problem is 
yet.Your solution didnt work correctly for me,please give me another solution.







   

[rt-users] change login page lang

2015-02-04 Thread Shahab Sharifzadeh
hi login page language in RT is "EN" by default.how i can change default 
language in login page? for example: fr.po 

[rt-users] change login page lang

2015-02-09 Thread Shahab Sharifzadeh
Thanks...But I have a new problem I have edited the word "username" 
in login.html file to persian language " نام کاربری " and it work 
correctly but my problem is this that when I enter incorrect username or 
password , the persian words such as " نام کاربری " is shown 
illegible. What I have to do?Thanks for your attention

[rt-users] Login in unix

2015-02-23 Thread Shahab Sharifzadeh
Hi
How can i login in unix with a user that is created in RT's web interface?

[rt-users] Run a php file

2015-02-28 Thread Shahab Sharifzadeh
If I want to run a special php file  after I save everything in rt,

What I have to do?

[rt-users] Run a php file

2015-02-28 Thread Shahab Sharifzadeh
OR

How can I run a special php file after then I save one thing in RT?