SIP-REFER

All installation and configuration problems and questions

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

SIP-REFER

Postby newbie » Sat Oct 21, 2023 12:15 am

Anyone have experience sending successful transfers to Twilio via SIP-REFER with carrying the callerID of the customer called from vicidial or incoming caller from vicidial transfer to PSTN (external) via SIP-REFER in twilio trunk?

If so, would be so kind to share dialplan and sip trunk configuration please?

NOTE: calling from Vicidial to Twilio outbound trunk will succeed if the CallerID use is a verified number or purchased from twilio.
When transferring to PSTN using the twilio trunk through blind it will only carry the callerID use (valid twilio DID or verified from them) , which is not a good approach since we don't want to add every single phone number of customer from our leads/manual dialed.

any thoughts?
Asterisk version:13.38.2-vici | ViciBox v.10.0.1 220503 | ViciDial Admin VERSION: 2.14-896a BUILD: 230926-0849 |SVN Version:3762|DB Schema Version: 1695| Cluster: 6x Asterisk, 2x MariaDB (replication)
newbie
 
Posts: 50
Joined: Mon Jul 06, 2009 8:34 pm
Location: Manila, Philippines

Re: SIP-REFER

Postby carpenox » Sat Oct 21, 2023 5:24 am

Try something like this in your dialplan before your dial line


Set(CALLERID(num)=+1${CALLERID(num)}

Good luck

Chris
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2250
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: SIP-REFER

Postby newbie » Mon Oct 23, 2023 10:36 am

hey Chris,

Tried something like that didn't work. Tried using Transfer() instead of Dial() with no luck :). Any other thoughts or sample sip trunk / dialplan you may share? :)
Asterisk version:13.38.2-vici | ViciBox v.10.0.1 220503 | ViciDial Admin VERSION: 2.14-896a BUILD: 230926-0849 |SVN Version:3762|DB Schema Version: 1695| Cluster: 6x Asterisk, 2x MariaDB (replication)
newbie
 
Posts: 50
Joined: Mon Jul 06, 2009 8:34 pm
Location: Manila, Philippines

Re: SIP-REFER

Postby carpenox » Mon Oct 23, 2023 12:07 pm

Striker you around? Striker is there dialplan god, I'm sure he can figure it out.
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2250
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: SIP-REFER

Postby ambiorixg12 » Sat Nov 04, 2023 2:31 pm

On the Asterisk side, you need to use the transfer application to generate the SIP REFER. On the Twilio side, make sure to enable this feature and select the desired caller ID. Also, enable SIP debugging on the Asterisk side to ensure the transfer process is completed as expected.
Image
ambiorixg12
 
Posts: 449
Joined: Tue Sep 17, 2013 10:35 pm

Re: SIP-REFER

Postby newbie » Mon Dec 11, 2023 9:07 pm

Thanks ambiorixg12,

I apologize for super late post. This is already working in my end. I followed ambiorixg12 post on twilio and use Transfer application. Here's my dialplan for blind transfer.

Code: Select all
exten => 718223344556,1,AGI(agi://127.0.0.1:4577/call_log)
same => n,AGI(agi-set_variables.agi)
same => n,Set(From = +1${CALLERID(num)})
same => n,SipAddHeader(P-Asserted-Identity: +${phone_number})
same => n,Transfer(SIP/+${EXTEN:1}@TRUNKNAME.pstn.twilio.com)
same => n,NoOp(After Transfer: ${TRANSFERSTATUS})
same => n,Hangup


Since this is only. works for blind transfer or No Agent no queue for incoming calls, I was wondering if there's a way it can do warm transfer too ? :)

Best Regards,
Francis L.
Asterisk version:13.38.2-vici | ViciBox v.10.0.1 220503 | ViciDial Admin VERSION: 2.14-896a BUILD: 230926-0849 |SVN Version:3762|DB Schema Version: 1695| Cluster: 6x Asterisk, 2x MariaDB (replication)
newbie
 
Posts: 50
Joined: Mon Jul 06, 2009 8:34 pm
Location: Manila, Philippines

Re: SIP-REFER

Postby getswole89 » Sun Jan 21, 2024 3:14 pm

newbie wrote:Thanks ambiorixg12,

I apologize for super late post. This is already working in my end. I followed ambiorixg12 post on twilio and use Transfer application. Here's my dialplan for blind transfer.

Code: Select all
exten => 718223344556,1,AGI(agi://127.0.0.1:4577/call_log)
same => n,AGI(agi-set_variables.agi)
same => n,Set(From = +1${CALLERID(num)})
same => n,SipAddHeader(P-Asserted-Identity: +${phone_number})
same => n,Transfer(SIP/+${EXTEN:1}@TRUNKNAME.pstn.twilio.com)
same => n,NoOp(After Transfer: ${TRANSFERSTATUS})
same => n,Hangup


Since this is only. works for blind transfer or No Agent no queue for incoming calls, I was wondering if there's a way it can do warm transfer too ? :)

Best Regards,
Francis L.


We’re you able to get this sorted out for warm transfers?
getswole89
 
Posts: 3
Joined: Thu Jan 04, 2024 3:23 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 267 guests