<div>Asterisk Version: 1.8.1.1</div><div><br></div><div>Problem: Multiple Parking Lots</div><div><br></div><div>Issue: Not redirecting to the right parking lot. Always uses the first parking lot from "parkedcalls show" or "features show"</div>
<div><br></div><div>Asterisk Working Version: 1.6.1</div><div><br></div><div>Steps Taken:</div><div><br></div><div>In features.conf added:</div><div><br></div><div>[parkinglot_test]</div><div>context => parkedcalls-test</div>
<div>parkext => 700</div><div>parkpos => 701-710</div><div>parkingtime => 120</div><div>findslot => next</div><div><br></div><div><br></div><div>In extensions.include at the bottom of [local-extensions-test]:</div>
<div><br></div><div>exten => 701,hint,park:701@parkedcalls-test</div><div>exten => 702,hint,park:702@parkedcalls-test</div><div><br></div><div><br></div><div>In extensions.include in [from-inside-redir-test] and [from-inside-restricted-redir-test]:</div>
<div><br></div><div>include => parkedcalls-test</div><div><br></div><div><br></div><div>For each extension in sip.conf in [XXX-test]:</div><div><br></div><div>In between the existing 'vmexten' and 'secret' lines</div>
<div><br></div><div>parkinglot=parkinglot_test</div><div><br></div><div><br></div><div><br></div><div>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"</div>
<div><br></div><div>sip show peer 101-test</div><div>CODE: SELECT ALL</div><div>voice2*CLI> sip show peer 101-test</div><div><br></div><div><br></div><div> * Name : 101-test</div><div> Secret : <Set></div>
<div> MD5Secret : <Not set></div><div> Remote Secret: <Not set></div><div> Context : from-inside-test</div><div> Subscr.Cont. : local-extensions-test</div><div> Language : </div><div> AMA flags : Unknown</div>
<div> Transfer mode: open</div><div> CallingPres : Presentation Allowed, Not Screened</div><div> Callgroup : </div><div> Pickupgroup : </div><div> MOH Suggest : </div><div> Mailbox : 101@default-test</div>
<div> VM Extension : 101</div><div> LastMsgsSent : 32767/65535</div><div> Call limit : 99</div><div> Max forwards : 0</div><div> Dynamic : Yes</div><div> Callerid : "Test Tenant" <101></div>
<div> MaxCallBR : 384 kbps</div><div> Expire : 956</div><div> Insecure : no</div><div> Force rport : Yes</div><div> ACL : No</div><div> DirectMedACL : No</div><div> T.38 support : Yes</div><div>
T.38 EC mode : FEC</div><div> T.38 MaxDtgrm: -1</div><div> DirectMedia : No</div><div> PromiscRedir : No</div><div> User=Phone : No</div><div> Video Support: Yes</div><div> Text Support : No</div><div> Ign SDP ver : No</div>
<div> Trust RPID : No</div><div> Send RPID : No</div><div> Subscriptions: Yes</div><div> Overlap dial : Yes</div><div> DTMFmode : rfc2833</div><div> Timer T1 : 500</div><div> Timer B : 32000</div>
<div> ToHost : </div><div> Addr->IP : <a href="http://10.211.0.42:5060">10.211.0.42:5060</a></div><div> Defaddr->IP : (null)</div><div> Prim.Transp. : UDP</div><div> Allowed.Trsp : UDP</div><div> Def. Username: 101-test</div>
<div> SIP Options : 100rel gruu path replaces replace timer </div><div> Codecs : 0x106 (gsm|ulaw|g729)</div><div> Codec Order : (g729:20,ulaw:20,gsm:20)</div><div> Auto-Framing : No </div><div> 100 on REG : No</div>
<div> Status : OK (34 ms)</div><div> Useragent : Aastra 55i/2.6.0.1008</div><div> Reg. Contact : sip:101-test@10.211.0.42:5060;transport=udp</div><div> Qualify Freq : 60000 ms</div><div> Sess-Timers : Accept</div>
<div> Sess-Refresh : uas</div><div> Sess-Expires : 1800 secs</div><div> Min-Sess : 90 secs</div><div> RTP Engine : asterisk</div><div> Parkinglot : parkinglot_test</div><div> Use Reason : No</div><div> Encryption : No</div>
<div><br></div><div><br></div><div>sip show peer 102-test</div><div>CODE: SELECT ALL</div><div>voice2*CLI> sip show peer 102-test</div><div><br></div><div><br></div><div> * Name : 102-test</div><div> Secret : <Set></div>
<div> MD5Secret : <Not set></div><div> Remote Secret: <Not set></div><div> Context : from-inside-test</div><div> Subscr.Cont. : local-extensions-test</div><div> Language : </div><div> AMA flags : Unknown</div>
<div> Transfer mode: open</div><div> CallingPres : Presentation Allowed, Not Screened</div><div> Callgroup : </div><div> Pickupgroup : </div><div> MOH Suggest : </div><div> Mailbox : 102@default-test</div>
<div> VM Extension : 102</div><div> LastMsgsSent : 32767/65535</div><div> Call limit : 99</div><div> Max forwards : 0</div><div> Dynamic : Yes</div><div> Callerid : "Test Tenant" <102></div>
<div> MaxCallBR : 384 kbps</div><div> Expire : 2363</div><div> Insecure : no</div><div> Force rport : Yes</div><div> ACL : No</div><div> DirectMedACL : No</div><div> T.38 support : Yes</div><div>
T.38 EC mode : FEC</div><div> T.38 MaxDtgrm: -1</div><div> DirectMedia : No</div><div> PromiscRedir : No</div><div> User=Phone : No</div><div> Video Support: Yes</div><div> Text Support : No</div><div> Ign SDP ver : No</div>
<div> Trust RPID : No</div><div> Send RPID : No</div><div> Subscriptions: Yes</div><div> Overlap dial : Yes</div><div> DTMFmode : rfc2833</div><div> Timer T1 : 500</div><div> Timer B : 32000</div>
<div> ToHost : </div><div> Addr->IP : <a href="http://10.211.0.41:5060">10.211.0.41:5060</a></div><div> Defaddr->IP : (null)</div><div> Prim.Transp. : UDP</div><div> Allowed.Trsp : UDP</div><div> Def. Username: 102-test</div>
<div> SIP Options : (none)</div><div> Codecs : 0x106 (gsm|ulaw|g729)</div><div> Codec Order : (g729:20,ulaw:20,gsm:20)</div><div> Auto-Framing : No </div><div> 100 on REG : No</div><div> Status : OK (31 ms)</div>
<div> Useragent : Aastra 55i/2.6.0.1008</div><div> Reg. Contact : sip:102-test@10.211.0.41:5060;transport=udp</div><div> Qualify Freq : 60000 ms</div><div> Sess-Timers : Accept</div><div> Sess-Refresh : uas</div>
<div> Sess-Expires : 1800 secs</div><div> Min-Sess : 90 secs</div><div> RTP Engine : asterisk</div><div> Parkinglot : parkinglot_test</div><div> Use Reason : No</div><div> Encryption : No</div><div><br></div>
<div><br></div><div>File "debug.txt" shows that when a call is parked, it is NOT sending over to parkinglot_test, but parkinglot_fitts.</div><div><br></div><div>Debug.txt</div><div>CODE: SELECT ALL</div><div> == Using UDPTL CoS mark 5</div>
<div> == Using SIP RTP CoS mark 5</div><div> -- Called 101-test</div><div> == Extension Changed 101[local-extensions-test] new state Ringing for Notify User 102-test </div><div> -- SIP/101-test-00000035 is ringing</div>
<div> -- SIP/101-test-00000035 is ringing</div><div> == Extension Changed 101[local-extensions-test] new state InUse for Notify User 102-test </div><div> -- SIP/101-test-00000035 answered SIP/DASH_SIP_TRUNK_DENVER-00000033</div>
<div> -- Started music on hold, class 'default-test', on SIP/DASH_SIP_TRUNK_DENVER-00000033</div><div> == Extension Changed 101[local-extensions-test] new state Hold for Notify User 102-test </div><div> == Using UDPTL CoS mark 5</div>
<div> == Using SIP RTP CoS mark 5</div><div> -- Executing [700@from-inside-test:1] Macro("SIP/101-test-00000036", "tl-set-variables2,from-inside-redir-test,test") in new stack</div><div> -- Executing [s@macro-tl-set-variables2:1] Set("SIP/101-test-00000036", "__tenant=test") in new stack</div>
<div> -- Executing [s@macro-tl-set-variables2:2] Set("SIP/101-test-00000036", "CDR(userfield)=test") in new stack</div><div> -- Executing [s@macro-tl-set-variables2:3] Set("SIP/101-test-00000036", "__FROM_INSIDE=1") in new stack</div>
<div> -- Executing [s@macro-tl-set-variables2:4] Set("SIP/101-test-00000036", "__MOH=default-test") in new stack</div><div> -- Executing [s@macro-tl-set-variables2:5] GotoIf("SIP/101-test-00000036", "1 ?setmoh") in new stack</div>
<div> -- Goto (macro-tl-set-variables2,s,7)</div><div> -- Executing [s@macro-tl-set-variables2:7] Set("SIP/101-test-00000036", "CHANNEL(musicclass)=default-test") in new stack</div><div> -- Executing [s@macro-tl-set-variables2:8] Goto("SIP/101-test-00000036", "from-inside-redir-test,700,1") in new stack</div>
<div> -- Goto (from-inside-redir-test,700,1)</div><div> == Channel 'SIP/101-test-00000036' jumping out of macro 'tl-set-variables2'</div><div> -- Executing [700@from-inside-redir-test:1] Park("SIP/101-test-00000036", "") in new stack</div>
<div> == Parked SIP/101-test-00000036 on 701 (lot parkinglot_fitts). Will timeout back to extension [from-inside-redir-test] s, 1 in 120 seconds</div><div> -- Added extension '701' priority 1 to parkedcalls-fitts</div>
<div> -- <SIP/101-test-00000036> Playing 'digits/7.g729' (language 'en')</div><div> -- <SIP/101-test-00000036> Playing 'digits/0.g729' (language 'en')</div><div> -- <SIP/101-test-00000036> Playing 'digits/1.g729' (language 'en')</div>
<div> -- Started music on hold, class 'default-test', on SIP/101-test-00000036</div><div> == Spawn extension (from-inside-redir-test, s, 1) exited non-zero on 'Parked/SIP/101-test-00000036<ZOMBIE>'</div>
<div> -- Executing [h@from-inside-redir-test:1] Hangup("Parked/SIP/101-test-00000036<ZOMBIE>", "") in new stack</div><div> == Spawn extension (from-inside-redir-test, h, 1) exited non-zero on 'Parked/SIP/101-test-00000036<ZOMBIE>'</div>
<div><br></div><div><br></div><div>If deleting parkinglot_fitts, and parking a call again, it will redirect to parkinglot_coventry (the next from the top of the list on "parkedcalls show" or "features show").</div>
<div><br></div><div>parkedcalls show</div><div>CODE: SELECT ALL</div><div>voice2*CLI> parkedcalls show</div><div>Num Channel (Context Extension Pri ) Timeout </div><div>*** Parking lot: parkinglot_fitts (1)</div>
<div>701 SIP/101-test-00000036 (from-inside-redir-test s 1 ) 12s</div><div>*** Parking lot: parkinglot_coventry (1)</div><div>*** Parking lot: parkinglot_startthinking (0)</div><div>*** Parking lot: parkinglot_legasus (0)</div>
<div>*** Parking lot: parkinglot_serenity (0)</div><div>*** Parking lot: parkinglot_test (0)</div><div>*** Parking lot: parkinglot_thunder (0)</div><div>*** Parking lot: parkinglot_applianz (0)</div><div>*** Parking lot: parkinglot_armstrong (0)</div>
<div>*** Parking lot: parkinglot_tier2sales (0)</div><div>*** Parking lot: parkinglot_alarm (0)</div><div>*** Parking lot: default (0)</div><div>*** Parking lot: parkinglot_crussell (0)</div><div>*** Parking lot: parkinglot_liberty (0)</div>
<div>*** Parking lot: parkinglot_agape (0)</div><div>*** Parking lot: parkinglot_hubris (0)</div><div>*** Parking lot: parkinglot_mpm (0)</div><div>*** Parking lot: parkinglot_radioks (0)</div><div>---</div><div>1 parked call in total.</div>
<div><br></div><div><br></div><div>features show</div><div>CODE: SELECT ALL</div><div>voice2*CLI> features show</div><div>Builtin Feature Default Current</div><div>--------------- ------- -------</div>
<div>Pickup *8 ** </div><div>Blind Transfer # ## </div><div>Attended Transfer #* </div><div>One Touch Monitor #9 </div><div>Disconnect Call * #0 </div>
<div>Park Call </div><div>One Touch MixMonitor </div><div><br></div><div>Dynamic Feature Default Current</div><div>--------------- ------- -------</div>
<div>(none)</div><div><br></div><div>Feature Groups:</div><div>---------------</div><div>(none)</div><div><br></div><div>Call parking (Parking lot: parkinglot_fitts)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-fitts</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>
Call parking (Parking lot: parkinglot_coventry)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-coventry</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_startthinking)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-startthinking</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 90000</div><div>MusicOnHold class : </div><div><br></div><div><br>
</div><div>Call parking (Parking lot: parkinglot_legasus)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-legasus</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_serenity)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-serenity</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div>
<div>Call parking (Parking lot: parkinglot_test)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-test</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_thunder)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-thunder</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div>
<div>Call parking (Parking lot: parkinglot_applianz)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-applianz</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_armstrong)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-armstrong</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div>
<div>Call parking (Parking lot: parkinglot_tier2sales)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-tier2sales</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 180000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_alarm)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-alarm</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>
Call parking (Parking lot: default)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls</div><div>Parked call extensions: 701-704</div><div>Parkingtime : 180000</div>
<div>MusicOnHold class : default</div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_crussell)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-crussell</div>
<div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_liberty)</div><div>
------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-liberty</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div>
<div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_agape)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-agape</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_hubris)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-hubris</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div>
<div>Call parking (Parking lot: parkinglot_mpm)</div><div>------------</div><div>Parking extension : 700</div><div>Parking context : parkedcalls-mpm</div><div>Parked call extensions: 701-710</div>
<div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div><div>Call parking (Parking lot: parkinglot_radioks)</div><div>------------</div><div>Parking extension : 700</div>
<div>Parking context : parkedcalls-radioks</div><div>Parked call extensions: 701-710</div><div>Parkingtime : 120000</div><div>MusicOnHold class : </div><div><br></div><div><br></div>
<div>Not sure what is the parameter being used to defined what is the top of the list on "parkedcalls show" or "features show", however it's not working the way its supposed to.</div><div><br></div>
<div>Please let me know if there are any problems with my current config. Of course I did not put all the information on sip.conf file since it was too huge and had private information on it.</div><div><br></div><div>sip.conf</div>
<div>CODE: SELECT ALL</div><div>[general]</div><div>bindport=5060</div><div>port=5060 </div><div>bindaddr=0.0.0.0</div><div>disallow=all</div><div>allow=ulaw</div><div>allow=alaw</div><div>allow=gsm</div><div>callerid=unknown</div>
<div>context=from-outside ; Default context for incoming calls</div><div><br></div><div>allowsubscribe=yes</div><div>notifyhold=yes</div><div>notifyringing=yes</div><div>limitonpeer=yes</div><div>videosupport=yes</div>
<div>t38pt_udptl=yes ; Default false</div><div>alwaysauthreject=yes</div><div>progressinband=never</div><div><br></div><div>[101-test]</div><div>qualify=2000</div><div>nat=yes</div><div>callerid=Test Tenant <101></div>
<div>context=from-inside-test</div><div>call-limit=99</div><div>canreinvite=no</div><div>vmexten=101</div><div>parkinglot=parkinglot_test</div><div>secret=XXXXXXXXXX</div><div>host=dynamic</div><div>username=101-test</div>
<div>defaultuser=101-test</div><div>subscribecontext=local-extensions-test</div><div>dtmfmode=rfc2833</div><div>type=friend</div><div>mailbox=101@default-test</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div>
<div>allow=gsm</div><div><br></div><div>[102-test]</div><div>qualify=2000</div><div>nat=yes</div><div>callerid=Test Tenant <102></div><div>context=from-inside-test</div><div>call-limit=99</div><div>canreinvite=no</div>
<div>vmexten=102</div><div>parkinglot=parkinglot_test</div><div>secret=XXXXXXXXXX</div><div>host=dynamic</div><div>username=102-test</div><div>defaultuser=102-test</div><div>subscribecontext=local-extensions-test</div><div>
dtmfmode=rfc2833</div><div>type=friend</div><div>mailbox=102@default-test</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div><div>allow=gsm</div><div><br></div><div><br></div><div>Also, let me know if any other output file is needed and more testing will be done to solve this problem.</div>
<div><br></div><div>Any ideas or other hints on solving this is greatly appreciated.</div><div><br></div><div>Thank you,</div><div><br></div><div><br></div><div>PS: Have posted also this on the following forum:</div><div>
<a href="http://forums.digium.com/viewtopic.php?f=1&t=76529&sid=dc731d8832e381826ba8c5da6483bdd1">http://forums.digium.com/viewtopic.php?f=1&t=76529&sid=dc731d8832e381826ba8c5da6483bdd1</a></div><div><br>-- <br>
David Cabrejos<br>
</div>