<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Greetings,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have implemented the following command to allow
CNAM to be delivered to my users.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 9969,1,Wait(1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This works great!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However it has spawned a new problem. When
this is implemented into a full dial plan. If a user is set to DND or
sends a call to Voicemail by hitting deny the caller gets a busy. Below is
a result of the calls.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>With the Wait(1) statement</FONT></DIV>
<DIV><FONT face=Arial size=2>-- Executing Wait("Zap/1-1", "1") in new
stack<BR> -- Accepting call from '3169321000' to '9969' on
channel 0/1, span 1<BR> -- Executing Dial("Zap/1-1",
"SIP/9969|20") in new stack<BR> -- Called
9969<BR> -- Got SIP response 486 "Do Not Disturb" back
from 192.168.1.100<BR> -- SIP/9969-d492 is busy<BR>
== Everyone is busy/congested at this time<BR> -- Executing
Hangup("Zap/1-1", "") in new stack<BR> == Spawn extension (default, 9969,
103) exited non-zero on 'Zap/1-1'<BR> -- Hungup
'Zap/1-1'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Without the Wait(1) statement</FONT></DIV>
<DIV><FONT face=Arial size=2>-- Executing Dial("Zap/1-1", "SIP/9969|20") in new
stack<BR> -- Called 9969<BR> -- Accepting
call from '3169321000' to '9969' on channel 0/1, span 1<BR> --
Got SIP response 486 "Do Not Disturb" back
from 192.168.1.100<BR> -- SIP/9969-0c98 is busy<BR>
== Everyone is busy/congested at this time<BR> -- Executing
VoiceMail2("Zap/1-1", "b9969") in new stack<BR> -- Playing
'voicemail/default/9969/busy' (language 'en')<BR> -- Playing
'vm-intro' (language 'en')<BR> -- Channel 0/1, span 1 got
hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is the full dialplan for this extension
-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 9969,1,Wait(1)<BR>exten =>
9969,2,Dial(SIP/9969,20)<BR>exten =>
9969,3,Setvar(NewCaller=${CALLERIDNUM})<BR>exten =>
9969,4,SetCIDNum(${CALLERIDNUM})<BR>exten =>
9969,5,Dial(Zap/g1/13169321000,10,m)<BR>exten =>
9969,6,SetCIDNum(${NewCaller})<BR>exten => 9969,7,Voicemail2(u9969)<BR>exten
=> 9969,102,Voicemail2(b9969)<BR>exten => 9969,103,Hangup<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now the CNAM is very important and I would love for
this to work, so if anyone has suggestions, please help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Asterisk 1.0.5</FONT></DIV>
<DIV><FONT face=Arial size=2>Gentoo 2005.1</FONT></DIV>
<DIV><FONT face=Arial size=2>Quad-PRI card</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>