• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 20
[RELEASE] XBMC PBX Addon - Home Telephony Experience using Asterisk
#31
...uniqueid 1276619494.51 was properly selected, after newchannel event with "down" status, for filtering newcallerid events with the same uniqueid.

The thing is newcallerid event was never fired, and therefore there is no callerid information to notify...

It is strange to me and I was not able to replicate that on my setup.

I assume you are making phone calls between local (sip?) extensions. Do you have a chance to make a real phone call from outside so we can compare events?

You could try this new file version with extended debugging: http://code.google.com/p/xbmc-pbx-addon/...svn38&r=38

Regards,
Hernan.-
Reply
#32
Yeah, I was making a call locally. I downloaded the new file and tried from my external Google Voice number and this is the log:

Code:
00:11:01 M: 38211584  NOTICE: XBMC PBX Addon Version: 0.0.6
00:11:03 M: 32329728  NOTICE: [XBMC PBX Addon]: Running in background...
00:11:03 M: 32309248  NOTICE: [XBMC PBX Addon]: >> Asterisk 1.4.24 built by root @ centos5-rpmbuilder.palosanto.com on a i686 running Linux on 2015-03-12 18:14:36 UTC
00:11:04 M: 32575488  NOTICE: [XBMC PBX Addon]: >> New messages: 0
00:11:04 M: 32305152  NOTICE: [XBMC PBX Addon]: __init__()
00:11:04 M: 32296960  NOTICE: [XBMC PBX Addon]: >> Asterisk: 1.4
00:11:44 M: 31563776  NOTICE: [XBMC PBX Addon]: > NewChannel()
00:11:44 M: 31563776  NOTICE: [XBMC PBX Addon]: >> UniqueID: 1276665104.57
00:11:44 M: 31563776  NOTICE: [XBMC PBX Addon]: >> State: Down
00:11:44 M: 31563776  NOTICE: [XBMC PBX Addon]: >>> Uniqueid: 1276665104.57
00:11:44 M: 31563776  NOTICE: [XBMC PBX Addon]: >>> State: Down
00:11:50 M: 31563776  NOTICE: [XBMC PBX Addon]: > NewChannel()
00:11:50 M: 31563776  NOTICE: [XBMC PBX Addon]: >> UniqueID: 1276665110.58
00:11:50 M: 31563776  NOTICE: [XBMC PBX Addon]: >> State: Down
00:12:00 M: 31563776  NOTICE: [XBMC PBX Addon]: > Hangup()
00:12:00 M: 31563776  NOTICE: [XBMC PBX Addon]: >> UniqueID: 1276665110.58
00:12:00 M: 31563776  NOTICE: [XBMC PBX Addon]: > Hangup()
00:12:00 M: 31563776  NOTICE: [XBMC PBX Addon]: >> UniqueID: 1276665104.57
00:12:00 M: 31563776  NOTICE: [XBMC PBX Addon]: > hangup_actions()
Reply
#33
Ok, same events and newcallerid still not showing up.

During the weekend I'll install an Elastix box in order to replicate your setup as much as possible and get back with any findings.

In the mean time, it would be great if you can share any suggestion for the remaining features (even if you are not going to use all of them).

Thanks!
Hernán.-
Reply
#34
Alright, thanks a lot.

I will try and think of a few things. One feature that I know that I would use would be to have the ability to delete a voicemail. Definitely something that I would like to see if it is possible.
Reply
#35
Ok, this one was easy but tricky!

NewCallerid is the event tiggered in Asterisk 1.6 and Newcallerid is the event triggered in Asterisk 1.4, so just one capital letter was causing this issue Smile

I've just uploaded a new bgservice.py that I would ask you to test and confirm it works for you as well: http://code.google.com/p/xbmc-pbx-addon/...svn40&r=40

I'll start thinking on the new feature you requested.

Thanks for your feedback!!!
Hernan.-
Reply
#36
Yeah, working great now.
Reply
#37
Just started testing out the Voicemail Delete and I like it. I know you are probably still working on it since you just updated it like 80min ago but here is my feedback anyway.

After you delete a voicemail it stays in the list. If someone presses yes to delete the voicemail can you refresh the page like it does when you leave the settings menu?

Also, after you listen to a message through the script it doesn't mark the message as having been listened to so it still blinks the voicemail indicator on my phone. I then have to listen to it on my phone in order for it to go away.

I know you are probably just working on getting the functions down at the moment but a context menu for the voicemail with "Play" and "Delete" would be cool.

