How To Put Click to Call On Your Website
Reply from ianplain on Mar 03, 2008 - 06:28 PM
Hi
Sorry you havent explained your setup in quite the method that helps, We need to know what context a user needs to be in to make an outgoing call, and what digit needs to be dialed
then Local/<phone_number>@pstn-out needs to be matched to it.
so for example if you dial 9012341234546 to make a call and users to dial this number are in a context of pstn-out then the line would be Local/901234123456@pstn-out
Ian
Reply from pirhac on Mar 03, 2008 - 10:48 PM
Hey Ian;
I didn't mention anything else about my config, because I didn't do anything to my config - like I said, still a noob w/ Asterisk
I used "Context: from-internal" because it comes pre-loaded with trixbox.
Regarding my dailing patterns: I'm in the USA, and would only dial to other USA numbers, so I'd be dialing: 1NXXNXXXXXX.
Reply from Rob78 on Jul 01, 2008 - 11:31 AM
Step 3 needs to be pasted into which conf file ?
Thanks
Reply from Rob78 on Jul 04, 2008 - 10:19 AM
Hi I have this "Almost" working, you put a nuber in, it say's it will call an then nothing, any idea's anyone, I really want to get this up and running...
Thanks...
Reply from gene99 on Nov 25, 2008 - 02:22 AM
USA capable? How ? Thanks
Reply from ianplain on Nov 25, 2008 - 08:34 AM
Hi
yes, just make sure asterisk dialplan is alowed to dial US numbers.
Ian
Reply from xhobbitX on Dec 07, 2008 - 01:21 AM
any idea how to use fsockopen to get the current phone number i'm connected to. The agi api stuff is too much to follow.
Reply from Obelix08 on Jan 08, 2009 - 01:17 PM
How do I use click-to-call but only to receive calls from my visitors? I mean, I want them to click on a "Call me" button on my web site and have that call redirected to my Asterisk server.
Is is possible?
Thanks!
Reply from batrams on Aug 06, 2009 - 08:29 PM
Hi - I followed the instructions, however it seems I'm having trouble passing the 'scrname' variable. The httpd error log shows
Undefined variable: scrname in /var/www/htdocs/clickcall/call.php
Any thoughts why phone number I enter does not get passed along?
Reply from dean on Aug 06, 2009 - 08:33 PM
| Quote: |
| Any thoughts why phone number I enter does not get passed along? |
It's just an http post. Are you sure it's being sent correctly ? Have you set up a basic test form to experiment with?
Reply from batrams on Aug 06, 2009 - 08:39 PM
Reply from batrams on Aug 07, 2009 - 01:25 AM
Ok - I got it to work! Now I'd like to make a small change.
Instead of connecting the call to a single SIP peer, I'd like the call to enter the extension of my dialplan which incoming calls normally are sent to - as if someone dialed my DiD
I tried changing
| Code: |
| $our_exten = "Sip/1234"; |
to
| Code: |
| $our_exten = "Sip/MyExtension@localhost"; |
but that seemed to create a loop making Asterisk unhappy.
I also tried
| Code: |
| $our_exten = "Sip/MyExtension@111.222.333.444"; (my real IP) |
but that also failed.
Can someone tell me how to accomplish my goal?
Reply from batrams on Aug 07, 2009 - 01:37 PM
Well as usual I found the answer just after posting. Instead of SIP/ I used Local/ in case this helps anyone else.
Reply from RobiGo on Aug 14, 2009 - 01:23 PM
I can login using telnet only from localhost (127.0.0.1)
when i try to login from another pc the response is:
Action: login
Username: admin
Secret: amp111
Response: Error
Message:Missing action in request
Anyone have any idea why? i tryed from more pc, in direkt link, without firewall.. error error error..
Reply from batrams on Aug 14, 2009 - 01:31 PM
Does your Asterisk CLI show anything when the error is generated?
| 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.
|