05-01-2018 03:05 PM - edited 03-21-2019 09:12 AM
Hello sirs,
I would like to control a Spa 303 ip phone using the cli access. The reason is that I should emulate keystroke using a tcp/ip connection from a linux pc running a sw I am writing. In particular I should be able to do "off hook, on hook, and transfer a call to another ip phone" issuig keystroke to the terminal. If I correctly understood, it looks like I could be able to do this using the cli. When I connect to the phone cli, however, I get a "connection refused" and I am not able to login to the cli. How can I connect to the cli of the phone ? What is the default port to do this ?
Thank you very much for your help.
Regards.
Marco Bisio
05-02-2018 12:16 AM
I will not claim it impossible. Firmware with telnet access exists, but just for firmware develoment team. It's not available for customers. If you have large budget and you are ready to buy a lot of phones, ask Cisco sales - may be they will be willing to sell you such feature.
Otherwise, there's no CLI interface for you at all. Moreover, I suspect CLI will not help you. Even CLI access doesn't mean you can cheat running Voice Application to thing a key has been pressed.
You can use XML Service (CiscoIPPhoneExecute->ExecuteItem->URL="Key:...") script triggered by SIP NOTIFY/event XML Service. But it's one way - you know no current state of phone, so sending keys is just blind shot. Moreover, no key, even simulated, can pick handset from cradle.
Unfortunately, you considered to keep overall goal secret, so I can't advise workarounds - if there are some.
05-02-2018 03:45 PM
05-03-2018 01:41 AM
You referenced documentation of Cisco IP Phone 7940/7960, but original question mentioned SPA303. SPA303 is Small Business product while 7940/60 is enterprise. Both product speak SIP, but otherwise they are rather dissimilar.
This community is bor Small Business things and I', not fammiliar with 7940/60 so I will speak about SPA303 only. As I mentioned, XML services triggered by SIP NOTIFY can be used to simulate key presses. I described drawbacks of such method as well.
As alternative, if your PBX is flexible enough, you can setup both ends of call from it - in first step PBX will call operator and once operator answers, it will continue calling other end.
Or, SPA303 can be configured to do "automatic dialing" - once phone go off hook it will dial fixed number. It's PBX job to connect such call to appropriate target.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide