[RELEASE] XBMC PBX Addon - Home Telephony Experience using Asterisk

  Thread Rating:
  • 3 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
peeedeee Offline
Junior Member
Posts: 8
Joined: Jun 2010
Reputation: 0
Post: #251
@herman:

You wrote: Hello! it seems there is some issues with path to files.

Actually, that can be tough? (In real-time checking it wile posting)

I checked the pads in the php script, and can "cat" the Master.crv, ...While a "ls" of the voice-mail folder, contains default? ...And In my PBX VoiceMail: Context; ...I have "the root" of my DailPlan? (Damn Asterisk Gui!)

It works Rofl ...Thank You!!!
find quote
gillou666 Offline
Junior Member
Posts: 15
Joined: Apr 2012
Reputation: 0
Post: #252
(2012-04-22 23:21)hmr Wrote:  Hi gillou666, nice work!

I don't have an Asterisk 10 to test it. Could you please test the following ?

Get a fresh copy of bgservice.py and just add a new method: add this line in def __init__(self)
Code:
self.events.subscribe('Newstate',self.NewCallerID) # Asterisk 10.1

You can download bgservice.py from here: http://code.google.com/p/xbmc-pbx-addon/...service.py

Thank you!
Hernán.-


Hi Hernàn,

this solution doesn't work ...

The XBMC log :

Code:
NOTICE: [XBMC PBX Addon]: > NewChannel()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.171
NOTICE: [XBMC PBX Addon]: >> State: Down
NOTICE: [XBMC PBX Addon]: > NewCallerID()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.171
NOTICE: [XBMC PBX Addon]: >> CallerID: Gilles Fixe <1214>
NOTICE: [XBMC PBX Addon]: > NewChannel()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.172
NOTICE: [XBMC PBX Addon]: >> State: Down
NOTICE: [XBMC PBX Addon]: > NewCallerID()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.172
NOTICE: [XBMC PBX Addon]: >> CallerID: Gilles Iphone <1212>
NOTICE: [XBMC PBX Addon]: > Hangup()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.172
NOTICE: [XBMC PBX Addon]: > Hangup()
NOTICE: [XBMC PBX Addon]: >> UniqueID: 1335193929.171

But i know why....

as you can see in my post #246 the order of event for a new call in asterisk 10 is :

