Asterisk 1.8.1.1 Multiple Parking Lots

Home » Asterisk Users » Asterisk 1.8.1.1 Multiple Parking Lots
Asterisk Users No Comments

Asterisk Version: 1.8.1.1

Problem: Multiple Parking Lots

Issue: Not redirecting to the right parking lot. Always uses the first
parking lot from “parkedcalls show” or “features show”

Asterisk Working Version: 1.6.1

Steps Taken:

In features.conf added:

[parkinglot_test]
context => parkedcalls-test
parkext => 700
parkpos => 701-710
parkingtime => 120
findslot => next

In extensions.include at the bottom of [local-extensions-test]:

exten => 701,hint,park:701@parkedcalls-test
exten => 702,hint,park:702@parkedcalls-test

In extensions.include in [from-inside-redir-test] and
[from-inside-restricted-redir-test]:

include => parkedcalls-test

For each extension in sip.conf in [XXX-test]:

In between the existing ‘vmexten’ and ‘secret’ lines

parkinglot=parkinglot_test

Output from files “sip show peer 101-test.txt” and “sip show peer
102-test.txt” shows that parking lot is set to “parkinglot_test”

sip show peer 101-test
CODE: SELECT ALL
voice2*CLI> sip show peer 101-test

* Name : 101-test
Secret :
MD5Secret :
Remote Secret:
Context : from-inside-test
Subscr.Cont. : local-extensions-test
Language :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
MOH Suggest :
Mailbox : 101@default-test
VM Extension : 101
LastMsgsSent : 32767/65535
Call limit : 99
Max forwards : 0
Dynamic : Yes
Callerid : “Test Tenant” <101>
MaxCallBR : 384 kbps
Expire : 956
Insecure : no
Force rport : Yes
ACL : No
DirectMedACL : No
T.38 support : Yes
T.38 EC mode : FEC
T.38 MaxDtgrm: -1
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: Yes
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 10.211.0.42:5060
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 101-test
SIP Options : 100rel gruu path replaces replace timer
Codecs : 0x106 (gsm|ulaw|g729)
Codec Order : (g729:20,ulaw:20,gsm:20)
Auto-Framing : No
100 on REG : No
Status : OK (34 ms)
Useragent : Aastra 55i/2.6.0.1008
Reg. Contact : sip:101-test@10.211.0.42:5060;transport=udp
Qualify Freq : 60000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot : parkinglot_test
Use Reason : No
Encryption : No

sip show peer 102-test
CODE: SELECT ALL
voice2*CLI> sip show peer 102-test

* Name : 102-test
Secret :
MD5Secret :
Remote Secret:
Context : from-inside-test
Subscr.Cont. : local-extensions-test
Language :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
MOH Suggest :
Mailbox : 102@default-test
VM Extension : 102
LastMsgsSent : 32767/65535
Call limit : 99
Max forwards : 0
Dynamic : Yes
Callerid : “Test Tenant” <102>
MaxCallBR : 384 kbps
Expire : 2363
Insecure : no
Force rport : Yes
ACL : No
DirectMedACL : No
T.38 support : Yes
T.38 EC mode : FEC
T.38 MaxDtgrm: -1
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: Yes
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 10.211.0.41:5060
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 102-test
SIP Options : (none)
Codecs : 0x106 (gsm|ulaw|g729)
Codec Order : (g729:20,ulaw:20,gsm:20)
Auto-Framing : No
100 on REG : No
Status : OK (31 ms)
Useragent : Aastra 55i/2.6.0.1008
Reg. Contact : sip:102-test@10.211.0.41:5060;transport=udp
Qualify Freq : 60000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot : parkinglot_test
Use Reason : No
Encryption : No

File “debug.txt” shows that when a call is parked, it is NOT sending over to
parkinglot_test, but parkinglot_fitts.

Debug.txt
CODE: SELECT ALL
== Using UDPTL CoS mark 5
== Using SIP RTP CoS mark 5