Peter Rukavina
2004-Jan-08 19:09 UTC
[Asterisk-Users] Dialing the Phone from OS X Address Book with AppleScript, XML-RPC, PHP and Asterisk
I run an Apple OS X workstation and I've got a server on the same LAN that's both a webserver and an Asterisk PBX. I wanted to be able to originate calls in the OS X Address Book application, and have Asterisk dial them and connect them to the phone on my desk. I've assembled a system that uses AppleScript to connect, via XML-RPC, to a web application that, in turn, connects to the Asterisk Manager API via TPC/IP to initiate the call. I've posted details, along with the source for the scripts involved, at: http://www.reinvented.net/labs/article/1824 Peter Rukavina Reinvented Inc. www.reinvented.net
I seem to have a problem registering my Asterisk box with the FWD service - I have the following in my sip.conf file: register=74928:xxxx@fwd.pulver.com/74928 [fwd.pulver.com] type=friend secret=xxxx username=74928 host=fwd.pulver.com This this look wrong to anyone? It looks fine to me! Unfortunately, I get the following re-occuring message: NOTICE[245776]: File chan_sip.c, Line 2837 (sip_reg_timeout): Registration for '74928@192.246.69.223' timed out, trying again Does anyone else have any problems with FWD? Terence -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 628 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040108/08bd0b53/attachment.bin
Has anyone ever tried getting a Zultys ZIP2 phone to work with Asterisk? We have a few of these lying around in the office but are having difficulties getting them to dial out - authentication error. Curiously though, the Zip2 initially logs in correctly and is still able to receive calls. The error I get when a ZIP2 phone attempts to dial: NOTICE[245776]: File chan_sip.c, Line 4802 (handle_request): Failed to authenticate user Test<sip:Test@192.168.0.254;user=phone>;tag=178bc-2289b WARNING[245776]: File chan_sip.c, Line 435 (retrans_pkt): Maximum retries exceeded on call 60b9d570-3c374-c0a81bcf@192.168.0.254 for seqno 100 (Response) WARNING[245776]: File chan_sip.c, Line 435 (retrans_pkt): Maximum retries exceeded on call 60b9d570-3c374-c0a81bcf@192.168.0.254 for seqno 100 (Response) NOTICE[245776]: File chan_sip.c, Line 4802 (handle_request): Failed to authenticate user Test<sip:Test@192.168.0.254;user=phone>;tag=178bc-2289b WARNING[245776]: File chan_sip.c, Line 435 (retrans_pkt): Maximum retries exceeded on call 60b9d570-3c374-c0a81bcf@192.168.0.254 for seqno 100 (Response) WARNING[245776]: File chan_sip.c, Line 435 (retrans_pkt): Maximum retries exceeded on call 60b9d570-3c374-c0a81bcf@192.168.0.254 for seqno 100 (Response) I have entered the username/password correctly, but my guess is the phone probably does its authentication in a different way. Zultys claim the phone is fully SIP compliant and very generic - but I have been increasingly finding them working well only with their own gateways (which are extremely expensive). For those not familiar with the Zip2, I have two screenshots showing the relavent web based configuration screens - you can find these at http://parker.com.hk/zultys (don't want to fill up your mailbox with large attachments). I have tried several combinations, including using AES for the authentication too - but with no luck. Could it be that this phone just doesn't work with asterisk? Thanks! Terence -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2028 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040108/339fd929/attachment.bin
Olle E. Johansson
2004-Jan-09 00:40 UTC
[Asterisk-Users] Dialing the Phone from OS X Address Book with AppleScript, XML-RPC, PHP and Asterisk
Peter Rukavina wrote:> I run an Apple OS X workstation and I've got a server on the same LAN > that's both a webserver and an Asterisk PBX. > > I wanted to be able to originate calls in the OS X Address Book > application, and have Asterisk dial them and connect them to the phone > on my desk. > > I've assembled a system that uses AppleScript to connect, via XML-RPC, > to a web application that, in turn, connects to the Asterisk Manager API > via TPC/IP to initiate the call. > > I've posted details, along with the source for the scripts involved, at: > > http://www.reinvented.net/labs/article/1824Great stuff! I'll add a pointer on the Wiki. /O
> I seem to have a problem registering my Asterisk box with the FWD > service - I have the following in my sip.conf file:> [fwd.pulver.com] > type=friend > secret=xxxx > username=74928 > host=fwd.pulver.comAdd: fromuser=74928 And auth=md5 probably wouldn't hurt either. Cheers, Philipp
> I seem to have a problem registering my Asterisk box with the FWD > service - I have the following in my sip.conf file: > > register=74928:xxxx@fwd.pulver.com/74928Try removing the "/74928" at the end of the above.