I am not a dialplan expert but I would like to be able to setup my dialplan to allow switching between the active call and the incoming call or held call with a keypad entry on the phone. After reading the dialplan examples in the wiki
http://wiki.e1550.mobi/doku.php?id=configuration it looks like the setup is going to be related to this section:
exten => s,n,GotoIf($["${CHANNEL(callstate)}" == "waiting"]?waiting-call)
; now we provide channel function argument callstate
; possible values
; active ; enjoy and speek
; held ; this call is held
; dialing ; for outgoing calls
; alerting ; for outgoing calls, number dialed and called party ringing
; incoming ; for incoming calls
; waiting ; for incoming waiting calls;
; if callwaiting=no channels for waiting calls never created
; initialize ; never appear
; released ; never appear
; Answer on waiting call activate this call and place any other active calls
; on hold, but execution of dialplan for these calls not break stopped or frozen
; When active call terminated one of held becomes active.
exten => s,n,Set(CHANNEL(callstate)=active)
Anyone willing to share a chunk of their extensions.conf that is working well for them? It would be a great help to me and others I'm sure.