Koozali.org: home of the SME Server

Feature Code Anomalies

Offline apmuthu

  • *
  • 244
  • +0/-0
Feature Code Anomalies
« on: February 13, 2013, 01:58:48 PM »
Extract of /etc/asterisk/extensions.conf from latest SAIL 3.1.1-22:
Code: [Select]
;
; SARK Service Codes
;
;
        exten => _*12[*8]XXXX,1,agi(sarkhpe,${EXTEN},,)  ; SYSOP Redir
        exten => _*12[*8]XXX,1,agi(sarkhpe,${EXTEN},,)  ; SYSOP Redir
        exten => _*12[*8],1,agi(sarkhpe,${EXTEN},,)  ; SYSOP OFF
        exten => _*1[89][*8],1,agi(sarkhpe,${EXTEN},,)  ; DND ON/OFF
        exten => _*20[*8],1,agi(sarkhpe,${EXTEN},,)  ; DND TOGGLE
        exten => _*2[12789][*8]XX.,1,agi(sarkhpe,${EXTEN},,) ; CF ONs
        exten => _*3[89][*8]XX.,1,agi(sarkhpe,${EXTEN},,) ; CFxxCL ON
        exten => _*3[89][*8],1,agi(sarkhpe,${EXTEN},,)  ; CFxxCL OFF
        exten => _*2[123789][*8],1,agi(sarkhpe,${EXTEN},,) ; CF OFFs
        exten => _*26[*8],1,agi(sarkhpe,${EXTEN},,)  ; RingDelay
        exten => _*26[*8]X,1,agi(sarkhpe,${EXTEN},,)  ; RingDelay
        exten => _*26[*8]XX,1,agi(sarkhpe,${EXTEN},,)  ; RingDelay
        exten => _*3[012345][*8],1,agi(sarkhpe,${EXTEN},,) ; TIMERS
        exten => _*5[012567][*8],1,agi(sarkhpe,${EXTEN},,) ; VMAIL, TIME etc.
        exten => _*6[01][*8]XXXX,1,agi(sarkhpe,${EXTEN},,) ; Greetings
        exten => _*6[34][*8],1,agi(sarkhpe,${EXTEN},,)  ; Agent pause/unpause(63 64)
        exten => _*6[56][*8],1,agi(sarkhpe,${EXTEN},,)  ; Agent Login/out(65 66)
        exten => _*68[*8]XXXX,1,agi(sarkhpe,${EXTEN},,)  ; ChanSpy
        exten => _*68[*8]XXX,1,agi(sarkhpe,${EXTEN},,)  ; ChanSpy
        exten => _*40[*8],1,agi(sarkhpe,${EXTEN},,)            ; Page
        exten => _*40[*8]XXXX,1,agi(sarkhpe,${EXTEN},,)        ; Page Group
        exten => _*40[*8]XXX,1,agi(sarkhpe,${EXTEN},,)  ; Page Group
        exten => _*4[12][*8],1,agi(sarkhpe,${EXTEN},,)  ; ProVu DND
;
; NANP Vertical Service Code Compatibility
;
        exten => *60,1,agi(sarkhpe,*55*,,)
        exten => *65,1,agi(sarkhpe,*56*,,)
        exten => _*72X.,1,agi(sarkhpe,*21*${EXTEN:3},,)
        exten => *73,1,agi(sarkhpe,*21*,,)
        exten => _*77XXXX,1,agi(sarkhpe,*60*${EXTEN:3},,)
        exten => *78,1,agi(sarkhpe,*18*,,)
        exten => *79,1,agi(sarkhpe,*19*,,)
        exten => _*90X.,1,agi(sarkhpe,*22*${EXTEN:3},,)
        exten => *91,1,agi(sarkhpe,*22*,,)
        exten => *97,1,agi(sarkhpe,*50*,,)
        exten => *98,1,agi(sarkhpe,*51*,,)
        exten => _*99XXXX,1,agi(sarkhpe,*61*${EXTEN:3},,)

*18*, *19* and *20* are supposed to play the DND Activation / De-Activation / Toggle Message but instead provide the Call Forwarding equivalents.

*55* does not read out the date and time - just hangs up - sarkhpe seems to have it hardcoded to GB. This has not been fixed in 4 years. Alison Keenan's en_GB sounds can used.
 
This is sorted out by setting
 
mode=new
 
in line 6 in /etc/asterisk/say.conf.



We get the following message in /var/log/asterisk/messages:
Code: [Select]
Dropping incompatible voice frame on SIP/5001-00000016 of format alaw since our native format has changed to 0x4 (ulaw)
Installing the ulaw binaries:
Code: [Select]
yum --enablerepo=asterisk-current install \
      asterisk-sounds-core-en-ulaw \
      asterisk-sounds-moh-opsound-ulaw
Also switched the alaw and ulaw entries on the General SIP extension definitions - need to have it changed in the templates / sark.db too.

The following error has not yet been fixed - missing folder:
Code: [Select]
[Feb 13 19:00:10] WARNING[4172] chan_iax2.c: Error opening firmware directory '/var/lib/asterisk/firmware/iax': No such file or directory
« Last Edit: February 13, 2013, 03:38:30 PM by apmuthu »

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Feature Code Anomalies
« Reply #1 on: February 20, 2013, 11:35:07 PM »
Hi Apmuthu

Quote
*18*, *19* and *20* are supposed to play the DND Activation / De-Activation / Toggle Message but instead provide the Call Forwarding equivalents.

You are quite correct; the features play "Call forwarding" then;  "activated/deactivated" and, now you mention it, it does seem odd to talk about forwarding when setting a DND.  However, when I think about it, we've always been OK with these messages, I guess because we know that we actually set DND by doing an unconditional call-forward to self.

Easy enough to remove the "call-forwarding" sound-bite but there is no DND equivalent so we would just have to make do with "activated/deactivated". 

I'll look at the *55* feature - thanks  for the fix. Very much appreciated.

Best
S
« Last Edit: February 20, 2013, 11:36:53 PM by SARK devs »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Feature Code Anomalies
« Reply #2 on: February 23, 2013, 04:21:57 AM »
Thanks for the deatil Joe. Wiki-ed it at:
http://www.sailpbx.com/mediawiki/index.php/SAIL_Feature_Codes#Do_Not_Disturb_.28DND.29
 
Kindly review and update it.