How To Put Click to Call On Your Website

Reply from RobiGo on Aug 17, 2009 - 12:29 PM
My cli don't show anything else, only
Response: Error
Message:Missing action in request


I tryed to run the esential part of script staying in face of my asterisk, logged with root rights...
i started an telnet, i opened the localhost, i tryed to login in CLI with admin, its accepted, i typed the command: action: originate... ...... and the result is: my softphone started to ring, and when i answer after 3seconds is hanged up, without to call the exten number.

I tryed to login from my pc... Response: Error Message:Missing action in request

I tryed to install an old version of asterisk... Response: Error Message:Missing action in request

I tryed to install the 64b version of asterisk... Response: Error Message:Missing action in request

only from local console started telnet i can connect... from external PC don't.

Anyone have any idea why?
Reply from ianplain on Aug 17, 2009 - 01:43 PM
Hi
Is your manager.conf setup correctly ?

IE have you allowed rights for you pcs IP address

Ian
Reply from RobiGo on Aug 17, 2009 - 01:58 PM
i tryed some modifications in the Call.php:
$Context_str = "from-internal"; #it's a new line after $WaitTime = "30"; (if the context_str is anything else, the soft phone hang up after answer)



$oSocket = fsockopen($sys_ip, "5038", $errnum, $errdesc, $timeout) or die("Connection to host failed"); #replace the original line with this

and that's all folks Very Happy

I have an another question... how i can change the fputs($socket, "Channel: $our_exten\r\n"); with an external number? what is the methold? (i want to use dinamic number for this)
Reply from RobiGo on Aug 17, 2009 - 02:06 PM
another little modification in call.php
after $Context_str = "from-internal"; put:

$strCustdata = $scrname = $_POST["scrname"];
Reply from joepc on Sep 08, 2009 - 02:43 PM
Works great, would anyone know how to play a message when the SIP/1234 picks up the phone?
Reply from talab07 on Oct 02, 2009 - 01:27 PM
actually this is my 2nd minute as a member and im kindda lost :s
i study in Malaysia and i want to call my friends in London into their mobile numbers
how is that possible ?
that would be really appreciated ^_^
Reply from talab07 on Oct 02, 2009 - 01:34 PM
mine is a free e-mail addresses btw
does it work to d oso ? or shoud i get a new one if so what kind of e-mails should i get ?
Reply from dibsmft on Oct 02, 2009 - 01:46 PM
Welcome to Voipuser forums.

Your question is not really on topic for this thread. Start a new thread in the correct forum if you can.

Calling UK mobile phones from abroad is very very expensive. It is probably better to get them to call you (can call your Voipuser number perhaps). Perhaps you can make a 1 min call to them and have them call you back. On the other hand it is very inexpensive to call from voip to UK PSTN or costs nothing to call SIP to SIP (possible via/to a recent model cell phone).
Reply from talab07 on Oct 02, 2009 - 02:42 PM
thaaaaanks alot dibsmft
really appreciated Wink
Reply from chrismac on Oct 09, 2009 - 10:14 PM
Hi,

Just to let you know I posted tutorial which shows another way to implement "Click to Call" functionality with PHP and any SIP compliant server (Asterisk, OpenSIPs etc.)

Hope it might be useful...
Reply from phonesystem254 on Nov 06, 2009 - 01:06 PM
anybody out there for my help?
Reply from phonesystem254 on Nov 06, 2009 - 01:17 PM
I have the problem in following code.
Scenario: I have two sip phone. SIP/2100 and SIP/2200, I want SIP/2200 give its number into callme and than call.php called. if I configure this code like that:
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Username: $User_str\r\n");
fputs($oSocket, "Secret: $Secret_str\r\n\r\n");
fputs($oSocket, "Events: off\r\n\r\n");
fputs($oSocket, "Action: originate\r\n");
fputs($oSocket, "Channel: SIP/2100\r\n");
fputs($oSocket, "WaitTime: $WaitTime\r\n");
fputs($oSocket, "CallerId: 2200\r\n");
fputs($oSocket, "Exten: 2200\r\n");
fputs($oSocket, "Context: default\r\n");
fputs($oSocket, "Async: true\r\n");
fputs($oSocket, "Priority: 1\r\n\r\n");
fputs($oSocket, "Action: Logoff\r\n\r\n");
sleep(2);


but its does nothing. in extensions.cong can we have to place some additional extensions>>> pleae help me out... fI want to use your strategy.
thanks in advance
Reply from phonesystem254 on Nov 06, 2009 - 01:19 PM
also on my asterisk CLI I see admin log in or admin log off event when I call in my browser call.php
Reply from ianplain on Nov 06, 2009 - 04:46 PM
Hi is there an extension 2200 in the default context ?

If you see and logon and off then its connecting to your server ok

Ian
Reply from phonesystem254 on Nov 07, 2009 - 05:30 AM
Thanks for reply Ianplain..
No in extensions.conf exten 2200 not defined. 2200 is the number of caller which is used click2call button and give its number in the text box. Actually I did not understand exactly call.php and Is that we need to add some exten into extensions.conf in astreisk?
Goto page Previous  1, 2, 3, 4  Next
Voip User Forum Index » The World of VoIP » Click to Call
Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.