Press 1 - Customer as CID to Forwarded DID [Solved]

All installation and configuration problems and questions

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

Press 1 - Customer as CID to Forwarded DID [Solved]

Postby zenithbsolutions » Mon Feb 15, 2021 2:33 pm

Hi,

I have a requirement for the press1 campaign, if any customer press 1 the call should forward to a external number along with the customer's number as CID.

Installation : Vicidial Scratch Installation on Centos 7, Asterisk 11.22.0-vici
SVN :
VERSION: 2.14-787a
BUILD: 210211-1145
© 2020 ViciDial Group

1. I have tried it by enabling 3 way transfer CID to customer but the CID is showing up "asterisk" on forwarded DID.

2. I have tried forwarding the press-1 call to DID through extension 4366 with below dialplan but I get a random fixed number as CID.

exten => _4366,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _4366,2,AGI(agi-set_variables.agi,)
exten => _4366,3,Set(CALLERID(all)=${phone_number})
exten => _4366,n,Dial(SIP/<XX- DID number -XX>@<carriername>,,Tto)
exten => _4366,n,Hangup()

Kindly guide me how to fetch the press1 customer number and send call to DID number along with customer number as CID.

Thank you
Last edited by zenithbsolutions on Tue Feb 16, 2021 4:58 pm, edited 1 time in total.
zenithbsolutions
 
Posts: 122
Joined: Tue Aug 25, 2015 2:17 am

Re: Press 1 - Customer as CID to Forwarded DID

Postby carpenox » Mon Feb 15, 2021 3:38 pm

have you tried setting up the press 1 like this:

Image

set the method to extension and the extension to the external number
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: 2247
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Press 1 - Customer as CID to Forwarded DID

Postby zenithbsolutions » Tue Feb 16, 2021 1:42 am

Hi Carpenox,

Thank you for the response.

Yes, that's what I setup in the press 1 with transfer to extension 4366 and I have setup the dialplan as 4366 as listed on my first post.
zenithbsolutions
 
Posts: 122
Joined: Tue Aug 25, 2015 2:17 am

Re: Press 1 - Customer as CID to Forwarded DID

Postby striker » Tue Feb 16, 2021 4:17 am

hi

You need to set the AGI agi-set_variables.agi in the dialplan used to dial customer number
that is in your carrier dialplan entry, so the lead field phone_number will be set as dialplan variable for later dialplans.
eg:
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,AGI(agi-set_variables.agi)
exten => _9X.,n,Dial(SIP/SIPTRUNK/${EXTEN:1},,Tto)
exten => _9X.,n,Hangup()

Then remove that agi from yoru 4366 dialplan and check with verbose whether its setting the callerid from leads field phone_number
exten => _4366,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _4366,n,Set(CALLERID(all)=${phone_number})
exten => _4366,n,NoOp(MY CALLLERDI is ${CALLERID(num)} and ${CALLERID(all)})
exten => _4366,n,Dial(SIP/<XX- DID number -XX>@<carriername>,,Tto)
exten => _4366,n,Hangup()
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: Press 1 - Customer as CID to Forwarded DID

Postby zenithbsolutions » Tue Feb 16, 2021 4:58 pm

This Worked Perfect.

Thank you Striker
zenithbsolutions
 
Posts: 122
Joined: Tue Aug 25, 2015 2:17 am

Re: Press 1 - Customer as CID to Forwarded DID [Solved]

Postby carpenox » Tue Feb 16, 2021 10:16 pm

Your dialplan skills are amazing striker. ::bows::
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: 2247
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: No registered users and 69 guests