hello <br><br><br>This is my first post and i don&#39;t know where to ask question. Please answer my question.<br><br>Q. How we can make call parking multitenant for sccp line defined in sccp.conf.   <br><br>I have done that for SIP extensions and it is working fine.<br>

<br>Please help me.<br><br>Sachin<br><br><br><br><br><br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 8:39 PM, Tilghman Lesher <span dir="ltr">&lt;<a href="mailto:reviewboard@asterisk.org">reviewboard@asterisk.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



 <div>
  <div style="font-family:Verdana, Arial, Helvetica, Sans-Serif">
   <table style="border:1px #c9c399 solid" bgcolor="#f9f3c9" cellpadding="8" width="100%">
    <tbody><tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/1310/" target="_blank">https://reviewboard.asterisk.org/r/1310/</a>
     </td>
    </tr>
   </tbody></table>
   <br>








<blockquote style="margin-left:1em;border-left:2px solid #d0d0d0;padding-left:10px">
 <p style="margin-top:0">On July 6th, 2011, 8:35 a.m., <b>irroot</b> wrote:</p>
 <blockquote style="margin-left:1em;border-left:2px solid #d0d0d0;padding-left:10px">
  



<table style="border:1px solid #C0C0C0;border-collapse:collapse" bgcolor="white" border="0" width="100%">
 <thead>
  <tr>
   <th colspan="4" style="border-bottom:1px solid #C0C0C0;font-size:9pt;padding:4px 8px;text-align:left" bgcolor="#F0F0F0">
    <a href="https://reviewboard.asterisk.org/r/1310/diff/2/?file=17377#file17377line12" style="color:black;font-weight:bold;text-decoration:underline" target="_blank">/branches/1.8/CHANGES</a>
    <span style="font-weight:normal">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color:#e4d9cb;padding:4px 8px;text-align:center">
  <tr>

   <td colspan="4"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>

  </tr>
 </tbody>






 
 

 <tbody>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">12</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">--- Functionality changes from Asterisk 1.6.2 to Asterisk 1.8 ----------------</pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">12</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">--- Functionality changes from Asterisk 1.6.2 to Asterisk 1.8 ----------------</pre></td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">13</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">------------------------------------------------------------------------------</pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">13</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">------------------------------------------------------------------------------</pre></td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">14</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">14</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">15</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">SIP Changes</pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">15</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">SIP Changes</pre></td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">16</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">-----------</pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">16</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">-----------</pre></td>
  </tr>

 </tbody>



 
 



 <tbody>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2">17</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"> * Added extra argument to app_originate to set timeout</pre></td>
  </tr>

 </tbody>





 
 

 <tbody>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">17</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"> * Added preferred_codec_only option in sip.conf. This feature limits the joint</pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#f0f0f0"><font size="2">18</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"> * Added preferred_codec_only option in sip.conf. This feature limits the joint</pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">This should be under applications for 1.8 -&gt; 1.10 :P made the same mistake recently</pre>


 </blockquote>





</blockquote>
<pre style="margin-left:1em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">More correctly, the patch should be against trunk, not against the 1.8 branch.</pre>


<br>

<blockquote style="margin-left:1em;border-left:2px solid #d0d0d0;padding-left:10px">
 <p style="margin-top:0">On July 6th, 2011, 8:35 a.m., <b>irroot</b> wrote:</p>
 <blockquote style="margin-left:1em;border-left:2px solid #d0d0d0;padding-left:10px">
  



