All pastes #23361 Raw Edit

Mine

public text v1 · immutable
#23361 ·published 2005-09-19 17:01 UTC
rendered paste body
asterisk*CLI> show channels
Channel              Location             State   Application(Data)
SIP/156-4f97         (None)               Up      Bridged Call(SIP/100-c774)
SIP/100-c774         156@test_sip:1       Up      Dial(SIP/156|20)
SIP/154-920e         (None)               Up      Bridged Call(IAX2/10.0.0.1:456
IAX2/10.0.0.1:4569-5 5145@test_sip:1      Up      Dial(SIP/154|20|t)
4 active channels
2 active calls
asterisk*CLI> show ch
channel       channels      channeltypes
asterisk*CLI> show channels
Channel              Location             State   Application(Data)
SIP/156-4f97         (None)               Up      Bridged Call(SIP/100-c774)
SIP/100-c774         156@test_sip:1       Up      Dial(SIP/156|20)
SIP/154-920e         (None)               Up      Bridged Call(IAX2/10.0.0.1:456
IAX2/10.0.0.1:4569-5 5145@test_sip:1      Up      Dial(SIP/154|20|t)
4 active channels
2 active calls
asterisk*CLI> changrab -bB SIP/156-4f97 SIP/154-920e
[Sep 19 12:59:25]     -- Stopped music on hold on SIP/156-4f97
[Sep 19 12:59:25]   == Spawn extension (test_sip, 156, 1) exited non-zero on 'ChanGrab/SIP/100-c774<ZOMBIE>'
[Sep 19 12:59:25]     -- Stopped music on hold on ChanGrab/IAX2/10.0.0.1:4569-5<ZOMBIE>
[Sep 19 12:59:25]   == Spawn extension (test_sip, 5145, 1) exited non-zero on 'ChanGrab/IAX2/10.0.0.1:4569-5<ZOMBIE>'
asterisk*CLI> show channels
Channel              Location             State   Application(Data)
IAX2/10.0.0.1:4569-5 s@default:1          Up      Redirected Call(SIP/100-c774)
SIP/100-c774         s@default:1          Up      Bridged Call(IAX2/10.0.0.1:456
2 active channels
0 active calls
asterisk*CLI>

The last 0 active calls should be 1, cause IAX2/10.0.0.1:4569-5 is now bridged with SIP/100-c774.