Does anyone know if it’s possible to set
# general-english
s
Does anyone know if it’s possible to set up ringing before the voice agent picks up, and then dial, through something like TwiML bin, an SIP trunk/route the call through an SIP trunk as though I were following the twilio inbound SIP trunk setup docs. So that unlike if I just dial the sip directly, SIP Refer is enabled, for the sake of tranferCall to numbers still working?
k
Yes, you can use a TwiML Bin to play ringing before connecting to a SIP endpoint via Twilio, and if routed through an Elastic SIP Trunk with SIP REFER enabled in its settings, this allows features like transferCall to work, unlike direct SIP dialing which doesn’t support REFER.
s
Do you know how I an Elastic SIP trunk?
k
Use sip:username@your-trunk.pstn.twilio.com, replacing with your trunk domain and user, ensure your trunk is set up with proper termination settings and supported codecs like G.711U.
s
Thanks mate, you’re a legend
Are you familiar at all with how I, given I don’t live in the same country as the client/phone number and don’t have international calls, can test this new setup. I’ve had success with SIP domains in the past but they don’t seem to work with the elastic trunk, through a soft phone platform such as Zoiper.
k
Route calls from Zoiper through a SIP infrastructure like a PBX that connects to Twilio, and use Twilio’s free test numbers example +1 650-489-4546 to verify setup, ensuring IP-based authentication and G.711 codecs are properly configured.
s
Wehn you say domain, is it referring the termination domain? and what do you mean by the username?
Would it be my sip:MY_TWILIO_NUMBER
k
Yes, the domain refers to your trunk’s Termination SIP URI, and the username is the user part of the SIP URI used by your SIP infrastructure to route or authenticate the call..
s
where can I find the username? I don't believe I've set one. My only point of reference would be the orgination uri which is sip:+1XXXXXXXXXX@sip.vapi.ai
I don't believe I've set up SIP infrastructure, in the sense that i've only worked with twilio and vapi thus far.
I've checked my SIP origination uri through zoiper and it works as expected. I've also confirmed that the trunk works, when the number is configured with the sip trunk directly through vapi
I also know that I'm getting a 403, when configuring with the bin
3 Views