<span class="bb-messageText">Hi,<br><br>I'm very new to Asterisk and I have the following scenario.
<br>
<br>1. Let's say I have a number of 1-222-222-2222 from my SIP service provider (VoicePulse).
<br>2. I point my phone, Verizon wireless cellphone (1-111-111-1111), voicemail to the number provided by SIP service provider (1-222-222-2222).
<br>3. I use another phone (1-333-333-333) to call 1-111-111-1111 and leave a voicemail message.
<br>
<br>Within my Asterisk console , I can see
a caller id of 1-333-333-333 and the number provided by SIP service provider (1-222-222-2222).<br>However, I couldn't figure out how to get the number the caller dialed (
1-111-111-1111). Is there a way to retrieve the number the caller dialed
(i.e. 1-111-1111) in this scenario? <br>
<br>Note that as far as I know the carrier (e.g Verizon wireless)
should pass on those information. I see many companies that provide
voicemail to email services. They seem to be able to retrieve those
information. <br>
Is there a way to confirm that my SIP service provide does actually pass on those information?<br><br>Here is what I have in extensions.conf to test this scenario<br><br>exten => _XX.,1,NoOp(Call received from VoicePulse)<br>
exten => _XX.,n,Log(INFO|Caller ID Number: ${CALLERID(num)})<br>exten => _XX.,n,Answer()<br>exten => _XX.,n,DumpChan()<br>exten => _XX.,n,VoiceMail(101@default,u)<br><br>Here is what I see on the console.<br><br>
zeus*CLI><br> -- Executing [12222222@voicepulse-in:1] NoOp("SIP/mrXXXX-08XXXX", "Call received from VoicePulse") in new stack<br> -- Executing [12222222@voicepulse-in:2] Log("SIP/mrXXXX-08XXXX", "INFO|Caller ID Number: 3333333") in new stack<br>
[Jan 28 18:20:24] ERROR[22123]: app_verbose.c:133 log_exec: Unknown log level: 'INFO'<br> -- Executing [12222222@voicepulse-in:3] Answer("SIP/mrXXXX-08XXXX", "") in new stack<br> -- Executing [12222222@voicepulse-in:4] DumpChan("SIP/mrXXXX-08XXXX", "") in new stack<br>
zeus*CLI><br>Dumping Info For Channel: SIP/mrXXXX-08XXXX:<br>================================================================================<br>Info:<br>Name= SIP/mrXXXX-08XXXX<br>Type= SIP<br>
UniqueID= 12331856824.83<br>CallerID= 3333333<br>CallerIDName= ATIVA DAVID <br>DNIDDigits= 12222222<br>RDNIS= (N/A)<br>State= Up (6)<br>Rings= 0<br>
NativeFormat= 0x4 (ulaw)<br>WriteFormat= 0x4 (ulaw)<br>ReadFormat= 0x4 (ulaw)<br>1stFileDescriptor= 23<br>Framesin= 0<br>Framesout= 0<br>TimetoHangup= 0<br>ElapsedTime= 0h0m0s<br>
Context= voicepulse-in<br>Extension= 12222222<br>Priority= 4<br>CallGroup= <br>PickupGroup= <br>Application= DumpChan<br>Data= (Empty)<br>Blocking_in= (Not Blocking)<br>
<br>Variables:<br>SIPCALLID=<a href="mailto:282e93ca78805a039fdf01729af52c@64.62.94.171">282e93ca78805a039fdf01729af52c@64.62.94.171</a><br>SIPUSERAGENT=Asterisk PBX<br>SIPDOMAIN=66.195.225.160<br>SIPURI=<a href="mailto:sip%3A3333333@64.62.94.171">sip:3333333@64.62.94.171</a><br>
================================================================================<br> -- Executing [12222222@voicepulse-in:5] VoiceMail("SIP/mrXXXX-08XXXX", "101@default|u") in new stack<br> -- <SIP/mrXXXX-08XXXX> Playing 'vm-theperson' (language 'en')<br>
-- <SIP/mrXXXX-08XXXX> Playing 'digits/1' (language 'en')<br> -- <SIP/mrXXXX-08XXXX> Playing 'digits/0' (language 'en')<br> -- <SIP/mrXXXX-08XXXX> Playing 'digits/1' (language 'en')<br>
-- <SIP/mrXXXX-08XXXX> Playing 'vm-isunavail' (language 'en')<br> -- <SIP/mrXXXX-08XXXX> Playing 'vm-intro' (language 'en')<br> -- <SIP/mrXXXX-08XXXX> Playing 'beep' (language 'en')<br>
-- Recording the message<br> -- x=0, open writing: /var/spool/asterisk/voicemail/default/101/tmp/0oxv2s format: wav49, 0x830d4a0<br> -- x=1, open writing: /var/spool/asterisk/voicemail/default/101/tmp/0oxv2s format: gsm, 0x83082c0<br>
-- x=2, open writing: /var/spool/asterisk/voicemail/default/101/tmp/0oxv2s format: wav, 0x82f0888<br> -- User hung up<br> == Spawn extension (voicepulse-in, 12222222, 5) exited non-zero on 'SIP/mrXXXX-08XXXX'<br>
zeus*CLI><br><br><br>Here is what I see in a text file in /var/spool/asterisk/voicemail/default/101/INBOX<br><br>;<br>; Message Information file<br>;<br>[message]<br>origmailbox=101<br>context=voicepulse-in<br>macrocontext=<br>
exten=12222222<br>priority=5<br>callerchan=SIP/mrXXXX-08XXXX<br>callerid="ATIVA DAVID " <3333333><br>origdate=Wed Jan 28 06:20:34 PM EST 2009<br>origtime=1233184834<br>category=<br>duration=6<br><br><br>Thank you. I really appreciate any help. </span><br clear="all">
<br><br><br>