<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>Hello!</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>just fyi. </FONT></DIV>
<DIV><FONT face=Arial>If anyone wants to use the same function - here is the 
solution I found: </FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Before calling the queue() </FONT></DIV>
<DIV><FONT face=Arial>do a queue_member_count and if &lt; 1 do not call the 
queue. </FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Works fine with dynamic members. </FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>if you use static members - I think there is no solution 
;-) </FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>best regards </FONT></DIV>
<DIV><FONT face=Arial>Martin </FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=martin.schrott@tsy.at href="mailto:martin.schrott@tsy.at">Martin 
  Schrott - thinking:systems</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=t.sawah@gmail.com 
  href="mailto:t.sawah@gmail.com">t.sawah@gmail.com</A> ; <A 
  title=asterisk-users@lists.digium.com 
  href="mailto:asterisk-users@lists.digium.com">Asterisk Users Mailing List - 
  Non-Commercial Discussion</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 01, 2008 6:18 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-users] queue 
  welcome message</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial>Hello Tarek, </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>thank you for your idea. But this only would work for 
  the first caller - when the moh starts. </FONT></DIV>
  <DIV><FONT face=Arial>all other callers go directly into moh on the position 
  where the first caller is in moh. </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>So this does not work. :-( </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Anyone an other idea? </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>thank you </FONT></DIV>
  <DIV><FONT face=Arial>Martin </FONT></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=tareksawah@hotmail.com href="mailto:tareksawah@hotmail.com">Tariq 
    ..</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A 
    title=asterisk-users@lists.digium.com 
    href="mailto:asterisk-users@lists.digium.com">Asterisk Users Mailing List - 
    Non-Commercial Discussion</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 30, 2008 5:13 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-users] queue 
    welcome message</DIV>
    <DIV><BR></DIV>the only suggestion i would have for you is to use a SINGLE 
    file for your MOH .. and you&nbsp;record the welcoming note in the begining 
    of the file.. so whenever a caller comes in .. they will hear the MOH .. 
    which has the welcoming note before the music starts... <BR>i know it's a 
    stupid trick but it does the work for your needs... <BR>Salam<BR>Tarek 
    Sawah<BR><BR><BR>
    <DIV>
    <P align=center>&nbsp;</P><A 
    href="http://www.tareksawah.com/"></A></DIV><BR><BR>
    <BLOCKQUOTE>
      <HR id=EC_stopSpelling>
      From: martin.schrott@tsy.at<BR>To: 
      asterisk-users@lists.digium.com<BR>Date: Mon, 30 Jun 2008 09:19:27 
      +0200<BR>Subject: [asterisk-users] queue welcome message<BR><BR>
      <META content="Microsoft SafeHTML" name=Generator>
      <STYLE>
</STYLE>

      <DIV><FONT face=Arial size=2>Hi all!</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>I would like to ask, how you realize the 
      following in a call queue: </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>When a caller gets into a queue how can I 
      play a welcome Message to this caller first, before he starts hearing the 
      music? </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>We now use a playback before the caller gets 
      into the queue. But when the queue is closed the caller heared already 
      that somebody will pick up soon, but then gets into voicemail - because 
      the queue has no members. </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>So it would be great to let the queue welcome 
      the caller at first and then start music. </FONT></DIV>
      <DIV><FONT face=Arial size=2>Is this possible? </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>specifiing&nbsp;a queue-youarenext does only 
      work when the caller is not the first in line. </FONT></DIV>
      <DIV><FONT face=Arial size=2>specifiing a periodic announce does play the 
      message after the periodic-announce-frequency has been over. </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>Is there also something else we can use? 
      </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>Thank you </FONT></DIV>
      <DIV><FONT face=Arial size=2>Martin </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BLOCKQUOTE><BR>
    <HR>
    Earn cashback on your purchases with Live Search - the search that pays you 
    back! <A 
    href="http://search.live.com/cashback/?&amp;pkw=form=MIJAAF/publ=HMTGL/crea=earncashback" 
    target=_new>Learn More</A> 
    <P>
    <HR>

    <P></P>_______________________________________________<BR>-- Bandwidth and 
    Colocation Provided by http://www.api-digital.com --<BR><BR>AstriCon 2008 - 
    September 22 - 25 Phoenix, Arizona<BR>Register Now: 
    http://www.astricon.net<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE 
    or update options visit:<BR>&nbsp;&nbsp; 
    http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>-- Bandwidth and 
  Colocation Provided by http://www.api-digital.com --<BR><BR>AstriCon 2008 - 
  September 22 - 25 Phoenix, Arizona<BR>Register Now: 
  http://www.astricon.net<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE 
  or update options visit:<BR>&nbsp;&nbsp; 
  http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>