Permission Problem

Sir,

I am using Asterisk 1.4 and monitor same extension all is working fine except when call finish i want to rename call file with system command but due to permission i am unable to cahange file name.

Please help.

Rajeev.

Problem solved related to permission but i want to raneme record file so i have use system command but on Asterisk Clip it will display file not found but when i have excute command from terminal it will work.

Please help what i an doing wrong.

Rajeev.

[quote=“rajeevsg”]Problem solved related to permission but i want to raneme record file so i have use system command but on Asterisk Clip it will display file not found but when i have excute command from terminal it will work.

Please help what i an doing wrong.

Rajeev.[/quote]

My first thought is to make sure the user that Asterisk runs under (asterisk?) has the correct permissions as well.

Why don’t you try recording the file to /tmp/ and after that do a rename and move it to the apropriate folder ?

Sir,

Actully i have to change the file name imediatly when call finish and at that perticular time there is two file one for incoming and one for out when i have excute rename command then there are two different file and it will combine into one after command is excuted and asterisk display file not found.

So, what i have to rename file wait for same time or what is the solution.

Rajeev.

Hi

If you need to rename the file why don’t you set the name correct at the start of the call ?

Ian

Actully when call receive i have ring 3 extension and i donot know which extension will pickup the call so, when call finish and on the basis of channel i know the extension no. and i have rename recorded file with extension number.

Rajeev.