Newchannel() ---> channel caller (bgsercice : create new id)
Newstate() ---> caller ring (bgsercice : fix the id)
Newchannel() ----> channel receiver (bgsercice : create new id but it's not the same and the hangup don´t reinitialise the id ....)
Newstate() ----> receiver ringing (bgsercice : fix the new id)
Hangup() ---> hangup caller (bgservice : Confused? first id ? second id ??)

my solution it's a "mix" between newChannel and NewCallerID ....
I don't have an equipment (preconised by digium) so i don't have a dahdi or zapata channel, my system work only with SIP (maybe for this reason i have more newChannel event)
find quote
marigo Offline
Junior Member
Posts: 15
Joined: Mar 2012
Reputation: 0
Post: #253
(2012-04-17 17:56)gillou666 Wrote:  
(2012-04-15 20:41)marigo Wrote:  Hi All,

I've setup the pbx-add-on but can't get the incoming call pop-up working. I see the incoming call in the log file:

Code:
[XBMC PBX Addon]: > NewChannel()
[XBMC PBX Addon]: >> UniqueID: 1334494971.259
[XBMC PBX Addon]: >> State: Down
[XBMC PBX Addon]: > NewChannel()
[XBMC PBX Addon]: >> UniqueID: 1334494975.260
[XBMC PBX Addon]: >> State: Down
[XBMC PBX Addon]: > NewCallerID()
[XBMC PBX Addon]: >> UniqueID: 1334494975.260
[XBMC PBX Addon]: >> CallerID:
[XBMC PBX Addon]: > Hangup()
[XBMC PBX Addon]: >> UniqueID: 1334494975.260
[XBMC PBX Addon]: > Hangup()
[XBMC PBX Addon]: >> UniqueID: 1334494971.259

I think that it has got to do with the uniqueness of the ID which is not consistent.
Can someone confirm that above logging causes that the incoming call pop-up is not working?
And what to do about it?

Edit: Summary call flow

-Incoming call from my sip provider (via register command) triggers an extension;
-Extension dials an user (client)

I think this is why I can see that two unique channels are reported in the log file.

The question remains; How can I get the incoming pop-up working?

What is your version of Asterisk ??
in the mine (10.1) I have a new Event : "Newstate" ... and in the bgservice.py there is not a subscripter to this event.

I have version [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.
It runs on my synology NAS DS211J. The voicemail pop-up works just fine. But the incoming call doesn't work. Sad
find quote
gillou666 Offline
Junior Member
Posts: 15
Joined: Apr 2012
Reputation: 0
Post: #254
(2012-04-23 21:32)marigo Wrote:  I have version [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.
It runs on my synology NAS DS211J. The voicemail pop-up works just fine. But the incoming call doesn't work. Sad

with a SIP system ? your log it's an internal call between two SIP client ?
find quote
marigo Offline
Junior Member
Posts: 15
Joined: Mar 2012
Reputation: 0
Post: #255
It is the log of an incoming call registred by xbmc.


This setup uses the user.conf to setup sip clients. This is where my internal client is configured. In the sip.conf I have registred my sip provider (where I receive incoming calls) and forward that to an extension. This extension dials my internal client and rings the phone. Smile

As you can see in the log this addon logged the call, but unfortunally not triggering the pop-up.
find quote
ric9887 Offline
Junior Member
Posts: 2
Joined: Jan 2008
Reputation: 0
Post: #256
I am trying to get the callers picture displayed on an incoming call.
I get the popup saying 'incoming call', and I get this in the log :-
17:04:47 T:139686222321408 NOTICE: [XBMC PBX Addon]: >> Caller's picture: smb://NAS/Multimedia/Photos/pbx photos/07775615540
17:04:47 T:139686222321408 NOTICE: [XBMC PBX Addon]: >> Showing Caller's picture

However, the picture is not displayed on the screen.
Is there a specification for the picture ?
I have created a jpg in that location, and removed the jpg extension, as indicated in the log.

I have the option enabled in the settings to display the callers picture btw.
I am currently running on 1.0.10.0, XBMC 12.0alpha4 (Openelec ION build) to PIAF Purple (Asterisk 1.8)
What am I doing wrong ?

Regards
Rich
(This post was last modified: 2012-07-07 18:30 by ric9887.)
find quote
Miggl Offline
Junior Member
Posts: 3
Joined: Jul 2012
Reputation: 0
Post: #257
Getting addon error:
Incorrect banner asterisk 1.2

I'm using the latest version of asterisk (10), and I believe the addon doesn't know how to handle this yet. I know this is experimental, but the asterisk management interface is still largely the same. I don't think there is an issue with enabling this.
(This post was last modified: 2012-07-11 02:45 by Miggl.)
find quote
jadog Offline
Junior Member
Posts: 14
Joined: Apr 2009
Reputation: 0
Post: #258
I've been unable to get the notification to work. I'm running XBMC on CrystalBuntu. I've verified that I can successfully use the link http://asterisk/xbmc-pbx-addon.php to check the status of my PBX install. All show as "OK". If I make an inbound call to my PBX, I can view the phone calls and messages in XBMC. It just doesn't notify on incoming. Here's my log file.

14:58:49 T:2943728528 NOTICE: [XBMC PBX Addon]: Version 1.0.10
14:58:49 T:2943728528 NOTICE: [XBMC PBX Addon]: XBMC for Linux
14:58:50 T:2943728528 NOTICE: [XBMC PBX Addon]: >> Asterisk 1.8
14:58:50 T:2943728528 NOTICE: [XBMC PBX Addon]: >> Asterisk 1.8.8.0 built by root @ pbx.local on a i686 running Linux on 2012-04-15 17:36:18 UTC
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: > NewChannel()
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1343847938.18
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: >> State: Down
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: > NewCallerID()
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1343847938.18
15:05:38 T:2943728528 NOTICE: [XBMC PBX Addon]: >> CallerID: 703 (My Desk) <703>
15:05:39 T:2943728528 NOTICE: [XBMC PBX Addon]: > NewChannel()
15:05:39 T:2943728528 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1343847938.19
15:05:39 T:2943728528 NOTICE: [XBMC PBX Addon]: >> State: Down
15:05:42 T:3021981968 DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc
15:05:42 T:3021981968 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnScreensaverDeactivated
15:05:43 T:3021981968 DEBUG: ------ Window Deinit () ------
15:05:54 T:2943728528 NOTICE: [XBMC PBX Addon]: > Hangup()
15:05:54 T:2943728528 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1343847938.19
15:05:54 T:2943728528 NOTICE: [XBMC PBX Addon]: > Hangup()
15:05:54 T:2943728528 NOTICE: [XBMC PBX Addon]: >> UniqueID: 1343847938.18
find quote
bill-ns Offline
Junior Member
Posts: 2
Joined: Aug 2012
Reputation: 0
Post: #259
Looks like I'm seeing a similar scenario. No inbound call logging in xbmc.log. Can't make outbound calls from xbmc either. The .php file is visible and "ok", The master.csv file viewable in the plugin and does show all incoming/outgoing calls. The plugin complains when the asterisk server is shutdown... so it's got connectivity to it.

I can setup a softphone using the same credentials I'm using in the asterisk plugin, and inbound/outbound calls work fine.

I'm using Asterisk 1.6 running on my Tomato router. XBMC is the latest monthly build (same results with the previous monthly build) running on an ATV2.
Also having the long shutdown period since installing this pluging.

I can get logs later in the day when I get home.

Thanks for any help or direction!
Bill
find quote
gillou666 Offline
Junior Member
Posts: 15
Joined: Apr 2012
Reputation: 0
Post: #260
(2012-07-11 02:27)Miggl Wrote:  Getting addon error:
Incorrect banner asterisk 1.2

I'm using the latest version of asterisk (10), and I believe the addon doesn't know how to handle this yet. I know this is experimental, but the asterisk management interface is still largely the same. I don't think there is an issue with enabling this.

Hi Miggl,

Just add :

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

'Asterisk Call Manager/1.2\r\n'

this add-on work for me (Asterisk 10.1) with little change read all the thread plz.
find quote
Post Reply