[Home]

Summary:ASTERISK-20657: saycid in voicemail for french numbers (0123456789)
Reporter:Cedric BASSAGET (rico29)Labels:
Date Opened:2012-11-07 04:29:29.000-0600Date Closed:2012-11-07 09:50:09.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_playback Applications/app_voicemail
Versions:1.8.9.3 Frequency of
Occurrence
Related
Issues:
Environment:Linux SRV-IPOP1 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux CentOS release 5.7 (Final)Attachments:
Description:When saycid=yes in voicemail.conf, french phone numbers are not told as expected in say.conf.

If I call my voicemail, callerid number is announced using single digits :
[Nov  7 10:32:48] VERBOSE[5228] file.c: [Nov  7 10:32:48]     -- <SIP/154-00022342> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 10:32:49] VERBOSE[5228] file.c: [Nov  7 10:32:49]     -- <SIP/154-00022342> Playing 'digits/6.ulaw' (language 'fr')
[Nov  7 10:32:49] VERBOSE[5228] file.c: [Nov  7 10:32:49]     -- <SIP/154-00022342> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 10:32:50] VERBOSE[5228] file.c: [Nov  7 10:32:50]     -- <SIP/154-00022342> Playing 'digits/4.ulaw' (language 'fr')
[Nov  7 10:32:51] VERBOSE[5228] file.c: [Nov  7 10:32:51]     -- <SIP/154-00022342> Playing 'digits/5.ulaw' (language 'fr')
[Nov  7 10:32:51] VERBOSE[5228] file.c: [Nov  7 10:32:51]     -- <SIP/154-00022342> Playing 'digits/9.ulaw' (language 'fr')
[Nov  7 10:32:52] VERBOSE[5228] file.c: [Nov  7 10:32:52]     -- <SIP/154-00022342> Playing 'digits/6.ulaw' (language 'fr')
[Nov  7 10:32:53] VERBOSE[5228] file.c: [Nov  7 10:32:53]     -- <SIP/154-00022342> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 10:32:53] VERBOSE[5228] file.c: [Nov  7 10:32:53]     -- <SIP/154-00022342> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 10:32:54] VERBOSE[5228] file.c: [Nov  7 10:32:54]     -- <SIP/154-00022342> Playing 'digits/2.ulaw' (language 'fr')
[Nov  7 10:32:55] VERBOSE[5228] file.c: [Nov  7 10:32:54]     -- <SIP/154-00022342> Playing 'digits/9.ulaw' (language 'fr')
[Nov  7 10:32:55] VERBOSE[5228] file.c: [Nov  7 10:32:54]     -- <SIP/154-00022342> Playing 'digits/9.ulaw' (language 'fr')

Now if I use Playback, and add a line in say.conf :
#say.conf
   _pho[n]e:0XXXXXXXXX => digits/0, num:${SAY:1:1}, num:${SAY:2:2}, num:${SAY:4:2}, num:${SAY:6:2}, num:${SAY:8:2}

#extensions.conf
exten => _998899.,1,Set(CHANNEL(language)=fr)
exten => _998899.,n,Playback(phone:${EXTEN:6},say)
exten => _998899.,n,hangup()

The phone number is played as expected :
Nov  7 11:15:49] VERBOSE[14208] pbx.c: [Nov  7 11:15:49]     -- Executing [9988990676970269@context:1] Set("SIP/154-000225dc", "CHANNEL(language)=fr") in new stack
[Nov  7 11:15:49] VERBOSE[14208] pbx.c: [Nov  7 11:15:49]     -- Executing [9988990676970269@context:2] Playback("SIP/154-000225dc", "phone:0676970269,say") in new stack
[Nov  7 11:15:49] VERBOSE[14208] file.c: [Nov  7 11:15:49]     -- <SIP/154-000225dc> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 11:15:50] VERBOSE[14208] file.c: [Nov  7 11:15:50]     -- <SIP/154-000225dc> Playing 'digits/6.ulaw' (language 'fr')
[Nov  7 11:15:51] VERBOSE[14208] file.c: [Nov  7 11:15:51]     -- <SIP/154-000225dc> Playing 'digits/60.ulaw' (language 'fr')
[Nov  7 11:15:52] VERBOSE[14208] file.c: [Nov  7 11:15:52]     -- <SIP/154-000225dc> Playing 'digits/16.ulaw' (language 'fr')
[Nov  7 11:15:53] VERBOSE[14208] file.c: [Nov  7 11:15:53]     -- <SIP/154-000225dc> Playing 'digits/80.ulaw' (language 'fr')
[Nov  7 11:15:53] VERBOSE[14208] file.c: [Nov  7 11:15:53]     -- <SIP/154-000225dc> Playing 'digits/17.ulaw' (language 'fr')
[Nov  7 11:15:54] VERBOSE[14208] file.c: [Nov  7 11:15:54]     -- <SIP/154-000225dc> Playing 'digits/0.ulaw' (language 'fr')
[Nov  7 11:15:55] VERBOSE[14208] file.c: [Nov  7 11:15:55]     -- <SIP/154-000225dc> Playing 'digits/2.ulaw' (language 'fr')
[Nov  7 11:15:55] VERBOSE[14208] file.c: [Nov  7 11:15:55]     -- <SIP/154-000225dc> Playing 'digits/60.ulaw' (language 'fr')
[Nov  7 11:15:56] VERBOSE[14208] file.c: [Nov  7 11:15:56]     -- <SIP/154-000225dc> Playing 'digits/9.ulaw' (language 'fr')
[Nov  7 11:15:57] VERBOSE[14208] pbx.c: [Nov  7 11:15:57]     -- Executing [9988990676970269@context:3] Hangup("SIP/154-000225dc", "") in new stack
[Nov  7 11:15:57] VERBOSE[14208] pbx.c: [Nov  7 11:15:57]   == Spawn extension (context, 9988990676970269, 3) exited non-zero on 'SIP/154-000225dc'


Is there a way to make voicemail use playback for announcing cid number ?
I've tried with :
      cidinternalcontexts=vmsaycid in voicemail.conf
and

[vmsaycid]
exten => _X.,1,Playback(phone:${EXTEN},say)

in extensions.conf
but phone number is still announced as single digits

Hope my message is comprehensible...
Thanks for your help

Cédric
Comments:By: Matt Jordan (mjordan) 2012-11-07 09:50:09.210-0600

That isn't how {{cidinternalcontexts}} works.  From {{voicemail.conf.sample}}:

{quote}
; cidinternalcontexts=intern ; Internal Context for Name Playback instead of
; extension digits when saying caller id
{quote}

This will look for a context in the voicemail system (where a 'context' is a folder that conatins mailboxes), not in {{extensions.conf}}.  It allows you to put caller ID information, specifically caller names, in sound files in specific locations on the file system.

For numbers, {{voicemail.conf}} only plays back digits, and does not have an alternate mechanism.  Improving this behavior would be a feature request.

By: Cedric BASSAGET (rico29) 2012-11-07 10:00:38.720-0600

Created new case for feature request : ASTERISK-20661