Making the 1st call and park to slot 705 by attended transfer from sip phone: devel*CLI> -- Executing [111@xyz:1] Set("SIP/12128121207010001-081e5078", "TIMEOUT(absolute)=10800") in new stack -- Channel will hangup at 2007-05-16 19:11:01 UTC. -- Executing [111@xyz:2] AGI("SIP/12128121207010001-081e5078", "callprocessing.agi") in new stack -- Launched AGI Script /usr/local/asterisk/var/lib/asterisk/agi-bin/callprocessing.agi -- AGI Script Executing Application: (SetCallerPres) Options: (allowed_passed_screen) -- AGI Script Executing Application: (Set) Options: (CALLERID(name)=xyz main|CALLERID(num)=100) -- AGI Script Executing Application: (Dial) Options: (SIP/xyz011101|15|) -- Called xyz011101 -- SIP/xyz011101-081cf3e8 is ringing -- SIP/xyz011101-081cf3e8 answered SIP/12128121207010001-081e5078 -- Packet2Packet bridging SIP/12128121207010001-081e5078 and SIP/xyz011101-081cf3e8 -- Started music on hold, class 'xyz', on channel 'SIP/12128121207010001-081e5078' -- Executing [*33@xyz:1] Set("SIP/xyz011101-081e0240", "PARKINGEXTEN=705") in new stack -- Executing [*33@xyz:2] Park("SIP/xyz011101-081e0240", "") in new stack == Parked SIP/xyz011101-081e0240 on 705@parkedcalls. Will timeout back to extension [xyz] s, 1 in 600 seconds -- Added extension '705' priority 1 to parkedcalls -- Playing 'digits/7' (language 'en') -- Playing 'digits/0' (language 'en') -- Playing 'digits/5' (language 'en') -- Started music on hold, class 'default', on channel 'SIP/xyz011101-081e0240' == Spawn extension (xyz, s, 1) exited KEEPALIVE on 'SIP/xyz011101-081e0240' -- Stopped music on hold on SIP/xyz011101-081e0240 -- Stopped music on hold on SIP/12128121207010001-081e5078 -- Packet2Packet bridging SIP/12128121207010001-081e5078 and SIP/xyz011101-081cf3e8 -- Packet2Packet bridging SIP/12128121207010001-081e5078 and SIP/xyz011101-081cf3e8 ... several thousand of these lines. something's wrong with SIP -- Packet2Packet bridging SIP/12128121207010001-081e5078 and SIP/xyz011101-081cf3e8 -- Packet2Packet bridging SIP/12128121207010001-081e5078 and SIP/xyz011101-081cf3e8 [May 16 12:11:19] ERROR[6859]: chan_sip.c:14964 sipsock_read: We could NOT get the channel lock for SIP/xyz011101-081cf3e8! [May 16 12:11:21] ERROR[6859]: chan_sip.c:14965 sipsock_read: SIP transaction failed: 08a100a67a1461800023f88f5d3ac9b5@66.114.80.26 -- Started music on hold, class 'default', on channel 'SIP/12128121207010001-081e5078' == Spawn extension (xyz, 111, 2) exited non-zero on 'SIP/xyz011101-081e0240' devel*CLI> devel*CLI> show parkedcalls Num Channel (Context Extension Pri ) Timeout 705 SIP/12128121207010001-081e5078 (xyz s 1 ) 480s 1 parked call. devel*CLI> core show channels Channel Location State Application(Data) SIP/1212812120701000 s@xyz:1 Up (None) 1 active channel 0 active calls devel*CLI> dialplan show parkedcalls [ Context 'parkedcalls' created by 'res_features' ] '700' => 1. Park((null)) [res_features] '705' => 1. ParkedCall(705) [res_features] -= 2 extensions (2 priorities) in 1 context. =- Except the SIP problems everything's fine so far. Making the 2nd call and attempting to park it slot 705 by blind transfer: -- Executing [12128121207@pbxes:1] Set("SIP/pbxtest-081da480", "TIMEOUT(absolute)=10800") in new stack -- Channel will hangup at 2007-05-16 19:14:46 UTC. -- Executing [12128121207@pbxes:2] AGI("SIP/pbxtest-081da480", "callprocessing.agi") in new stack -- Launched AGI Script /usr/local/asterisk/var/lib/asterisk/agi-bin/callprocessing.agi -- AGI Script Executing Application: (Set) Options: (CALLERID(name)=XYZ|CALLERID(num)=2128682366) -- AGI Script Executing Application: (Dial) Options: (SIP/poly176_1&SIP/xyz011101&SIP/12128121207010001|15|) -- Called poly176_1 -- Called xyz011101 -- Called 12128121207010001 -- SIP/xyz011101-081e6b38 is ringing -- SIP/poly176_1-081dc160 is ringing -- SIP/12128121207010001-081eaaa0 is ringing -- SIP/xyz011101-081e6b38 answered SIP/pbxtest-081da480 -- Started music on hold, class 'xyz', on channel 'SIP/pbxtest-081da480' -- Executing [*33@xyz:1] Set("SIP/xyz011101-0820e220", "PARKINGEXTEN=705") in new stack -- Executing [*33@xyz:2] Park("SIP/xyz011101-0820e220", "") in new stack [May 16 12:14:57] WARNING[6978]: res_features.c:330 ast_park_call: Requested parking extension already exists: 705@parkedcalls == Spawn extension (xyz, s, 1) exited KEEPALIVE on 'SIP/xyz011101-0820e220' -- Stopped music on hold on SIP/pbxtest-081da480 -- AGI Script callprocessing.agi completed, returning 0 -- Executing [12128121207@pbxes:3] Hangup("SIP/pbxtest-081da480", "") in new stack == Spawn extension (pbxes, 12128121207, 3) exited non-zero on 'SIP/pbxtest-081da480' devel*CLI> devel*CLI> show parkedcalls Num Channel (Context Extension Pri ) Timeout 705 SIP/12128121207010001-081e5078 (xyz s 1 ) 346s 1 parked call. devel*CLI> core show channels Channel Location State Application(Data) SIP/xyz011101-0820e2 s@xyz:1 Up (None) SIP/pbxtest-081da480 12128121207@pbxes:3 Up (None) SIP/1212812120701000 s@xyz:1 Up (None) 3 active channels 0 active calls devel*CLI> dialplan show parkedcalls [ Context 'parkedcalls' created by 'res_features' ] '700' => 1. Park((null)) [res_features] '705' => 1. ParkedCall(705) [res_features] -= 2 extensions (2 priorities) in 1 context. =- As you can see parked call 705 has not disappeared from 'show parkedcalls'. It's good, but there's a stalled channel SIP/xyz011101-0820e2 which was hung up after transfer. Also SIP/pbxtest-081da480 is left alive with no ability pick it up. Now I hang up the 2nd call originator (SIP/pbxtest-081da480): devel*CLI> core show channels Channel Location State Application(Data) SIP/xyz011101-0820e2 s@xyz:1 Up (None) SIP/pbxtest-081da480 12128121207@pbxes:3 Up (None) SIP/1212812120701000 s@xyz:1 Up (None) 3 active channels 0 active calls No reaction. Both stalled channels are still there. The 1st call can be picked up fine though: devel*CLI> -- Executing [*33705@xyz:1] ParkedCall("SIP/xyz011101-081dbd58", "705") in new stack -- Stopped music on hold on SIP/12128121207010001-081e5078 -- Channel SIP/xyz011101-081dbd58 connected to parked call 705 == Spawn extension (xyz, *33705, 1) exited non-zero on 'SIP/xyz011101-081dbd58' devel*CLI> core show channels Channel Location State Application(Data) SIP/xyz011101-0820e2 s@xyz:1 Up (None) SIP/pbxtest-081da480 12128121207@pbxes:3 Up (None) 2 active channels 0 active calls So after this attempt we have 2 stalled channels that can be hung up only by asterisk restart. Also again it would really nice to somehow indicate to the one doing parking that parking failed instead of just live caller alive in dead silence