Twilio SIP Request for ingroup [Solved]

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Twilio SIP Request for ingroup [Solved]

Postby khuff » Mon Sep 30, 2013 4:16 pm

Greetings folks,

So I'm looking to use to Twilio to transfer inbound calls from some numbers on their end to an in-group on in one of my campaigns. I've gotten the SIP stuff working with some TwiML, but I'm having trouble setting up the sip request. Right now it just falls into my default inbound group but the call connects, so I know I'm close! So I'm wondering if anyone could point me in the direction to find more info on how to setup a sip request to ring through to an ingroup. Let me know if any additional details would be helpful. Thanks for your time.

See our cluster info below.

ViciBox ISO
VERSION: 2.8-404a
BUILD: 130605-0841
Asterisk v.1.4.21.2-vici
No Extra Hardware After Installation
No Extra Software After Installation
3 dialers/webservers, 1 mysql server/ ISO Preload Install
Last edited by khuff on Sat Oct 19, 2013 10:29 am, edited 1 time in total.
Vicibox 8.1 | ViciDial VERSION: 2.14-687a BUILD: 180908-1618 | Asterisk: 11.25.3-vici | Multi Server 12 x Dialers / 2 x Web / 1 x Master DB / 1 x Slave DB / 1 x Archive | No extra software or hardware after install
khuff
 
Posts: 80
Joined: Mon Feb 20, 2012 12:19 pm

Re: Twilio SIP Request for ingroup

Postby williamconley » Tue Oct 01, 2013 6:12 pm

Show asterisk cli output (probably best if it is SIP DEBUG output) from a single occurrence. Don't do this when the dialer is busy ... just a single call example of the "INVITE" packet from the sip request. Alternately, you could modify the inbound context to a special context and force the DID membership just for twilio inbound calls, but then they'd all be treated as one inbound DID with no differentiation (if that's fine ... just send the calls to 'twilioinbound' and create a dupe of 'trunkinbound' which manually changes the inbound call's DID to a number of your choosing to remove them from Default.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Twilio SIP Request for ingroup

Postby khuff » Sat Oct 19, 2013 10:28 am

Figured it out. Not sure if the correct way but works for me. First I setup a new Twilio Number, then I setup a little bit of TwiML so I can send a url a phone and it spit out something like this.

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
        <Response>
        <Dial>
             <Sip>sip:'.$phoneToRing.'@OurDomain</Sip>
        </Dial>
        </Response>


Then I had to setup all of their carrier entries, for each IP. And then a DID entry for the $phoneToRing, point to ingroup and viola call comes into Twilio, goes to sip through the number, rings to the ingroup I want. Had to use the Clean CID L1 since it comes through a 1. Other than that works like a dream, and I'm sure there is more I fun stuff I can do.

Thanks for the help though.
Vicibox 8.1 | ViciDial VERSION: 2.14-687a BUILD: 180908-1618 | Asterisk: 11.25.3-vici | Multi Server 12 x Dialers / 2 x Web / 1 x Master DB / 1 x Slave DB / 1 x Archive | No extra software or hardware after install
khuff
 
Posts: 80
Joined: Mon Feb 20, 2012 12:19 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 159 guests