Hey,<div>I have never worried about looking at the SIP re-invites or anything when we engage MoH() application in asterisk. You can do a quick test on your test machine for this.</div><div><br></div><div>Regards,</div><div>
Sammy<br><br><div class="gmail_quote">On Mon, Jan 16, 2012 at 2:57 PM, Johannes Zweng <span dir="ltr">&lt;<a href="mailto:john999888@zweng.at">john999888@zweng.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
Many thanks for this hint. I will try this! :-)<br>
<br>
A quick question: when doing this with &quot;MusicOnHold()&quot;: will the SIP<br>
server be aware that the call is placed onHold (i.e. will Asterisk<br>
send the mentioned re-INVITE)?<br>
<br>
The point is - if possible - we want the caller to hear the OnHold<br>
Music from the SIP server. If not we would have to copy the MoH to our<br>
Asterisk (and change it on our side too, when it changes at the<br>
SIP-server).<br>
<br>
<br>
Kind regards,<br>
John<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
2012/1/16 Sammy Govind &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; yes, please see MusicOnHold() Application. You can call this app in your dialplan. This however will use the default music class and the corresponding music files placed in the asterisk server. If you don&#39;t want to stream music from Asterisk server side, try creating a new MusiconHold Class without any proper directory. That way Asterisk would only complain that there is no file to be streamed.<br>

&gt;<br>
&gt; Regards,<br>
&gt; Sammy<br>
&gt;<br>
&gt; On Sat, Jan 14, 2012 at 6:25 AM, Johannes Zweng &lt;<a href="mailto:john999888@zweng.at">john999888@zweng.at</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi!<br>
&gt;&gt;<br>
&gt;&gt; Maybe I am missing something or am a little blind at the moment, but I didn&#39;t find out how asterisk can place a call on hold when acting as user agent client to another SIP server.<br>
&gt;&gt;<br>
&gt;&gt; Scenario:<br>
&gt;&gt; ----------<br>
&gt;&gt; Asterisk registers to another SIP server (provider) as user agent.<br>
&gt;&gt; An inbound call from this other SIP server comes in and arrives at asterisk.<br>
&gt;&gt; Asterisk performs some actions in the dialplan and should place the call on hold after some time, so that the caller only hears the on hold music from my provider (not streamed by my Asterisk).<br>
&gt;&gt;<br>
&gt;&gt; Technically speaking I want asterisk to send a re-INVITE message containing an updated SDP body with the attribute &quot;a=sendonly&quot; or &quot;a=inactive&quot; added so that the SIP server of my provider (where Asterisk is registered to as user) will recognize that the call should be placed on hold.<br>

&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; A good example of what I want to achieve is presented in Section 2.1 of RFC 5359 (Session Initiation Protocol Service Examples) (<a href="http://tools.ietf.org/html/rfc5359#section-2.1" target="_blank">http://tools.ietf.org/html/rfc5359#section-2.1</a>) where &quot;Bob&quot; would be my Asterisk (as UAC), &quot;Alice&quot; is the external caller and &quot;Proxy&quot; is the provider&#39;s SIP server.<br>

&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Question:<br>
&gt;&gt; ----------<br>
&gt;&gt; Is there any way to perform this from the dialplan or by means of the manager API? Is there an application like &quot;Hold&quot;?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Kind regards and greetings from Austria,<br>
&gt;&gt; John :-)<br>
&gt;&gt;<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>