• 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18
  • 20
[RELEASE] XBMC PBX Addon - Home Telephony Experience using Asterisk
Inbound call started working, but I have no idea why. Perhaps after a W7 reboot...I am guessing.

Just allow me to thank the author for this add-on.

Amazingly well documented and precise instructions, I admire and appreciate that!
KODI: LibreElec on Raspberry Pi
KODI: LibreElec on Asus Chromebox
 
Reply
Anyone get this working with stock asterisk 1.10? I cannot get the voicemail to work. Anyone send some sample pbx in a flash configs? Do i need context set up for voicemail?

here is the output:
17:42:31 T:139959022548736 NOTICE: [XBMC PBX Addon]: Version 1.0.9
17:42:31 T:139959022548736 NOTICE: [XBMC PBX Addon]: XBMC for Linux
17:42:31 T:139959022548736 NOTICE: [XBMC PBX Addon]: PATH: /home/vladi/.xbmc/addons/script.xbmc-pbx-addon
17:42:31 T:139959022548736 NOTICE: [XBMC PBX Addon]: Launching GUI...
17:42:31 T:139959022548736 NOTICE: [XBMC PBX Addon]: __init__()
17:42:32 T:139959415592800 ERROR: Control 120 in window 13000 has been asked to focus, but it can't
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: > onInit()
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: > skinSetup()
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: > getInfo()
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: >> Asterisk 10.
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: >> Asterisk 10.0.1 built by root @ tux on a x86_64 running Linux on 2012-01-21 21:29:00 UTC
17:42:32 T:139959022548736 NOTICE: [XBMC PBX Addon]: >> http://10.7.7.1/asterisk/xbmc-pbx-addon....xt=default
17:42:33 T:139959022548736 NOTICE: [XBMC PBX Addon]: >> Notification: junk after document element: line 2, column 0
17:42:33 T:139959022548736 NOTICE: [XBMC PBX Addon]: >> Done.

and here is what i get from php script after i enter above url:
XML Parsing Error: junk after document element
Location: http://10.7.7.1/asterisk/xbmc-pbx-addon....xt=default
Line Number 2, Column 1:<b>Notice</b>: Use of undefined constant recindex - assumed 'recindex' in <b>/var/www/localhost/htdocs/asterisk/xbmc-pbx-addon.php</b> on line <b>171</b><br />
^
Reply
ok fixed the above error by modifying php script:
$element = $xmldoc->createElement(recindex);
to
$element = $xmldoc->createElement('recindex');
Reply
fixed the voicemail playing by changing php script from:

$file_to_download = $vm_path . "msg" . $_GET['recindex'] . "." . $_GET['format'];

to

$file_to_download = $vm_path . "msg" . $_GET['recindex'] . "." . strtoupper($_GET['format']);
Reply
Asterisk 10. I've got the voicemail and CDR working great, but I can't dial in or out. Most of the time it shows up as unavailable, but "there". I've tried various combinations of "ring", "drop", "auto" etc.

I had to modify a line in a file to include AMI version 1.3 (?), as PBXaddon was expecting 1.1 or 1.2. I might have added 1.4 instead of 1.3, I can't remember, but it solved the CDR and VM connectivity.

I have the PBX User settings as "local/001@from-internal", with a matching context.

I have device and user mode set up, so device "001" is named "TV", and is where the XBMC is viewed. User "210" (named "PVR") is the default user. Masks are in place for internal IP.

My Asterisk shows such lines as the following at initial contact when the XBMC tries to establish a SIP connection with pbx.local

pbx.c: -- Executing [001@from-internal:1] Macro("Local/001@from-internal-94e4;2", "user-callerid,LIMIT,") in new stack

