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.


Messages - sedgington

Pages: 1 ... 3 4 [5] 6
61
Users / Insteon PLM not playing nicely with X10 commands
« on: June 14, 2009, 02:12:34 pm »
My insteon PLM template has been working fine as per the instructions on the wiki--and the caveat I posted in the forum--except for one niggling error message.

I wonder if anyone can help:

Whenever an X10 device is activated I get the following type of message in the complete  log of the Insteon PLM:


(***):IN:02 52 B1 80 02 52 B0 80 Length:8
(***):X10 Message Received
(***):This byte is a House/Command Code
(***):Translated X10 Command Code:LAll Lights On
01   06/14/09 7:42:46.217      Error while calling method: Cannot call class method: cmd_350
error: can't convert nil into String, line: 1070
backtrace:
   in: (eval): 1070
   from (eval):1070:in `+'
   from (eval):1070:in `EZToDCE'
   from (eval):1788:in `plmparse'
   from (eval):243:in `cmd_350'
   from (eval):1070
 <0xb57b6b90>

I've checked the ruby command 350 and it is fine. 

From this message am assuming that the Insteon PLM can not control the X10 device within Linuxmce--is this assumption correct--if not is there a place I can find out how to implement?

For example, do I need to install the CM11A device as per the instructions on the wiki so that insteon has a way to hand off/interpret the command?

Just getting started with Insteon so any help greatly appreciated.

62
Installation issues / Re: InsteonPLM driver problems
« on: June 02, 2009, 03:31:54 pm »
I too had these problems as I found in several threads. I finally solved the problem. The installation instructions in the Wiki will work--with one caveat listed below--but the initial setup seems to be very unforgiving. If you make a mistake in the initial setup of the template especially at the step where you add the ruby code, it seems like there is no way to correct it but delete the template and start over. At least in my case, that is what worked. Here are the instructions that I used to delete the template:

http://wiki.linuxmce.org/index.php/Share_IR_Codes

Be careful to read and absorb what is involved in the step where you remove the "offending" elements once you get out of mysql. In my case, I ran this step three times: the first time telling it not to delete anything just to see what it found. The second time to delete the obvious things, and the third time to check that I had not missed anything. My core still lost some of the connections to file servers on my network, but it re-established them through pnp subsequently.

While I don't know whether it really makes and difference, on the template set-up procedure I used that worked, I copied and pasted the Ruby codes into the appropriate fields from a text file that is supplied in this thread:

http://forum.linuxmce.org/index.php?topic=7054.15

Insteon_Final.txt posted by ccoudsi as an attachment

There was some discussion that copying from the html page in the wiki directly was a problem. Just to be safe I used the supplied text file and it worked.

CAVEAT in the wiki instructions:
Finally, the one problem I found in the Wiki instructions is that it appears that "b4" is no longer broken in 7.10 and it does automatically write the group to the mysql table "InfraredGroup" in the "pluto_main" database. However, it is not writing the data as described in how to insert the data manually. What I did before saving the ruby codes and closing the template, after I had the "Insteon PLM" group show up in the correct field was to use phpMyAdmin to go to that entry (it will be on the last page of the table--the only one with "Insteon PLM" as the description) and change the "FK_CommMethod" from "1" which it wrote automatically, to "2" as is outlined in the manual method of inserting the record. The way the table is set up now, it will NOT accept "Null" values in some of the fields that are specified in the manual insertion script--such as "psc_mod". I didn't go back and check to see if this prevented the manual insertion script from over-writing the record as was outlined in the Wiki. All I know is that by changing the one value and following the other instructions outlined in the wiki and as amended above I got it to work.

I guess my last words of encouragement are that you need to be patient and methodical to get this done. As in many of the steps in setting up LinuxMCE it seems painfully slow--you are better off doing the steps in the instructions and then coming back a few hours later to see if it worked--for example, recognizing and setting up a simple on-off light switch through pnp in LinuxMCE took more than 30 minutes to be fully functional.

Hope this helps.

63
What? I'm sorry, but that is exactly what I am trying to do. Since Outlook Sync apparently no longer exists, I'm trying to import phone records into a database that divides its records into two tables. How is that thinking too hard?

Come on, *thwap-you-again-for-good-measure* Back at you. Do you know a solution?

64
OK thanks for the hint. But I need a bit of clarification: Do you mean the Cisco Directory implementation that you have downloaded to the forum--which works quite well, by the way--or is there something else in web admin that you are pointing me to?

