Page 1 of 1

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

PostPosted: Mon Feb 15, 2021 2:33 pm
by zenithbsolutions
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

Re: Press 1 - Customer as CID to Forwarded DID

PostPosted: Mon Feb 15, 2021 3:38 pm
by carpenox
have you tried setting up the press 1 like this:

Image

set the method to extension and the extension to the external number

Re: Press 1 - Customer as CID to Forwarded DID

PostPosted: Tue Feb 16, 2021 1:42 am
by zenithbsolutions
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.

Re: Press 1 - Customer as CID to Forwarded DID

PostPosted: Tue Feb 16, 2021 4:17 am
by striker
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()

Re: Press 1 - Customer as CID to Forwarded DID

PostPosted: Tue Feb 16, 2021 4:58 pm
by zenithbsolutions
This Worked Perfect.

Thank you Striker

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

PostPosted: Tue Feb 16, 2021 10:16 pm
by carpenox
Your dialplan skills are amazing striker. ::bows::