[asterisk-users] Dynamic Call parking

Richard Mudgett rmudgett at digium.com
Wed Jul 2 20:05:33 CDT 2014


On Wed, Jul 2, 2014 at 4:39 AM, Jonas Kellens <jonas.kellens at telenet.be>
wrote:

>  Hello,
>
> I am trying to create a dynamic call parking lot using
> https://wiki.asterisk.org/wiki/display/AST/Application_Park
>
> But this manual is not enough to fix my problem : Asterisk keeps trying to
> park the call in the default parking lot :
>
>
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:5]
> Set("SIP/testacc77000-00000002", "PARKINGDYNAMIC=parkinglot_test") in new
> stack
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:6]
> Set("SIP/testacc77000-00000002", "PARKINGEXTEN=3300") in new stack
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:7]
> Set("SIP/testacc77000-00000002", "PARKINGDYNEXTEN=110") in new stack
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:8]
> Set("SIP/testacc77000-00000002", "PARKINGDYNPOS=111-120") in new stack
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:9]
> Set("SIP/testacc77000-00000002", "PARKINGDYNCONTEXT=contextfromtestpark")
> in new stack
> [Jul  2 11:32:14]     -- Executing [3333 at from-770000:10]
> Park("SIP/testacc77000-00000002", "") in new stack
> [Jul  2 11:32:14] WARNING[28618]: features.c:1291 park_space_reserve:
> PARKINGEXTEN=3300 is not in default (701-750).
> [Jul  2 11:32:14]     -- <SIP/testacc77000-00000002> Playing
> 'pbx-parkingfailed.alaw' (language 'nl')
>
>
> I have the following in features.conf :
>
> [parkinglot_test]
> context => testparkinglot
> findslot => next
>

This parking lot is invalid because it does not have any defined parking
spaces.  As
a result it does not exist.  Check you log for error messages when Asterisk
loaded.
Alternately, you can issue the CLI "module reload features" command and see
the errors.

Only the default parking lot has default parking spaces defined.  All other
parking lots
configured in features.conf must specify the parking spaces.


>
>
> I read that [parkinglot_test] will be used as a template to create the
> dynamic call park. So all necessary parameters are given inside the
> dialplan (PARKINGDYNAMIC, PARKINGEXTEN, PARKINGDYNEXTEN, PARKINGDYNPOS,
> PARKINGDYNCONTEXT).
>
>
> So why does Asterisk always uses the default ? I clearly create the
> dynamic call park inside the dialplan.
>

{quote}
If you set the PARKINGDYNAMIC variable and this parking lot exists then it
will be used as
a template for the newly created dynamic lot. Otherwise, the default
parking lot will be used.
{quote}

Since parkinglot_test does not exist due to a configuration error, the
default parking lot is used.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140702/f631eddc/attachment.html>


More information about the asterisk-users mailing list