Hi I understand this is a pure atserisk forum but any help that could be offered would be gratefully acccepted. I Recently installed Claudio Pizzillo’s hms system for piaf on to trixbox 2.8.0.4 everythings working great
apart from one small problem. When calling from extension to extension the phones are displaying device instead of the extension name. I have narrowed down the problem to the code that is inserted in to extensions_custom.conf which reads as follows.
[from-internal-custom]
;lets guests call other rooms without being checked in
exten => _5XXX,1,Dial(SIP/${EXTEN})
exten => _5XXX,n,Hangup()
;lets guests call 999 emergency numbers without being checked in
exten => _9999,1,Goto(outbound-allroutes,${EXTEN},1)
exten => _9999,n,Hangup()
;lets guests call toll free numbers without being checked in
;exten => _1800NXXXXXX,1,Goto(outbound-allroutes,${EXTEN},1)
;exten => _1800NXXXXXX,n,Hangup()
;exten => _1888NXXXXXX,1,Goto(outbound-allroutes,${EXTEN},1)
;exten => _1888NXXXXXX,n,Hangup()
;exten => _1877NXXXXXX,1,Goto(outbound-allroutes,${EXTEN},1)
;exten => _1877NXXXXXX,n,Hangup()
;exten => _1866NXXXXXX,1,Goto(outbound-allroutes,${EXTEN},1)
;exten => _1866NXXXXXX,n,Hangup()
exten => _X.,1,Set(result=${CURL(192.168.1.253/hotel/checkuser.php?Ext=${CALLERID(num)})})
exten => _X.,n,NoOp(Results: ${result})
exten => _X.,n,GotoIf($["${result}" = “OK”]?OK)
exten => _X.,n,GotoIf($["${result}" = “KO”]?KO)
exten => _X.,n(OK),Goto(outbound-allroutes,${EXTEN},1)
exten => _X.,n,Hangup()
;call front desk if not checked in
exten => _X.,n(KO),Goto(ext-group,0,1) ; used for ring groups
;exten => _X.,n(KO),Dial(SIP/5100) ; used for just one extension
exten => _X.,n,Hangup()
when this is commented out calls display properly, not sure what else to add other than to say i am no code expert so am a little lost as to how to rectify this.
I have included links to some relevant pages which might help also if there is any more information i need to supply please let me know.
Probably going to migrate away from trixbox now getting to be far to much trouble