[Home]

Summary:ASTERISK-07751: [patch] Voicemail message callback option loses last 3 digits of CID number
Reporter:dtyoo (dtyoo)Labels:
Date Opened:2006-09-15 12:50:41Date Closed:2006-09-19 07:31:04
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20060918__bug7961.diff.txt
( 1) 7961_full_log.txt
Description:If you try to callback from a voicemail message (3 for advanced options, 2 to call the person who sent this message) the call back number gets mangled.  It looks like the last 3 digits of the callback number, which is based on the callerid captured in the message, are always replaced with an 8.

****** ADDITIONAL INFORMATION ******

Here is a console snippet illustrating the issue:

   -- Callback Requested
 == Parsing '/var/spool/asterisk/voicemail/NAME_REMOVED/NUMBER_REMOVED/INBOX/msg0000.txt': Found
   -- Confirm CID number '6173543948' is number to use for callback
   -- Playing 'vm-num-i-have' (language 'en')
   -- Playing 'digits/6' (language 'en')
   -- Playing 'digits/1' (language 'en')
   -- Playing 'digits/7' (language 'en')
   -- Playing 'digits/3' (language 'en')
   -- Playing 'digits/5' (language 'en')
   -- Playing 'digits/4' (language 'en')
   -- Playing 'digits/3' (language 'en')
   -- Playing 'digits/8' (language 'en')
   -- Playing 'vm-tocallnum' (language 'en')

Here are the contents of the .txt file:

;
; Message Information file
;
[message]
origmailbox=NUMBER_REMOVED
context=macro-vm
macrocontext=pstn-in
exten=s
priority=4
callerchan=IAX2/bos-05-6
callerid=6173543948
origdate=Fri Sep 15 01:26:26 PM EDT 2006
origtime=1158341186
category=
duration=5
Comments:By: Tilghman Lesher (tilghman) 2006-09-16 08:58:46

Please turn on the "full" line in logger.conf, "logger reload", repeat your test, then upload (don't paste) the full log here.

If the full log is already on, just upload a file containing the relevant parts of the full log.

By: dtyoo (dtyoo) 2006-09-18 09:56:48

Corydon76-

A full log snippet has been uploaded.  I had to switch test systems to turn on the full log, so the scenario is a little different than the one described above.  This time it looks like only the last digit is not correct (an H?).  But I did notice on this system, the callerid is being recorded differently than on the first system I was testing on.  This time the system says the callback number is "caller unavailable", where as the first time it would repeat back an actual number with missing digits.

First, my voicemail.conf options:

hidefromdir=yes|review=yes|exitcontext=NAME_REMOVED|callback=NAME_REMOVED|dialout=NAME_REMOVED

The contents of the .txt file that goes along with the full log snippet:

[message]
origmailbox=MAILBOX_NUMBER_REMOVED
context=macro-vm
macrocontext=pstn-in
exten=s
priority=4
callerchan=SIP/IP_REMOVED-b7b030c0
callerid="6173543948" <6173543948>
origdate=Mon Sep 18 10:28:04 AM EDT 2006
origtime=1158589684
category=
duration=5

By: Tilghman Lesher (tilghman) 2006-09-18 11:49:11

dtyoo:  please test this patch to ensure that it fixes your issue.

By: dtyoo (dtyoo) 2006-09-18 22:11:51

Corydon76-

The patch solves the problem as far as I can tell.  I tried it in several different scenarios (different values for callerid= in msgXXXX.txt) and its holding up nicely.  Nice work.

By: Tilghman Lesher (tilghman) 2006-09-19 07:31:04

Fixed in revision 43249.