Jump to content

Pin Set for outbound (carrier) calling


Recommended Posts

I have correctly set up PIN Set for outbound calling (the users must enter a kind of password through  DTMF)  before the carrier outbound call become placed and established. It can be useful for avoid unwanted users make calls without authorization.

Based on  some kazoo docs examples and also pivot call flow app, and some php scripts; When dialing 10  or 11 digits Number. Kazoo asks for 5 digits password, then the script compares the entered digits with the  saved ones (in hash format); if  it is   correct; the call is continued and routed to  carrier.

More Pin numbers can be created and hashed.

I hope it helps you.

 

 

 

index.php

pinset.php

generate_hash.php

Link to comment
Share on other sites

  • 3 weeks later...

Hi fmateo05,

We were able to implement your solution, up to a point. We're getting the behavior we expected but we've had to store the media files on a different server that the server running Kazoo.

Can you give us any suggestions, URL pattern, etc. that would allow us to serve the audio files from the same server where Kazoo is running/?

We uploaded the files to Kazoo, but we're having no luck locating them and getting them to play. I don't think we know the exact path to the uploaded audio files in Kazoo. None of our tests with various paths have had positive outcomes. The paths we tested were of the form:

http://kazoo-server.com/v2/account/{ACCOUNT_ID}/media/{MEDIA_ID} and

http://kazoo-server.com/v2/account/{ACCOUNT_ID}/media/audio_file_name.mp3 and

http://kazoo-server.com/media/audio_file_name.mp3

etc.

I suspect that we're using the wrong path to the media files at Kazoo.

In your pinset.php file, I see this:

{"module":"play"
   ,"data":{"id":"http://10.10.1.1:8888/wnn/disa-invalid_pin.wav"}
  }

We were able to make this process work by replacing "http://10.10.1.1:8888/wnn/disa-invalid_pin.wav" with a path to our audio file on an external server. That server is pretty busy, so we'd rather not use it for serving audio files in potentially large numbers. We'd like to know if there's a general path on the Kazoo server, something like:

http://kazoo-server.com/path/to/invalid_pin.wav.

Also, we need to know whether it should be a secure path such as http://kazoo-server:8443/etc. We suspect not, but thought it was worth asking.

Thanks in advance! 

Link to comment
Share on other sites

  • Web root must be like "/var/www/html/" and then put the wnn directory containing every php and sound files
  • If you use apache httpd as main web service, edit and change  http//10.10.1.1:8888/wnn with http://kazoo-server.com/wnn in the php script files.
  • I have used different port because of running another httpd webserver instance listening to it (security reasons).

Then in the Pivot call flow app you may set the voice URL like:

http://kazoo-server.com/wnn/index.php

 

 

Edited by fmateo05
add some exact words for correction (see edit history)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...