News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - eran

#1
So you can also make a generic template exporter that will go on all template
and take out only the one that you created...

and in this way you can make a routine to export every template for back up...
with out the need to remember what template you add...
#2
Oliver

just as I wrote to you: this is most of Dan's PLCBUS template. (I left some ruby code out but the big 373 routine is there)

by the way when I am trying to take existing one I am getting:

<?php
error_reporting(E_ALL);
$link mysql_connect("localhost","root");
mysql_select_db("pluto_main",$link);
$deviceTemplateID $newPK;
print "New DeviceTemplate: " $newPK;
?>



this is for template 1779

Eran.
#4
Hi again!
I am trying to build a back with the export procedure and for that I am trying to export more templates

now I tried to build the template to the PLC BUS export it - It look like everything there
and when trying to import it again i got:

root@dcerouter:~/Desktop# php device1938FV1q1t

Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/linuxmce/Desktop/device1938FV1q1t on line 15

and this is the file that was created: (device1938FV1q1t)
I tried to include  the code but I got "The message exceeds the maximum allowed length (20000 characters)."
so I cant add it here so if you need to see it tell me how to send you the file


I will try other different template and let you know about problems...

Tnx.
Eran.
#5
well I think it is working but there are some error during the creation of the new template
fro example:
InfraredGroup: 5995
Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: index in /tmp/device1931olq20t on line 20

Notice: Undefined variable: waitTime in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: waitTime in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20

Notice: Undefined variable: line in /tmp/device1931olq20t on line 20
New DeviceTemplate: 1936

and checking template 1936 looks like a good template
I did not find where to cahnge the name of the device so I get two template for the same name...
#6
Well chacked again - the file is not empty - I have to read it with root!

It looks like it has every thing inside
and if I try to execute it from command line (of course with root) - ./devi......

line 1: ?php: no such file or directory
line 2: syntax error near unexpected token 'E_ALL'
line 2: '      error_reporting('E_ALL');'

and no templete was add...
#7
I have tried it:

and I got empty file and error:

Creating file /tmp/device1931dMMD0L

Notice: Undefined offset: 0 in /var/www/DeviceTemplate2php.php on line 128

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/DeviceTemplate2php.php on line 75

Notice: Undefined offset: 0 in /var/www/DeviceTemplate2php.php on line 128

Done creating file!

Now the file /tmp/device1931dMMD0L needs to be executed. Please do that on the command line using

php /tmp/device1931dMMD0L
#8
Users / Re: Problem with call routing
July 02, 2008, 05:29:41 AM
well I did another test:
instead of dialing out my cell number I have cahnge only the away calling number to "9110"
so it will be only 4 digit with out the overflow ptoblem

and I got somting strange!

It tried to call my cell number
but with out secsses:
comparing the dialout where I am dialing the number (with sucesses) and the call routing now to the right number shows that the same "s@macro-dialout-trunk" is being use but
when the dialing sucesses the macro is being call: "Executing [9MYCELLNUM@from-internal:1] Macro("SIP/200-081ef140", "dialout-trunk|2|MYCELLNUM||") in new stack

and  when the call routing tring to call: "Executing [9MYCELLNUM@trusted:1] Macro("Local/9MYCELLNUM@trusted-9a47,2", "dialout-trunk|2|MYCELLNUM||") in new stack"

What can I do to change the context and why the first parameter of the macro is the nyumber to dial and not the number of the orbiter extention like in the sucesses dialing?

Eran.
#9
Users / Re: Problem with call routing
June 30, 2008, 05:38:35 AM

Tnx. - I did add 9 and I did it for TWO diffrent numbers and I got the same "2147483647" for the two numbers (the numbers have 10 digit and "9" was the 11 digit in the number)
well - I will try short number to dail to see if there is a diffrence.
#10
Users / Problem with call routing
June 29, 2008, 01:36:58 PM
Hi

I am tring to use "transfer to outside line" in "call routing.

I am typing the number with 9 before it just as I do in the direct dial - where it work perfect.

and first any number I typing it end up with the number "2147483647" in the web page.

and when I am trying to use it I am getting: "im-sorry&an-error-has-occured" playback.


Tnx.

Eran.