I looked at pluto_telecom db and it seems like the only two tables that are relevant are Contact and PhoneNumber. I was interested to see how Outlooks sync managed the syncing process between the flat file in Outlook and these two tables as there is really nothing there that keys the contact to the phone number other than the PK_Contact and PK_PhoneNumber which are artificially generated upon creation. I suppose you could sync against email addresses if everyone had one--but there must have been some other solution at hand when Outlook Sync was created. Am I missing something?

Thanks again.

65
Gentlemen,

While you figure out what is wrong with the script, would you mind if I posted this to the Wiki to save some other unfortunate soul the frustration of having the expensive and highly lauded device they have purchased for use with linuxmce not working? I mean, I am thrilled that it works for some or most, but it did not work here and took quite a bit of time to figure it out--and it did not have to do with changing the mac range. Unless I hear otherwise I will go ahead, but please let me know if a fix is nearing completion.

Many thanks for all your help.

Best regards.

66
Installation issues / Outlooksync.msi missing in 7.10 DVD install
« on: May 05, 2009, 08:36:47 pm »
I found one other post on this in the forum from last Fall which no one seems to have followed up on. see http://forum.linuxmce.org/index.php?topic=6575.0 The Outlook sync program listed as Outlooksync.msi is missing from the /usr/pluto/installers directory--although there is a link to it on the admin home page. Does anyone have this file so that it could be posted here or in the wiki? It seems that it used to be included and used to work. see http://wiki.linuxmce.org/index.php/OutlookSync So far, the importcontacts.zip which is in the installers directory does not work--repeatedly crashing.

The object here is not so much to use Outlook but to get an idea about how to get contacts into the mysql database without having to do them one by one. I'm kind of surprised that there has been so little interest in this.
Any help or suggestions greatly appreciated.


68
Problem solved:

So that no other 7970 users will have to endure what I had to in order to get this working, here is the simple solution that our friend from Orange County either refused to divulge or simply did not know the answer to:

Linuxmce automatically sets up the Cisco 7970 but apparently there are bugs that prevent it from completing this setup occasionally. In my case,everything worked except that you could not call the phone from an internal extension. What you need to do to get this to work:

1) In the web admin got to Wizard\Devices\phones and then scroll down to where the Cisco 7970 is listed in the description column. The bolded number to the left is the pluto device number that has been assigned by the setup script copy that as well as the info in the phone type and phone number boxes.

2) Go to Advanced\Configuration\Phones setup in the column. Under the FreePBX logo you will see "Extensions" click on that. On the right side of that page will be the list of extensions. If you do not see an extension with with the phone number you copied in step 1, you will need to add it.

