Michiel van Baak
2005-Feb-02 07:55 UTC
[Asterisk-Users] clicktocall via manager with cisco 7905
Hi all, I have a Cisco 7905g with the default cm firmware. It is connected to * using chan_sccp.so. Normal operations with this phone work perfect. Now I'm implementing a click to call app in php. This php app connects to the manager interface and sends the following down the line: $this->_write($fp, "Action: Originate"); $this->_write($fp, "Channel: ".$this->user_device); $this->_write($fp, "Context: ".$this->context); $this->_write($fp, "Exten: ".$this->whotocall); $this->_write($fp, "Priority: 1"); $this->_write($fp, ""); $this->_write($fp, "Action: Logoff"); where $this->user_device = "SCCP/michiel", $this->context "default" and $this->whotocall = my mobile nr If I run this script my Cisco starts ringing, so far so good. If I pick up the Cisco, it gives me a ringing tone, so far so good. When I pick up my mobile, the Cisco keeps giving me a ringing tone, like it doesn't notice I picked up the other end. When I replace the device with "SIP/michiel", wich is a grandstream budgetone 101 all works wonderfull. This is what I see on the * CLI: == Manager 'covide' logged on from 192.168.1.61 SCCP trying to call SCCP, format 4, data, michiel -- New channel context: default -- Asterisk request to call: SCCP/michiel-00000004 == >> Got message OffHookMessage -- Device d=0x8107718 s=0x80cc6f0 s->d->s=0x80cc6f0 Taken Offhook == Manager 'covide' logged off from 192.168.1.61 -- Executing Dial("SCCP/michiel-00000004", "Modem/g1:xxxxxxxxxx|50|Ttr") in new stack -- Called g1:xxxxxxxxxx -- Asked to indicate '3' (Dialing) condition on channel SCCP/michiel-00000004 -- Sending tone 36 -- Modem[i4l]/ttyI3 answered SCCP/michiel-00000004 -- Asked to indicate '-1' (Unknown (-1)) condition on channel SCCP/michiel-00000004 -- Hungup 'Modem[i4l]/ttyI3' == Spawn extension (default, xxxxxxxxxx, 1) exited non-zero on 'SCCP/michiel-00000004' Anyone can help me with this? Michiel