• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 20
[RELEASE] XBMC PBX Addon - Home Telephony Experience using Asterisk
#46
Thanks... I will look into the items you indicated. I believe that you may have "jogged" my memory banks regarding outside calls inbound and calls from internal extension... I have all outside (inbound) calls going to a call group which in turn rings all of the extensions in the house. I will change it on the @ side and see if that makes a difference.

BTW... I did change the status RING to DOWN and it did not make a difference.

Side Note (Suggestion):

When calling out via the plugin it would be nice to have a dialogue popup asking or letting you select which number to call (Destination or Source) if you know what I mean.

Also maybe integrate the XML phone/address book on the @ into your plugin would be nice to have. :-)
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#47
Ok... I have tried all of the mentioned and tricks and I was running a tail on the logs for both the @ and xbmc and I see the following:

22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: > NewChannel()
22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974998.55
22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: >> State: Down
22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: >>> Uniqueid: 1280974998.55
22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: >>> State: Down
22:23:17 T:140714881378064 M:3233103872 NOTICE: [XBMC PBX Addon]: > NewChannel()
22:23:17 T:140714881378064 M:3233103872 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974999.56
22:23:17 T:140714881378064 M:3233103872 NOTICE: [XBMC PBX Addon]: >> State: Down
22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: > NewCallerID()
22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974999.56
22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: >> CallerID: <Unknown> <561XXXXXXX>
22:23:43 T:140714881378064 M:3233595392 NOTICE: [XBMC PBX Addon]: > Hangup()
22:23:43 T:140714881378064 M:3233595392 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974999.56
22:24:01 T:140714881378064 M:3233226752 NOTICE: [XBMC PBX Addon]: > Hangup()
22:24:01 T:140714881378064 M:3233226752 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974998.55
22:24:01 T:140714881378064 M:3233226752 NOTICE: [XBMC PBX Addon]: > hangup_actions()

Got this same info multiple times during call tests...

It's definately getting the info but nothing ever pops up on xbmc. No

Any ideas?
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#48
Ok, so this is the Channel UniqueID selected to monitor for NewCallerID:

teshephe Wrote:>>> Uniqueid: 1280974998.55
22:23:16 T:140714881378064 M:3233153024 NOTICE: [XBMC PBX Addon]: >>> State: Down
22:23:17 T:140714881378064 M:3233103872 NOTICE: [XBMC PBX Addon]:

However, NewCallerID happens for another UniqueID:

teshephe Wrote:22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: > NewCallerID()
22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1280974999.56
22:23:17 T:140714881378064 M:3233218560 NOTICE: [XBMC PBX Addon]: >> CallerID: <Unknown> <561XXXXXXX>

Therefore, no notification message will ever popup.

Never found this situation before, so will have to test it further trying to mimic your asterisk setup.

I'll keep you posted on any findings.

Thanks!
Hernan.-
Reply
#49
Thanks. Probably the best way to mimic it is to download a livecd copy of Elastix. It's pretty simple to setup but if you have questions let me know and I will lend a hand. ;-)
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#50
Bump... Hello Heman. How is it going? I suppose you don't have an update do ya?
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply
#51
@all,

I am at the same stage as teshephe that incoming calls are not shown in XBMC but registered in the xbmc.log on my work setup.

On my Home setup I cannot even run the php file from the browser ..

my Master.csv is here:
Code:
-rw-rw---- 1 asterisk asterisk 289337 2010-09-03 19:42 Master.csv
asterisk:/var/log/asterisk/cdr-csv#


my php file
Code:
-rwxr-xr-x 1 root root 5780 2010-09-03 19:35 xbmc-pbx-addon.php
asterisk:/var/www#


If I access it from the brower I get:
Code:
<?xml version="1.0" ?>
- <pbx>
- <cdr_error>
  <msg>Unable to read file: /var/log/asterisk/cdr-csv/Master.csv</msg>
  </cdr_error>
  </pbx>
- <!--  XBMC PBX Addon 0.0.6
  -->
Anything to spot ..?

I got php-xml installed as far as I understand
Code:
aptitude search php | grep xml
p   php-xml-htmlsax3                - SAX parser for HTML and other badly formed
p   php-xml-parser                  - PHP PEAR module for parsing XML
p   php-xml-rss                     - RSS parser
p   php-xml-serializer              - swiss-army knife for reading and writing X
p   php-xml-util                    - a XML utility for php-pear
i   php5-xmlrpc                     - XML-RPC module for php5
Reply
#52
im sorry, but i might be missing something, how do i get this working (install steps)

