TaCode Tuesdays: 8 Simple Ways You Can Use SMS And Voice (Series 1 of 4)

Posted by Pedram Mohammadi on July 5, 2016

tacode-tues-blog-wk2.jpgThis is the only place you can find snippets of code for use in your very own text/voice apps, along with a weekly dose of taco puns. I’m a developer here at Zang and not only am I a big fan of tacos (if that wasn’t already apparent), I’m also a fan of open source. My goal is to share a new app idea each week that you're free to use “as is” or modify and use as the basis for your next app—no coding ability required.

Last week I shared the process for creating a simple SMS notification app, as well as how to get started on the Zang platform. If you’re interested in that, check out last week’s post here.

This week I’m going to share 2 super simple, but incredibly useful, apps: one for business-call forwarding, and one for creating conference calls instantly.

Let’s Taco ’Bout the Apps

[#1] A Business Phone That Forwards to Your Smartphone

We all want to be available to our customers and clients at all times (mostly), but you definitely don't always want to publicize your personal cell number to make that happen. Well, we solved that problem with a simple piece of code! Zang phone numbers can be used to receive calls, which can then be forwarded to another number—anywhere in the world.

First, here’s how it works:

  1. The customer places a call to your Zang number.
  2. The call is routed to your personal cell, with your personal number masked.
  3. The connection is established between you and your customer on your smartphone.

Yeah, pretty simple. You’ll find the code below. If you’d like to learn how to implement it on Zang (including how to get a Zang phone number), check out last week’s post. It walks through how to implement apps like these, so if you’re ever lost, that’ll make things a lot clearer.

[CODE]

<!-- Ensure the "Voice Request URL" for your Zang number points to wherever this XML document is hosted-->
<!-- An InboundXML document is made up of various XML elements nested in the response element -->
<Response>
<!-- The <Dial> element starts an outgoing call. Replace this number with the number of the phone you would like to receive the call -->
<Dial>15555555555</Dial>
</Response>

[/CODE]

Before I move on to the next app, here’s your taco tip for the week:

Eat your tacos over another tortilla, so when you inevitably drop ingredients… you’ll have a brand new taco waiting for you. It's like magic. This is the kinda 'outta the box' thinking we do here at Zang!

After you give this a try, come back for app idea #2.


 [#2] A Virtual Conference Room for Conference Calls

Picture this: You’ve just been notified of a last-minute conference call, so you click on the linked number in your email. But there’s a 10-digit code that’s also in your email, and without a pen (nope, sorry, never have one) you’ll never remember the numbers.

This scenario happens all the time, frustrating users everywhere. The following code snippet makes it easy for callers to dial in, minus the extreme memory challenge.

Here's how it works:

1. A customer calls your Zang number and automatically gets added to a conference call. Super sweet and simple!

[CODE]

<Response>
  <Dial>
      <Conference startConferenceOnEnter="true" maxParticipants="10">
          Conference Call Example Room
      </Conference>
  </Dial>
</Response>

[/CODE]

So, there you have it: two very simple apps that you can implement yourself for free. A key point is that once you’ve added either piece of code to a document, you’ll have to add the Public URL (found just above the editor or the part where you'll be pasting the code) to “Voice Settings” under “Manage Numbers.”

manage_numbers_1.jpg

Here you’ll see your Zang number(s). Click on the one you want to assign an app and paste the Public URL of the app under “Voice Settings.” Then save and you’re done.

 

manage_numbers_2_general.png

If you have any thoughts about the apps or just want to share your very own taco pun, you can comment below. Be sure to check in again next week for the next installment of TaCode Tuesdays. If you want a reminder, sign up to get notifications of new blog posts. Once again, I’ll be sharing code for multiple apps, so look forward to that.

Topics: Communication Apps, Ideas, TaCode Tuesday, cPaaS