Elastix and Dialfox phonebook

harryhirsch

Joined
Apr 10, 2009
Messages
24
Likes
0
Points
0
#1
Hi,

I would like to use Dialfox Phonebook with Elastix, which make a reverse resolution with an Internetbook to find the name of the CID Name.

This woks perfectly with Trixbox.

I get it work in Elastix when I copied the php.ini from Trixbox to Elastix.

Another point is the extensions_additional.conf where I should add 2 lines.

Here the part of the README file :
--------------------------------------------------------------------

Enable Asterisk CID name lookup for FreePBX

edit /etc/asterisk/extensions.conf and add two lines

//-bof- [extensions.conf]

# ;; find the following lines
[macro-user-callerid]
;;;; here should after the first command in this macro
exten => s,1,Noop(user-callerid: ${CALLERID(name)} ${CALLERID(number)})

;;;; insert this next two lines
exten => s,n,DBGet(name=cidname/${CALLERIDNUM})
exten => s,n,SetCIDName(${name})

;;;; further existing code to keep
exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)
exten => s,n,GotoIf($["${REALCALLERIDNUM:1:2}" != ""]?start)
exten => s,n,Set(REALCALLERIDNUM=${CALLERID(number)})

-eof-// [extensions.conf]

now activate changes will enter does command from CLI
CLI> reload

------------------------------------------------------------------------------
The lines in extensions_additional.conf of Elastix are not the same
They are looking quit similar :

[macro-user-callerid]
include => macro-user-callerid-custom
exten => s,1,Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})})
exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = ""],Set,REALCALLERIDNUM=${CALLERID(number)})
Will it be OK to add these 2 additional lines befor this line :
exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)

Thanks for your help

Harry
 

harryhirsch

Joined
Apr 10, 2009
Messages
24
Likes
0
Points
0
#2
Hi,

I get it work in Elastix when I copied the php.ini from Trixbox to Elastix.
This problem I could fix with the help of the dialfox phonebook forum:
To get it work, you need to set in the /etc/php.ini "register_globals = On".

Otherwise you will not see any result.


Now, only my question about the additional lines in the extensions_additional.conf is open.
Has somebody an idea ?

Thanks


Harry
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,913
Messages
130,917
Members
17,589
Latest member
cristian.saiz
Top