<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok Danny but with this example I have 2 calls in the called phone, and
this is what I have to avoid!<br>
<br>
Regards,<br>
Matteo<br>
<br>
Il 10/06/2010 15.16, Danny Nicholas ha scritto:
<blockquote cite="mid:201006101308.o5AD8312010321@mail.debsinc.com"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1169953077;
        mso-list-template-ids:-47827912;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Here is one
way to do it (works in
1.4.22-1.4.30 at least)<o:p></o:p></span></font></p>
<div
style="border: 1pt dashed rgb(47, 111, 171); padding: 12pt; background: rgb(249, 249, 249) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">exten => s,n,Dial(SIP/XXXX,10)<o:p></o:p></span></font></pre>
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">exten => s,n,Dial(SIP/XXXX,90,m(default))<o:p></o:p></span></font></pre>
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">This snippet will ring XXXX for 10 seconds with Ringing, then ring XXXX for 90 seconds or until answered with MOH.<o:p></o:p></span></font></pre>
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
</div>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
size="3" color="black" face="Times New Roman"><span
style="font-size: 12pt; color: windowtext;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font size="2" color="black" face="Tahoma"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
size="2" color="black" face="Tahoma"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] <b><span
style="font-weight: bold;">On Behalf Of </span></b>Matteo Campana<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, June
10, 2010 8:03
AM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:personname
w:st="on">Asterisk Users Mailing List - Non-Commercial Discussion</st1:personname><br>
<b><span style="font-weight: bold;">Subject:</span></b>
[asterisk-users] Ring +
Music on Hold in the same call</span></font><font color="black"><span
style="color: windowtext;"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">Hi list,<br>
is there a way to achieve in asterisk (version 1.4.x) the behavior
described
below?<o:p></o:p></span></font></p>
<ul type="disc">
<li class="MsoNormal" style=""><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">a caller place a
call to an extension, and I want the caller hears the extension ringing
for some seconds, and then hears the music on hold (or a courtesy
message) <u>in the same call;</u><o:p></o:p></span></font></li>
<li class="MsoNormal" style=""><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">the called
extension must continue to ring until answered.<o:p></o:p></span></font></li>
</ul>
<p class="MsoNormal" style="line-height: 14.25pt;"><font size="3"
color="black" face="Times New Roman"><span style="font-size: 12pt;">With
the m(...) option in
the Dial command (like the example below) asterisk provides only music
on hold
while the phone rings.<br>
<br>
</span></font><span class="apple-style-span"><font size="2"
face="Arial"><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></font></span></p>
<span style="orphans: 2; widows: 2; word-spacing: 0px;">
<div
style="border: 1pt dashed rgb(47, 111, 171); padding: 12pt; background: rgb(249, 249, 249) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<pre
style="border: medium none ; padding: 0in; background: rgb(249, 249, 249) none repeat scroll 0% 0%; line-height: 13.2pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><font
size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">exten => s,n,Dial(SIP/XXXX,30,m(default))<o:p></o:p></span></font></pre>
</div>
</span>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">I can not use
queues because the requirements is to
have 1 call and not a lot of calls.<br>
<br>
<br>
Thanks in advance,<br>
Matteo<o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
</div>
</div>
</o:smarttagtype></blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.1 (Win32)">
<meta name="AUTHOR" content="Alberto Vinci">
<meta name="CREATED" content="20091103;16310000">
<meta name="CHANGEDBY" content="Alberto Vinci">
<meta name="CHANGED" content="20091103;16320000">
<style type="text/css">
        <!--
                @page { margin-left: 2cm; margin-right: 2cm; margin-top: 2.5cm; margin-bottom: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 2; orphans: 2 }
                P.western { font-family: "Times New Roman", serif; font-size: 12pt; so-language: it-IT }
                P.cjk { font-family: "Calibri", sans-serif; font-size: 12pt }
                P.ctl { font-family: "Times New Roman", serif; font-size: 12pt; so-language: ar-SA }
                A:link { color: #0000ff }
        -->
        </style>
<p class="western" style="margin-bottom: 0cm;"><img
src="cid:part1.08080406.00000706@klarya.it" name="Immagine 4"
align="BOTTOM" border="0" height="18" width="255"><font
face="Verdana, sans-serif"><font size="2"><span lang="en-US"><br>
</span></font></font><font color="#589e48"><font
face="Arial, sans-serif"><font size="2"><span lang="en-US"><b>Ing.
Matteo Campana - </b></span></font></font></font><font color="#589e48"><font
face="Arial, sans-serif"><font style="font-size: 8pt;" size="1"><span
lang="en-US"><i>System Engineer</i></span></font></font></font></p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><font
color="#1f497d"><font face="Arial, sans-serif"><font
style="font-size: 9pt;" size="2"><i>Mobile:
+39 320 4258536<br>
Office: +39 059 821672 <br>
Fax: +39 059
821492</i></font></font></font></p>
<p class="western" style="margin-bottom: 0cm;"><font color="#1f497d"><font
face="Arial, sans-serif"><font style="font-size: 9pt;" size="2"><span
lang="en-US"><i>Web</i></span></font></font></font><font
color="#92d050"><font face="Arial, sans-serif"><font
style="font-size: 9pt;" size="2"><span lang="en-US"><i>:
</i></span></font></font></font><font color="#0000ff"><u><a
href="http://www.klarya.it/"><font color="#92d050"><font
face="Arial, sans-serif"><font style="font-size: 9pt;" size="2"><span
lang="en-US"><i>www.klarya.it</i></span></font></font></font></a></u></font><font
color="#1f497d"><font face="Arial, sans-serif"><font
style="font-size: 9pt;" size="2"><span lang="en-US"><i>
<br>
</i></span></font></font></font><font color="#000099"><font
face="Verdana, sans-serif"><font style="font-size: 7pt;" size="1"><span
lang=""><b><img src="cid:part2.08050405.08020506@klarya.it"
name="Immagine 5" align="BOTTOM" border="0" height="61" width="170"></b></span></font></font></font><font
color="#000099"><font face="Verdana, sans-serif"><font
style="font-size: 7pt;" size="1"><span lang="en-US"><b><br>
</b></span></font></font></font><font color="#000099"><font
face="Verdana, sans-serif"><font style="font-size: 7pt;" size="1"><span
lang=""><b><img src="cid:part1.08080406.00000706@klarya.it"
name="Immagine 6" align="BOTTOM" border="0" height="18" width="255"></b></span></font></font></font><font
color="#000099"><font face="Verdana, sans-serif"><font
style="font-size: 7pt;" size="1"><span lang="en-US"><b><br>
</b></span></font></font></font><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><font
color="#76923c"><font face="Arial, sans-serif"><font
style="font-size: 8pt;" size="1">This
e-mail transmission may contain legally privileged and/or
confidential information. Please do not read it if you are not the
intended recipient(s). Any use, distribution, reproduction or
disclosure by any other person is strictly prohibited. If you have
received this e-mail in error, please notify the sender and destroy the
original transmission</font></font></font><font color="#76923c"><font
face="Arial, sans-serif"><font style="font-size: 9pt;" size="2"><span
lang="en-US">.</span></font></font></font></p>
<p class="western" style="margin-bottom: 0cm;"><br>
</p>
</div>
</body>
</html>