i have my asterisk running on a different machine than my xbmc.
im running xbmc r33324 and added the addon to it
i copied the info from manager_custom.conf to manager.conf
i copied the info from extensions_custom.conf to extensions.conf

now, what else?
Reply
#53
teshephe Wrote: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... ;-)

Please see above post

Most important part is that it is a script and not a Plugin !

You need to manually edit the autoexec.py to the path were your script is
Reply
#54
megacrypto Wrote:im sorry, but i might be missing something, how do i get this working (install steps)

i have my asterisk running on a different machine than my xbmc.
im running xbmc r33324 and added the addon to it
i copied the info from manager_custom.conf to manager.conf
i copied the info from extensions_custom.conf to extensions.conf

now, what else?


pt-1 Wrote:Please see above post

Most important part is that it is a script and not a Plugin !

You need to manually edit the autoexec.py to the path were your script is

could you kindly writ e a bit more elaborate installation steps (im sorry for some reason i cant figure out how to set it up) i have an xbmc box 192.168.1.150 and asterisk box 192.168.1.123 .. what i had before was a simple alert msg showing up in xbmc when an incoming call is received showing the caller id using xbmc's http api from within asterisk's extensions.conf

tthanks
Reply
#55
Download http://code.google.com/p/xbmc-pbx-addon/

You will have the following files & Directories in the xbmc-pbx-addon Directory:

07/09/2010 12:24 <DIR> .
07/09/2010 12:24 <DIR> ..
15/06/2010 20:07 858 addon.xml
15/06/2010 20:07 310 autoexec.py
05/07/2010 00:39 9,450 bgservice.py
05/07/2010 00:39 11,335 default.py
23/05/2010 19:50 64,961 default.tbn
03/09/2010 13:34 <DIR> resources
03/09/2010 13:34 <DIR> server_side

Files to Edit:

autoexec.py needs to go to your Directory on XBMC where the scripts are.

You need to Edit autoexec.py to point it to the Script Sub Directory were you have to copy the whole xbmc-pbx-addon directory.

Example (Windows! XBMC):
Code:
script_path = xbmc.translatePath(os.path.join(os.getcwd(),'My Scripts','xbmc-pbx-addon','bgservice.py'))

I created within Scripts the My Scripts Subdirectory but I am sure you can leave the My Scripts out and just copy xbmc-pbx-addon into the Scripts Directory.

Then Copy the xbmc-pbx-addon.php from the Subdirectory xbmc-pbx-addon\server_side to your Linux Box running Asterisk and teh Web Server (In my case /var/WWW)

Edit the xbmc-pbx-addon.php to match the locations of the Master.csv and the Voicemail directory.

The manager_custom.conf from the Subdirectory xbmc-pbx-addon\server_side is just an example File to allow the script access to CDR and VoiceMail and you can just add the XMBC User to your manager.conf on Asterisk (in my case /etc/asterisk)

Code:
[xbmc]
secret = xbmc
deny=0.0.0.0/0.0.0.0
permit=192.168.1.4
read = system,call,command,dialplan,originate
write = call,command,dialplan,originate

You need to modify the IP Range to match your Setup.

To test the php script browse to the IP of your Linux Box running Sterisk and teh web Server via http://xxx.xxx.xxx.xxx/xbmc-pbx-addon.php?cdr and you should see a list of the dialed numbers.
Reply
#56
pt-1, thanks alot for your help, i will try it out and give feedback on how it goes Smile
Reply
#57
Sorry guys, I've been busy and haven't had time to continue working on this script.

Given you are doing a great job helping each other, I wonder if anyone is interested in continuing this project and becoming a member on the google code site, so you can review/fix/improve code, the wiki (documentation), and whatever you want.

In that case just send me a private message with your google account and I'll give you the access.

Thanks a lot for your support!
Hernan.-
Reply
#58
im still confused about the autoexec.py .. im on linux and i can't seem to find the Scripts dir to copy it to?

i tested the xbmc-pbx-addon.php?cdr and it returned an xml page with all the calls info .. so i guess that part is working, i just need to get the XBMC part to work Wink
Reply
#59
Is there any hardware (like a pbx card) needed for this to run ?
Reply
#60
cmonpellier Wrote:Is there any hardware (like a pbx card) needed for this to run ?

if you want to connect your asterisk box to PSTN line then you will need FXO and FXS cards (depending on your requirements) to make asterisk handle the incoming and outgoing calls. This is what i have, and there are many vendors selling these cards on the market, including Digium itself.

I guess you could also get a SIP account from any provider and make asterisk use that to handle calls, and then have VoIP handsets in your home, and for that you dont need any cards on your asterisk box.

hope this helped a bit
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 20

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