Page 1 of 1

Twilio SIP Request for ingroup [Solved]

PostPosted: Mon Sep 30, 2013 4:16 pm
by khuff
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

Re: Twilio SIP Request for ingroup

PostPosted: Tue Oct 01, 2013 6:12 pm
by williamconley
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.

Re: Twilio SIP Request for ingroup

PostPosted: Sat Oct 19, 2013 10:28 am
by khuff
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.