The number I dialed was "1234", so I would expect to see: ...Executing[1234@... not 001@ Is this right? It's as if the PBXaddon isn't passing the number through.

Whenever I try to ring 210 (who should be at 001) or 001, or any ringgroups that it belongs to, I get a "hangup" generated.

My extensions.conf (well, additional) indicates that a secret is required for both 001 and 210. The secret is not xbmc. They have also been tried as empty in the ext.conf, or sip.conf. The right place, anyway.

I don't know if it matters, but XBMC is running on XBMCBuntu, which is hosting an Oracle VM that is running FreePBX. Testing done from a second, seperate computer and external trunk-->asterisk dialled from landline (POTS/NoVoip)


Asterisk 1.10
FreePBX 2.9.0.7
Kernel 2.6.32-220.2.1.el6.i686 (SMP) i686
Icon CentOS release 6.2 (Final)

All from PBX In A Flash iso (PIAF Purple).

Ta,

Nick. Slightly balder after three days of trolling through confs and logs and Google.
Reply
Hello everyone,

Real life kept me away from updating this script but I'm planning to get back and make some progress these days.

Given the fact XBMC Eden is around the corner, I was planning to only focus on this version, but I would like to get some input from you to better understand how people is using this script and therefore I'll ask to answer these:

* Which XBMC version are you running ?
* Which OS and version are you running for XBMC ?
* Which Asterisk version (and distro) are you running ?
* Any missing feature you would like to see ?

So I'll try to make progress based on this feedback and also ensure support for Asterisk 1.8 that was requested several times.

Thanks for your help!
Hernán.-
Reply
XBMC version: XBMCbuntu 11.0-BETA3
Ubuntu 11.10
Asterisk: 1.6.2.13

Hello Hmr,

I worked out your installation guide and everything works except the incoming call pop-up. I have set the NewChannel State to "ring" but no incoming calls appears on the screen.

Maybe you can see something in the log of xmbc?
Code:
14:04:17 T:2849442672  NOTICE: [XBMC PBX Addon]: Version 1.0.9
14:04:17 T:2849442672  NOTICE: [XBMC PBX Addon]: XBMC for Linux
14:04:17 T:2849442672  NOTICE: [XBMC PBX Addon]: PATH: /home/marigo/.xbmc/addons/script.xbmc-pbx-addon
14:04:17 T:2849442672  NOTICE: [XBMC PBX Addon]: Launching GUI...
14:04:17 T:2849442672  NOTICE: [XBMC PBX Addon]: __init__()
14:04:18 T:3042797312   ERROR: Control 120 in window 13000 has been asked to focus, but it can't
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: > onInit()
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: > skinSetup()
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: > getInfo()
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: >> Asterisk 1.6
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: >> Asterisk 1.6.2.13 built by slug @ oldbuilder on a i686 running Linux on 2010-11-29 22:54:00 UTC
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: > showInfo()
14:04:18 T:2849442672  NOTICE: [XBMC PBX Addon]: >> Done.
14:04:28 T:2849442672  NOTICE: [XBMC PBX Addon]: > onInit()
14:04:28 T:2849442672  NOTICE: [XBMC PBX Addon]: > skinSetup()
14:04:28 T:2849442672  NOTICE: [XBMC PBX Addon]: > getInfo()
14:04:28 T:2849442672  NOTICE: [XBMC PBX Addon]: >> Asterisk 1.6
14:04:28 T:2849442672  NOTICE: [XBMC PBX Addon]: >> Asterisk 1.6.2.13 built by slug @ oldbuilder on a i686 running Linux on 2010-11-29 22:54:00 UTC

Kind regards,

Marigo
Reply
Hi!

I've just uploaded a new version (1.0.10) based on all the feedback I've received so far.

There are fixes and new features as well (details are on first post), so please test them all and let us know your results!

Thanks!
Hernán.-
(2012-03-13, 15:55)marigo Wrote: Maybe you can see something in the log of xmbc?

Hi Marigo, based on your logs I can't see this addon running on background. Have you rebooted after configuring it for the first time ?

BTW, there is a new version so I will ask you to update to the new one.

Please let me know how it works.

Thanks!
Hernán.-
Reply
(2012-02-20, 03:16)hmr Wrote: * Which XBMC version are you running ?
* Which OS and version are you running for XBMC ?
* Which Asterisk version (and distro) are you running ?
* Any missing feature you would like to see ?

Latest Eden
Vista 64bit (rofl - it works and I haven't upgraded it yet.)
PBXinaFlash - Asterisk 1.4.21.2

Reply
Eden RC2 on W7
Pbxinaflash - Asterisk v.1.8.6.0

It worked before on xbmc-pbx-addon v 1.0.9
After upgrade to v 1.0.10 (thanks for putting in a reminder to update the backend too Smile) and a restart of XBMC it works fine, except this:

As soon as the external call comes in, a playing video in xbmc jumps to pause, a notification of caller with callername and number pops up, BUT
the other phones that are ringing stop ringing too. I would prefer that other phones keep ringing so I can decide to answer the call.

I have tried to set wait time in extensions_custom.conf to a higher amount (followed by amportal restart), but this did not change the behaviour.

I modified the script, but the first lines still look like this:
Quote:[xbmc-now-playing]
exten => s,1,Wait(10)
exten => s,n,Answer()
exten => s,n,Noop(----------------------------)
exten => s,n,Noop(XBMC PBX Addon - Now Playing)
exten => s,n,Noop(----------------------------)
exten => s,n,Noop(--> Video Title: ${xbmc_video_title})
exten => s,n,Noop(--> Remaining Time: ${xbmc_remaining_time})
exten => s,n,Wait(2)
exten => s,n,Set(CHANNEL(language)=en)
exten => s,n,Playback(silence)
exten => s,n,Playback(pls-hold-while-try)
exten => s,n,Wait(2)
...

What should I change?
KODI: LibreElec on Raspberry Pi
KODI: LibreElec on Asus Chromebox
 
Reply
(2012-03-14, 12:36)Rrrr Wrote: What should I change?

You have to disable the option "Redirect calls if XBMC is playing Video".

If you keep it enabled, Asterisk will answer that call in the xbmc-now-playing context, and therefore other phones will stop ringing.

Best regards!
Hernán.-
Reply
Very nice, thank you very much.
KODI: LibreElec on Raspberry Pi
KODI: LibreElec on Asus Chromebox
 
Reply
Hi hmr,

In first, thank you for addon !
Your project work more or less with asterisk 10.1 on XBMC Apple TV 2

Just add :

in Manager.py in method class BaseManager(object): in _AST_BANNERS the new Call manager.

'Asterisk Call Manager/1.2\r\n'

I have some trouble with duration message but i work on it
Reply
I'm trying to get the caller ID picture to display... I entered a folder for the location of the pictures... but what should i name the photos?

My caller ID shows up in XBMC as "8005551212 <8005551212>" so I tried making a file named 8005551212.jpg, in that folder... but it didn't work... how should my pictures be saved and named to match a caller ID?

EDIT: Nevermind... dropping the file extension works.
Reply
How come the calls show up as "8005551212 <8005551212>" instead of showing the person's name from the caller ID in the asterisk phonebook?

Reply
  • 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18
  • 20

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