Oh, and one thing with the CID notification... when I make outbound calls it pops up with inbound call and my phone info. It doesn't really bother me, but shouldn't it only do it when the calls are coming inbound?

By the way, this is by far the coolest script for XBMC, Smile. Definitely my favorite.
Reply
#38
That's great!, you gave me excellent feedback!

I've been spending some time trying to fix the localization bug (causing labels to be empty on first script run) but as it was mentioned in another post I better wait for the new xbmcaddon features.

So, I'll probably include the refresh and mwi for v0.0.6, and leave the context menu after some skinning rewrite for v0.0.7.

Regarding your CID issue, that should be because you are using "Down" state. Please try "Ring", and let me know if CID notification only appears on inbound calls (from trunk).

Of course this is my favorite as wellSmile

Best regards!
Hernan.-
Reply
#39
Yeah, changing the setting to "Ring" sorted it. Thanks.

Looking forward to the future versions. Very cool.
Reply
#40
I've just uploaded a few changes including the refresh.

I've tried adding a context menu but it didn't work, seems it is because it is intended for plugins and not scripts.

Regarding MWI (Message Waiting Indication), I would have to test it further because I guess (as I haven't found any documentation) that voicemail messages would have to be moved to another directory (Old instead of INBOX?).

As always, any feedback/help would be appreciated!

Thanks,
Hernan.-
Reply
#41
Updated changelog on first post and uploaded newer screenshots to google-code page, together with v0.0.6 package.

Regards!
Hernan.-
Reply
#42
This looks like a great plugin!... Big Grin I have set it up per the information provided but having a problem when accessing/running the module as it locks up XBMC and I receive a message at the bottom of the screen that appears truncated... (-5, No address associated w

I have tested the server side of things with...

https://xxx.xxx.xxx.xxx/xbmc/xbmc_pbx/xb...on.php?cdr WORKS (Gives me CDR Info)

https://xxx.xxx.xxx.xxx/xbmc/xbmc_pbx/xb...format=wav WORK (Pull VM Down)

So it has to be something on the XBMC side.

[UPDATE} Ok... got the plugin to the point where it fires up and doesn't lock up XBMC and is talking with the PBX and it is pulling vm info down... but it comes back with a "syntax error line 1" after telling me it has 2 vm's.

Debug INFO:

12:35:42 T:2971896688 M:284372992 NOTICE: [XBMC PBX Addon]: Launching GUI...
12:35:42 T:2971896688 M:284372992 INFO: Loading skin includes from /home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/includes.xml this file is NOT there (was not in the dist i got... ??
12:35:42 T:2971896688 M:284372992 INFO: Error loading includes.xml file (/home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/includes.xml): Failed to open file (row=0, col=0)
12:35:42 T:2971896688 M:284213248 NOTICE: [XBMC PBX Addon]: __init__()
12:35:42 T:3078109040 M:284213248 DEBUG: Activating window ID: 13000
12:35:42 T:3078109040 M:284213248 DEBUG: Checking if window ID 13000 is locked.
12:35:42 T:3078109040 M:284213248 DEBUG: ------ Window Deinit (MyScripts.xml) ------
12:35:43 T:3078109040 M:284213248 DEBUG: ------ Window Init (/home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/PAL/script_xbmc-pbx-addon_main.xml) ------
12:35:43 T:3078109040 M:284213248 INFO: Loading skin file: /home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/PAL/script_xbmc-pbx-addon_main.xml
12:35:43 T:3078109040 M:284213248 DEBUG: Load /home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/PAL/script_xbmc-pbx-addon_main.xml: 41.60ms
12:35:43 T:3078109040 M:284213248 DEBUG: Alloc resources: 57.23ms (42.23 ms skin load)
12:35:43 T:3078109040 M:284213248 DEBUG: CGUIMediaWindow::GetDirectory (?)
12:35:43 T:3078109040 M:284213248 DEBUG: ParentPath = []
12:35:43 T:3078109040 M:284213248 ERROR: GetDirectory - Error getting ?
12:35:43 T:3078109040 M:284213248 ERROR: CGUIMediaWindow::GetDirectory(?) failed
12:35:43 T:2971896688 M:284213248 NOTICE: [XBMC PBX Addon]: > onInit()
12:35:43 T:2971896688 M:284213248 INFO: Loading skin file: DialogProgress.xml
12:35:43 T:2971896688 M:284213248 DEBUG: Load DialogProgress.xml: 3.44ms
12:35:43 T:2971896688 M:284213248 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:35:43 T:2971896688 M:284213248 DEBUG: Alloc resources: 1.11ms (0.00 ms skin load)
12:35:43 T:2971896688 M:292405248 NOTICE: [XBMC PBX Addon]: > skinSetup()
12:35:43 T:2971896688 M:292405248 NOTICE: [XBMC PBX Addon]: > getInfo()
12:35:43 T:2971896688 M:292405248 NOTICE: [XBMC PBX Addon]: >> Asterisk 1.4.28 built by root @ rpmbuild32.elastix.palosanto.com on a i686 running Linux on 2010-01-06 16:46:18 UTC
12:35:43 T:2971896688 M:292405248 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/pyexpat.so. flags: 2
12:35:44 T:2971896688 M:292405248 DEBUG: Loading: /home/tshepherd/.xbmc/temp/pyexpat.so
12:35:44 T:2971896688 M:292405248 DEBUG: RegisterExtensionLib, adding pyexpat.so (0xb99c4d0)
12:35:44 T:2971896688 M:292405248 DEBUG: xbp_dlsym - load symbol initpyexpat
12:35:44 T:2971896688 M:292405248 NOTICE: [XBMC PBX Addon]: >> Notification: syntax error: line 1, column 49
12:35:44 T:3078109040 M:292405248 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
12:35:44 T:3078109040 M:292405248 DEBUG: Alloc resources: 0.00ms (0.00 ms skin load)
12:35:44 T:2971896688 M:292405248 NOTICE: [XBMC PBX Addon]: >> Done.
12:35:44 T:3078109040 M:292397056 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
12:35:49 T:3078109040 M:295276544 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
12:35:49 T:3078109040 M:295276544 DEBUG: SDLKeyboard: scancode: 9, sym: 27, unicode: 27, modifier: 0
12:35:49 T:3078109040 M:295276544 DEBUG: OnKey: 61467 pressed, action is 10
12:35:49 T:3078109040 M:295276544 DEBUG: Activating window ID: 10020
12:35:49 T:3078109040 M:295276544 DEBUG: Checking if window ID 10020 is locked.
12:35:49 T:3078109040 M:295276544 DEBUG: ------ Window Deinit (/home/tshepherd/.xbmc/scripts/My Scripts/xbmc-pbx-addon/resources/skins/Default/PAL/script_xbmc-pbx-addon_main.xml) ------
12:35:49 T:3078109040 M:295276544 DEBUG: ------ Window Init (MyScripts.xml) ------
12:35:49 T:3078109040 M:295276544 INFO: Loading skin file: MyScripts.xml

Any ideas? ;-)

Keep up the good work though! Thanks. Smile
Reply
#43
Sorry the late reply.

Just to clarify for others in the same situation, I'll guess your first issue was related to the configuration of the Asterisk hostname or ip address.
Once you have changed it in settings, it started to work. Right?

I wasn't able to identify the reason for your second issue, as there is nothing at line 1, column 49 on scripts.

I'll suggest you removing the autoexec.py in order to test one script at time. First run and check the default.py.

Once you identify everything is ok, re-create the autoexec.py in order to launch bgservice.py when XBMC starts, and check that (vm notification, incoming call notification, etc).

Please let us know your results.

Best regards,
Hernan.-
Reply
#44
Thanks for the reply and I totally understand... we all have real jobs! ;-)

Good news is that everything is working.... well almost... inbound notification is not.

Verified that bg is initiating and I can view CDRS, VM's, listen/DEL VM's, and initiate outbound calls with ringback.

Inbound VM notification works though... i already tried other solutions outlined earlier in the thread regarding but notta...

I am thinking that this may have something to do with the notification of inbound

13:48:13 T:140729194882832 M:3153326080 NOTICE: -->Python Interpreter Initialized<--
13:48:13 T:140729194882832 M:3153432576 NOTICE: XBMC PBX Addon Version: 0.0.6
13:48:14 T:140729194882832 M:3153653760 NOTICE: [XBMC PBX Addon]: Launching GUI...
13:48:14 T:140729194882832 M:3153653760 NOTICE: [XBMC PBX Addon]: __init__()
13:48:14 T:140729632434208 M:3152707584 ERROR: GetDirectory - Error getting ?
13:48:14 T:140729632434208 M:3152707584 ERROR: CGUIMediaWindow::GetDirectory(?) failed
13:48:14 T:140729194882832 M:3152707584 NOTICE: [XBMC PBX Addon]: > onInit()
13:48:14 T:140729194882832 M:3151441920 NOTICE: [XBMC PBX Addon]: > skinSetup()
13:48:14 T:140729194882832 M:3151441920 NOTICE: [XBMC PBX Addon]: > getInfo()
13:48:14 T:140729194882832 M:3152363520 NOTICE: [XBMC PBX Addon]: >> Asterisk 1.4.28 built by root @ rpmbuild32.elastix.palosanto.com on a i686 running Linux on 2010-01-06 16:46:18 UTC
13:48:14 T:140729194882832 M:3152351232 NOTICE: [XBMC PBX Addon]: > showInfo()
13:48:14 T:140729194882832 M:3152465920 NOTICE: [XBMC PBX Addon]: >> Done.

Any ideas?? Also, I am still getting that annoying includes.xml not found message in the log every once in a while from my earlier post...

SIDE NOTE:

For everyone else looking to play with this great "script" and so you don't make the same mistake I initially did thinking "plugin"..

1) Copy the plugin to your XBMC scripts/My Scripts directory

