<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 4:39 AM, Jonas Kellens <span dir="ltr"><<a href="mailto:jonas.kellens@telenet.be" target="_blank">jonas.kellens@telenet.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I am trying to create a dynamic call parking lot using
<a href="https://wiki.asterisk.org/wiki/display/AST/Application_Park" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Application_Park</a><br>
<br>
But this manual is not enough to fix my problem : Asterisk keeps
trying to park the call in the default parking lot :<br>
<br>
<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:5]
Set("SIP/testacc77000-00000002", "PARKINGDYNAMIC=parkinglot_test")
in new stack<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:6]
Set("SIP/testacc77000-00000002", "PARKINGEXTEN=3300") in new stack<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:7]
Set("SIP/testacc77000-00000002", "PARKINGDYNEXTEN=110") in new
stack<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:8]
Set("SIP/testacc77000-00000002", "PARKINGDYNPOS=111-120") in new
stack<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:9]
Set("SIP/testacc77000-00000002",
"PARKINGDYNCONTEXT=contextfromtestpark") in new stack<br>
[Jul 2 11:32:14] -- Executing [3333@from-770000:10]
Park("SIP/testacc77000-00000002", "") in new stack<br>
[Jul 2 11:32:14] WARNING[28618]: features.c:1291
park_space_reserve: PARKINGEXTEN=3300 is not in default (701-750).<br>
[Jul 2 11:32:14] -- <SIP/testacc77000-00000002> Playing
'pbx-parkingfailed.alaw' (language 'nl')<br>
<br>
<br>
I have the following in features.conf :<br>
<br>
[parkinglot_test]<br>
context => testparkinglot<br>
findslot => next<br></font></div></blockquote><div><br></div><div>This parking lot is invalid because it does not have any defined parking spaces. As<br>a result it does not exist. Check you log for error messages when Asterisk loaded.<br>
Alternately, you can issue the CLI "module reload features" command and see the errors.<br><br></div><div>Only the default parking lot has default parking spaces defined. All other parking lots<br>configured in features.conf must specify the parking spaces.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><font face="Helvetica, Arial, sans-serif">
<br>
<br>
I read that </font><font face="Helvetica, Arial, sans-serif">[parkinglot_test]
will be used as a template to create the dynamic call park. So all
necessary parameters are given inside the dialplan (</font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif">PARKINGDYNAMIC, </font></font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">PARKINGEXTEN,
</font></font></font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial, sans-serif">PARKINGDYNEXTEN, </font></font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">PARKINGDYNPOS,
</font></font></font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><font face="Helvetica, Arial, sans-serif">PARKINGDYNCONTEXT</font></font></font>).<br>
<br>
<br>
So why does Asterisk always uses the default ? I clearly create
the dynamic call park inside the dialplan.<br></font></div></blockquote><div><br></div><div>{quote}<br></div><div>If you set the <code>PARKINGDYNAMIC</code> variable and this parking lot
exists then it will be used as<br>a template for the newly created dynamic
lot. Otherwise, the default parking lot will be used.<br><div>{quote}<br><br></div><div>Since parkinglot_test does not exist due to a configuration error, the default parking lot is used.<br></div><br></div></div>Richard<br>
</div></div>