[asterisk-users] Multiple parking lots use default park positions

John A. Sullivan III jsullivan at opensourcedevel.com
Sat Jun 27 00:50:01 CDT 2009


Hello, all.  I'm having a deeply frustrating time getting multiple
parking lots to work and am wondering what I am doing wrong. I am using
Asterisk 1.6.1.1.  I defined two separate parking lots in features.conf
as follows:

[parkinglot_a100] ; SSI
context => a100-parking
parkpos => 900-920
findslot => next

[parkinglot_a10] ; EBC
context => a10-parking
parkpos => 800-820
findslot => next

I then set the parkinglot parameters in sip.conf as follows:

[general]
context=incoming
tos_audio=0xb0
tos_sip=0xb0
disallow=all
allow=ulaw
allow=alaw
allow=speex
allow=gsm
canreinvite=nonat

[common](!)
type=friend
host=dynamic

[a10](!,common) ; EBC
context=a10
parkinglot=parkinglot_a10

[a10o](!,common) ; EBC - authorized for outbound calls
context=a10o

[jintrabartola](a10o)
callerid=Joe Intrabartola

[tkeeley](a10o)
callerid= Terry Keeley

[vdemarco](a10o)
callerid= Vinny De Marco


[a100](!,common) ; SSI
context=a100
parkinglot=parkinglot_a100

[jasiii](a100)
callerid=John A. Sullivan III

[gss](a100)
callerid=Graham Stoddart-Stones

I next included the parking contexts in extensions.conf as follows:

[a10] ; EBC
exten => 12,1,Dial(SIP/tkeeley)
;exten => 12,1,Macro(common,SIP/tkeeley)
;exten => 12,n,Macro(close)

exten => 13,1,Dial(SIP/jintrabartola)
;exten => 13,1,Macro(common,SIP/jintrabartola)
;exten => 13,n,Macro(close)

exten => 17,1,Dial(SIP/vdemarco)
;exten => 17,1,Macro(common,SIP/vdemarco)
;exten => 17,n,Macro(close)


include => e911
include => a10-parking
;include => parkedcalls

[a10o] ; EBC outbound authorized
include => a10
include => US-outbound

[a100] ; SSI
exten => 12,1,Macro(common,SIP/jasiii)
exten => 12,n,Macro(close)

exten => 13,1,Macro(common,SIP/gss)
exten => 13,n,Macro(close)

include => US-international
include => a100-parking

I've been testing by having extension 17 (Vinny) call extension 12
(Terry) who parks it so extension 13 (Joe) can pick up.

Vinny calls, Terry answers, places Vinny on hold (otherwise the parked
extension number is not heard on our Snom phones), dials 700, and is
told the parked extension is 701.  It should be 800.  The console also
clearly shows the call is parked in the default lot:

   -- SIP/tkeeley-13b75418 answered SIP/vdemarco-12fd7ee8
    -- Native bridging SIP/vdemarco-12fd7ee8 and SIP/tkeeley-13b75418
    -- Started music on hold, class 'default', on SIP/vdemarco-12fd7ee8
  == Using SIP RTP TOS bits 176
  == Using SIP RTP CoS mark 5
    -- Executing [700 at a10o:1] Park("SIP/tkeeley-13b86648", "") in new stack
  == Parked SIP/tkeeley-13b86648 on 701 (lot default). Will timeout back to extension [a10o] s, 1 in 45 seconds
    -- Added extension '701' priority 1 to parkedcalls (0x2aaaac167740)
    -- <SIP/tkeeley-13b86648> Playing 'digits/7.ulaw' (language 'en')
    -- <SIP/tkeeley-13b86648> Playing 'digits/0.ulaw' (language 'en')
    -- <SIP/tkeeley-13b86648> Playing 'digits/1.ulaw' (language 'en')
    -- Started music on hold, class 'default', on SIP/tkeeley-13b86648
  == Spawn extension (a10o, s, 1) exited non-zero on 'Parked/SIP/tkeeley-13b86648<ZOMBIE>'

The very strange thing is that it appears to be pulling the correct
context from extensions.conf.  If I comment out the include =>
a10-parking statement, Terry cannot access extension 700 to park the
call.  What have I missed?

I did see this issue -
https://issues.asterisk.org/print_bug_page.php?bug_id=14996 - with this
test:
exten => 5,1,Set(PARKINGEXTEN=803)
exten => 5,n,Set(PARKINGLOT=edvinapark)
exten => 5,n,Set(CHANNEL(parkinglot)=edvinapark)
exten => 5,n,Verbose(2,Parking lot is current set to ${CHANNEL(parkinglot)})
exten => 5,n,Park()

which works on my system (once we change the name of the parkinglot to
the parkinglot name rather than the context name) but we still get the
default handling.

We've tried simplifying out plans, commenting out the default parkpos,
changing the parkext, adding a parkext to the custom parking lots,
adding the parkinglot definition to individial SIP channels, turning on
hints, nothing seems to help.  What am I doing wrong? Thanks - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society




More information about the asterisk-users mailing list