<table style="border:1px solid #C0C0C0;border-collapse:collapse" bgcolor="white" border="0" width="100%">
 <thead>
  <tr>
   <th colspan="4" style="border-bottom:1px solid #C0C0C0;font-size:9pt;padding:4px 8px;text-align:left" bgcolor="#F0F0F0">
    <a href="https://reviewboard.asterisk.org/r/1310/diff/2/?file=17378#file17378line128" style="color:black;font-weight:bold;text-decoration:underline" target="_blank">/branches/1.8/apps/app_originate.c</a>
    <span style="font-weight:normal">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color:#e4d9cb;padding:4px 8px;text-align:center">
  <tr>

   <td colspan="4"><pre style="font-size:8pt;line-height:140%;margin:0">static int originate_exec(struct ast_channel *chan, const char *data)</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2">128</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">        <span>if</span> <span>(</span><span>!</span><span>ast_strlen_zero</span><span>(</span><span>args</span><span>.</span><span>timeout</span><span>)</span> <span>&amp;&amp;</span> <span>args</span><span>.</span><span>timeout</span> <span>&gt;</span> <span>0</span><span>)</span> <span>{</span></pre>

</td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2">129</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">                <span>timeout</span> <span>=</span> <span>atoi</span><span>(</span><span>args</span><span>.</span><span>timeout</span><span>);</span></pre>

</td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2">130</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">                <span>ast_log</span><span>(</span><span>LOG_NOTICE</span><span>,</span> <span>&quot;Timeout set to %d seconds.</span><span>\n</span><span>&quot;</span><span>,</span> <span>timeout</span><span>);</span></pre>

</td>
  </tr>

  <tr>
    <th style="border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></pre></td>
    <th style="border-left:1px solid #C0C0C0;border-right:1px solid #C0C0C0" align="right" bgcolor="#b1ebb0"><font size="2">131</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0">        <span>}</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">perhaps a else if (...strlen_z...(...timeout)) and throw a warning if someone puts a invalid timeout ie alpha or neg

rather use a debug or leave out the timeout set to mesasage</pre>
 </blockquote>





</blockquote>
<pre style="margin-left:1em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">Please use sscanf to convert the argument to an integer.  This function can detect errors, whereas atoi() simply returns 0.  Additionally, the timeout should be limited to a positive non-zero value (or 0 switches to the 30 second default).</pre>


<br>




<p>- Tilghman</p>


<br>
<p>On July 6th, 2011, 8:31 a.m., jacco wrote:</p>






<table style="background-repeat:repeat-x;border:1px black solid" bgcolor="#fefadf" cellpadding="8" cellspacing="0" width="100%">
 <tbody><tr>
  <td>

<div>Review request for Asterisk Developers and irroot.</div>
<div>By jacco.</div>


<p style="color:grey"><i>Updated July 6, 2011, 8:31 a.m.</i></p>




<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Description </h1>
<table style="border:1px solid #b8b5a0" bgcolor="#ffffff" cellpadding="10" cellspacing="0" width="100%">
 <tbody><tr>
  <td>
   <pre style="margin:0;padding:0;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">adds a timeout argument to app_originate

This application originates an outbound call and connects it to a specified
extension or application.  This application will block until the outgoing
call fails or gets answered.  At that point, this application will exit with
the status variable set and dialplan processing will continue.
This application sets the following channel variable before exiting:
${ORIGINATE_STATUS}: This indicates the result of the call origination.
    FAILED
    SUCCESS
    BUSY
    CONGESTION
    HANGUP
    RINGING
    UNKNOWN: In practice, you should never see this value.  Please report
    it to the issue tracker if you ever see it.

[Syntax]
Originate(tech_data,type,arg1[,arg2[,arg3[,timeout]]])

[Arguments]
tech_data
    Channel technology and data for creating the outbound channel.
    For example, SIP/1234.
type
    This should be &#39;app&#39; or &#39;exten&#39;, depending on whether the outbound
    channel should be connected to an application or extension.
arg1
    If the type is &#39;app&#39;, then this is the application name.  If the
    type is &#39;exten&#39;, then this is the context that the channel will be sent
    to.
arg2
    If the type is &#39;app&#39;, then this is the data passed as arguments to
    the application.  If the type is &#39;exten&#39;, then this is the extension that
    the channel will be sent to.
arg3
    If the type is &#39;exten&#39;, then this is the priority that the channel
    is sent to.  If the type is &#39;app&#39;, then this parameter is ignored.
timeout
    Timeout in seconds. Default is 30 seconds.</pre>
  </td>
 </tr>
</tbody></table>





<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Diffs </h1>
<ul style="margin-left:3em;padding-left:0">

 <li>/branches/1.8/CHANGES <span style="color:grey">(326468)</span></li>

 <li>/branches/1.8/apps/app_originate.c <span style="color:grey">(326468)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/1310/diff/" style="margin-left:3em" target="_blank">View Diff</a></p>




  </td>
 </tr>
</tbody></table>








  </div>
 </div>


<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>