2) Then go into XBMC and select Scripts ..... and do Plugin Settings

3) Make all of the necessary changes to the Asterisk side of the house.

3) copy the autoexec.py from the xbmc-pbx-addon plugin dir to the root of your scripts directory

4) Restart XBMC and you should be ready to go... ;-)


Enjoy OpenSource!
MY SETUP: ubuntu lucid, xbmc 9.11, elastix 1.6 based Asterisk PBX
Reply
#45
It's so nice to see you find this script useful Big Grin


teshephe Wrote:I am thinking that this may have something to do with the notification of inbound

13:48:13 T:140729194882832 M:3153326080 NOTICE: -->Python Interpreter Initialized<--
13:48:13 T:140729194882832 M:3153432576 NOTICE: XBMC PBX Addon Version: 0.0.6
13:48:14 T:140729194882832 M:3153653760 NOTICE: [XBMC PBX Addon]: Launching GUI...
13:48:14 T:140729194882832 M:3153653760 NOTICE: [XBMC PBX Addon]: __init__()
13:48:14 T:140729632434208 M:3152707584 ERROR: GetDirectory - Error getting ?
13:48:14 T:140729632434208 M:3152707584 ERROR: CGUIMediaWindow::GetDirectory(?) failed
13:48:14 T:140729194882832 M:3152707584 NOTICE: [XBMC PBX Addon]: > onInit()
13:48:14 T:140729194882832 M:3151441920 NOTICE: [XBMC PBX Addon]: > skinSetup()
13:48:14 T:140729194882832 M:3151441920 NOTICE: [XBMC PBX Addon]: > getInfo()
13:48:14 T:140729194882832 M:3152363520 NOTICE: [XBMC PBX Addon]: >> Asterisk 1.4.28 built by root @ rpmbuild32.elastix.palosanto.com on a i686 running Linux on 2010-01-06 16:46:18 UTC
13:48:14 T:140729194882832 M:3152351232 NOTICE: [XBMC PBX Addon]: > showInfo()
13:48:14 T:140729194882832 M:3152465920 NOTICE: [XBMC PBX Addon]: >> Done.

That error is something related to the WindowXML initialization that I couldn't fix, and I gave up since I didn't find any troubles caused by this.

Quote:Any ideas?? Also, I am still getting that annoying includes.xml not found message in the log every once in a while from my earlier post...

That message is a Warning which also has no impact on script functionality.
I think I've read somewhere a recommendation to include an empty file there in order to stop getting that message.


So, going back to your remaining issue on inbound calls, have you tried changing the "XBMC: Initiate upon Asterisk NewChannel State" setting ?

See this screenshot: http://code.google.com/p/xbmc-pbx-addon/...g&can=2&q=

When it is set to "Ring", it should only display a notification when receiving a real phone call from outside. This means that if you are placing phone calls from one local extension to another, nothing will happen (In this case try changing it to "Down").

In the event that changing it doesn't work for you, please change self.DEBUG from False to True in Line 50 of bgservice.py and see the extra messages on log.

Find line 50 here: http://code.google.com/p/xbmc-pbx-addon/...service.py

Please let me know if that helps.

Best regards!
Hernán.-
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 20

Logout Mark Read Team Forum Stats Members Help
[RELEASE] XBMC PBX Addon - Home Telephony Experience using Asterisk3