3) In the drop-down box next to the word "Device" choose, Other (custom) Device, and hit submit. This will take you to a screen that will allow you to fill in various fields.  For the
Display Name put whatever you want --I put Cisco 7970
Outbound CID put something like "pl_142" <210> where 142=the pluto id number from step 1 and 210=the phone number from step 1. The formatting with " and <> needs to be included.
Under Device Options next to Dial put SCCP/210 where SCCP=phone type from step 1 and 210=phone number (this is the secret sauce to getting asterisk to recognize that it is a sccp extension it is dialing.
Under voice mail and directory you will need to select "enable" from the drop down box as there is an apparent bug--at least in my version of FreePBX which is too much trouble to fix.

All the other fields can be left blank or default.

Now hit submit. It will register you SCCP extension and you will see it on the right side of the page.

Click on it. Go back and disable the Voicemail in FreePBX so that you use the linuxmce voicemail instead.
Hit submit again--this time it will accept it without balking that you do not have voicemail.

Now at the top of the page you will see an orange box on a blue background "apply configuration changes" click on that and apply the changes in the next screen.

Go to another extension and call your SCCP Cisco 7970 phone. It should be working now.

Please note, this is the quick and dirty fix using SCCP based on my particular problem. From everything I have read, SCCP is fraught with problems and SIP is the way to go with asterisk--but requires that you either buy a license for the firmware or order the phone with SIP. Perhaps the next release of linuxmce will support SIP configurations of this phone as well.

Happy dialing

69
OK, well thank you for your input.

I have tried what you describe several times (3 to be exact) with the same result: everything works except for calling the cisco 7970 extension (210 in this case) from an internal extension on the asterisk server. In other words, extensions 200 through 209 can NOT call 210 (the Cisco 7970)  They get the message "Your call can not be completed as dialed." But 210 can call 200 through 209, New York, Switzerland, any where in the world with no problems.

I'm not quite sure why repeating the steps you have suggested again and again is the only solution since we have repeated evidence that it does not work in this situation. Albeit, it should.

Does anyone have the experience to suggest why asterisk is telling the caller "Your call can not be completed as dialed?" in this situation? The sccp.conf file looks fine. Conversely, does anyone have a copy of how their Cisco 7970 extension is set up in FreePBX that they would post?

Thanks in advance.

70
Well thank you for the information.

My experience with non pnp phones in linuxmce is that you do need to manually set it up and I have been able to do this relatively easily, which is why I have been asking about how the SCCP page is configured so that I can take care of that first and see pretty quickly if that fixes the problem. If not, I will at least have more info from asterisk as it tries to dial the extension.

I agree that there is something wrong, but none of the things you mention have been changed from the default, and everything else is working fine so I am at a loss about how to approach the problem other than follow up on my last post and see if it is a bug in FreePBX.

However, I do appreciate that you did respond to some of my queries, at least I know what it is supposed to do with the same freepbx that I have, although I am a bit confused about your last "No" as to whether you see an extension set up for the 7970 or you are unwilling to copy or attach that page to this forum.

Again, any help from anyone greatly appreciated as this is quite baffling.

71
OK. so when you go to Advanced\Configuration\Phone Setup from within the Web Admin on the upper left hand corner of that frame under the FreePBX logo, what version does it say you are using?

If you click on Extensions Under the "Basic" heading on the left under that logo, do any of your cisco 7970 phones show up on the right side? If so, when you click on the link to the Cisco 7970, what does it tell you about how it is set up? Is it a custom phone or something else? Would you be willing to copy or attach that page to this forum as a guide for other Cisco 7970 users?

Many thanks for any help you can offer.

72
Well, that is good news. Would you mind posting what your freepbx page for that extension looks like in 7.10?

I'm starting to think it is a freepbx problem because when I go in and try to add an extension manually, on submit, I get:

"Error: Trying to write null voicemail file! I refuse to contiune!"

Googling this suggests that this is a bug in one of the updates:

http://www.trixbox.org/forums/trixbox-forums/help/problems-creating-extension

This would suggest that when the script tries to add the 7970 as an asterisk extension it hits an error that is undetected on the UI and just dies.

I am using:

FreePBX 2.2.0beta3 on 192.168.80.1

Which freepbx are you/should I be using in 710? Perhaps I upgraded freepbx when I shouldn't have? I remember there were alerts to upgrade some time ago within the interface. If so, is there any way to roll back to the version I should be using from within the files in linuxmce or elsewhere?

If this is the problem, it would be good to share it with the other unsuspecting upgraders out there.

Again, many thanks to everyone for their input.



73
Thanks. Tried your suggestion but got exactly the same result:

No extension in FreePBX--but it does show up in linuxmce as a phone;
can dial out and call other extensions but when you try and call it (extension 210) you get the voice message "your call can not be completed as dialed"

Is there a way to force the linuxmce list of phones to sync with FreePBX list of extensions?

Or, do you have a page you could attach to this post showing how it should be set up in FreePBX and I will add it manually?


BTW, when I do a sccp show devices in the asterisk CLI I get:

NAME             ADDRESS         MAC              Reg. State
================ =============== ================ ==========
SEP001B54525B8F  192.168.80.227  SEP001B54525B8F  Ok       

which proves that it has registered with asterisk.

Orbiter also works great.

Just need the rest of the extensions to be able to dial it and I am home.

Any suggestions greatly appreciated.










74
No I did that (the got religion part of the post). the MAC address has been added to the template and the phone works fine for everything except receiving calls from other extensions on Asterisk. Do you have a sample extension page from freePBX of the how the Cisco 7970 is installed as an extension? I will just add it manually if I know how to configure it.

Many thanks for your reply.

75
Hi,
I was under the impression that the extension would be automatically registered in FreePBX (as the other pnp phones are) but it is just not there. Since it is SCCP I am unsure about how to add it manually as there is no default for SCCP. Could anyone please give me a hint?

The problem is that my other SIP extensions can not dial the 7970 because (I think) it is not showing up in FreePBX as an extension. I can dial out and can dial other extensions from the Cisco 7970--they just can't dial me. BTW, Asterisk shows it as registered and sccp.conf shows all the info correctly.

Other than that, once I got religion and actually added my MAC range to the template as described in the Wiki, the script seemed to work flawlessly. Did something just not run?

Any help greatly appreciated.

Pages: 1 ... 3 4 [5] 6