Vic Cross
2004-Feb-05 23:48 UTC
[Asterisk-Users] chan_sccp: incoming calls on multiple lines
G'day list, I am using the chan_sccp code to attach a SCCP-firmware 7960 to Asterisk. I have logged on multiple lines to the phone, and I can select a line for outgoing calls by pressing the right button (line goes off-hook, I can dial, and * processes the outgoing call according to the context defined against the line in chan_sccp.conf). All great. I'm having trouble with incoming calls however. I expected that a call coming in on any line would be answered when I take the device off-hook. However, only an incoming call for the currently selected line (line selected using the line buttons, as described previously) is answered. Worse, it is not possible to select a different line when a call is incoming: pressing any of the line buttons (including the one for the line where the call is coming in) results in the phone going off-hook against the previously-selected line. I've looked at the chan_sccp code, and it seems like it's Working-As-Designed. Having never used a real CallManager system, is this the way that the 7960 works when it's using CallManager, i.e. can you really only answer an incoming call on the line you previously selected? I'm about to hack chan_sccp to try and make it work like I want, but I'd like to know if I'd be breaking the 'correct' function... Cheers, Vic Cross
Vic Cross
2004-Feb-06 05:43 UTC
[Asterisk-Users] chan_sccp: incoming calls on multiple lines
Sorry folks (I know it's annoying when people reply to their own posts)... On Fri, 6 Feb 2004, Vic Cross wrote: <snip my note about incoming calls on multiple lines> I just wanted to advise that I've done my patch to chan_sccp to provide this behaviour -- when a call comes in on any line, not just the 'selected' line, taking the phone off-hook answers the call. It also does not change the selection status of the lines (the line that was selected before stays selected). The patch does not change the behaviour of things getting messed up when a second call comes in while the phone is already off-hook (well, at least it's broken on my phone). I guess this is related to the fact that device-initiated call control (Hold, Call Forward, Conference, etc) is not yet implemented. One thing at a time, I'm still new to hacking Asterisk! :) If anyone is interested, please let me know. I'll lodge it in the Mantis for chan_sccp if we like it. Hoo-roo, Vic Cross