<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I know now after some testing that there is no dynamic call
parking. Also explains why you find no example when searching the
internet : no one has a working example.<br>
<br>
I have now the following working case :<br>
<br>
features.conf :<br>
<br>
[general]<br>
parkeddynamic = yes<br>
<br>
[parkinglot_770000]<br>
findslot => first<br>
<br>
<br>
dialplan :<br>
<br>
[Jul 3 13:47:50] -- Executing [891@from-770000:4]
NoOp("SIP/SipT01-00000000", "") in new stack<br>
[Jul 3 13:47:50] -- Executing [891@from-770000:5]
Set("SIP/SipT01-00000000", "PARKINGDYNEXTEN=891") in new stack<br>
[Jul 3 13:47:50] -- Executing [891@from-770000:6]
Set("SIP/SipT01-00000000", "PARKINGDYNPOS=890-891") in new stack<br>
[Jul 3 13:47:50] -- Executing [891@from-770000:7]
Set("SIP/SipT01-00000000", "PARKINGDYNCONTEXT=parked_770000") in
new stack<br>
[Jul 3 13:47:50] -- Executing [891@from-770000:8]
Park("SIP/SipT01-00000000", "40000,,,,,parkinglot_770000") in new
stack<br>
[Jul 3 13:47:50] -- Registered extension context
'parked_770000'; registrar: features<br>
[Jul 3 13:47:50] -- Added extension '891' priority 1 to
parked_770000<br>
[Jul 3 13:47:50] -- Added extension '890' priority -1 to
parked_770000<br>
[Jul 3 13:47:50] -- Added extension '891' priority -1 to
parked_770000<br>
[Jul 3 13:47:50] == Parked SIP/SipT01-00000000 on 890 (lot
parkinglot_770000). Will timeout back to extension [from-770000]
s, 1 in 40 seconds<br>
[Jul 3 13:47:50] -- Added extension '890' priority 1 to
parked_770000<br>
<br>
<br>
Remarks :<br>
<br>
The park position (890) is not announced, so you have no idea.<br>
<br>
PARKINGDYNEXTEN does nothing, could not find out what it is for.<br>
PARKINGDYNPOS creates parking positions, but if you change this in
the dialplan, there is no dynamical change in the parkinglot. You
need to restart Asterisk for changes to take effect.<br>
PARKINGDYNCONTEXT dynamically creates a context for hints, but
don't understand fully what else it is for.<br>
<br>
The function Park() when using it without extra parameters always
seems to park in the default (defining PARKINGDYNAMIC,
PARKINGEXTEN, PARKINGDYNEXTEN, PARKINGDYNPOS, PARKINGDYNCONTEXT
changes nothing)<br>
<br>
When you use the function Park() with the parking lot parameter
(here : parkinglot_770000) then this context for parking calls is
used ! So this works (as you can see in the dialplan)<br>
<br>
For every change you make in the dialplan (say you change </font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif">PARKINGDYNCONTEXT=parked_707070)</font> , you need
to restart Asterisk to take effect. Unless you restart Asterisk,
calls stay in the context </font><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">parked_707070. A simple 'reload'</font></font>
makes no changes. Nothing dynamic here.<br>
<br>
<br>
Hints : <br>
<br>
Hints are automatically created if you use 'parkinghints = yes'
but you need to issue a 'dialplan reload' AFTER the first call is
parked because before a call has been parked, the context is not
created inside the dialplan.<br>
So if you include for example the context [parked_770000] you will
get an error when you issue a 'dialplan reload'' because you try
to include a context that does not exist (it will exist once you
have at least parked 1 call)<br>
<br>
<br>
<br>
My conclusion : Call Parking still remains very static. Creating
call parking inside the dialplan is not possible, you still need
to use features.conf and restart Asterisk after every change.<br>
<br>
<br>
<br>
Kind regards,<br>
Jonas.<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 03-07-14 03:05, Richard Mudgett
wrote:<br>
</div>
<blockquote
cite="mid:CALD46g2SGwyT_GwvED7qfD3YjZXeapVGGRZPcEudzjDXAToVMg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>