How to set up FROM and RPID on Remote Agent transfer
Posted: Thu Jun 30, 2022 12:16 pm
VERSION: 2.14-661c
BUILD: 220518-2209
ViciBox v.10.0.1 220503
I am trying to point a DID to a group of external mobile phones, to be called sequentially. Basically, I want to "front" an office phone number which in turn dials out to a number of "management" cell phones
To achieve that, I have set up a DID which routes to an IN_GROUP called MGMT_IN, and a Blended campaign called GEN_IN, which is allowing the MGMT_IN group. I have then created a Remote Agent which is assigned to the GEN_IN campaign and is also a part of the MGMT_IN group. Perhaps this is redundant, I am not entirely sure if I need to assign the remote agent to both the IN_GROUP and the campaign.
My carrier requires me to set the outbound caller ID to one of our allocated numbers. I have set the Campaign Caller ID in GEN_IN, but it does not seem to affect the outbound call to the remote agent.
As a workaround, I created a copy of my carrier, called carrier_fwd, where I hardcoded the Caller ID as follows:
This works, calls go through as intended. A call placed to the DID number is correctly routed to the external mobile phone, but the mobile phone only sees the 08xxxxxxxx Caller ID.
I would like to route the correct inbound Caller ID (e.g. 08yyyyyyyyy) to the mobile phone. I asked my carrier for support, and I received the following instructions:
I am, however, unable to figure out how to implement these instructions. I have added sendrpid to my carrier setting, but it does not seem to make a difference.
I have also tried setting PAI as follows in my dialplan:
However, this did not work either.
Here is my carrier configuration:
Any thoughts on how to set FROM and RPID would be very appreciated!
BUILD: 220518-2209
ViciBox v.10.0.1 220503
I am trying to point a DID to a group of external mobile phones, to be called sequentially. Basically, I want to "front" an office phone number which in turn dials out to a number of "management" cell phones
To achieve that, I have set up a DID which routes to an IN_GROUP called MGMT_IN, and a Blended campaign called GEN_IN, which is allowing the MGMT_IN group. I have then created a Remote Agent which is assigned to the GEN_IN campaign and is also a part of the MGMT_IN group. Perhaps this is redundant, I am not entirely sure if I need to assign the remote agent to both the IN_GROUP and the campaign.
My carrier requires me to set the outbound caller ID to one of our allocated numbers. I have set the Campaign Caller ID in GEN_IN, but it does not seem to affect the outbound call to the remote agent.
As a workaround, I created a copy of my carrier, called carrier_fwd, where I hardcoded the Caller ID as follows:
- Code: Select all
exten => _80X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _80X.,2,Set(CALLERID(num)=08xxxxxxxx)
exten => _80X.,3,Dial(SIP/${EXTEN:1}@teletek,,tTo)
exten => _80X.,4,Hangup
This works, calls go through as intended. A call placed to the DID number is correctly routed to the external mobile phone, but the mobile phone only sees the 08xxxxxxxx Caller ID.
I would like to route the correct inbound Caller ID (e.g. 08yyyyyyyyy) to the mobile phone. I asked my carrier for support, and I received the following instructions:
You should be able to achieve what you want if you are able to in the VICIdial system place the number that you want to display, "08yyyyyyyyy", in the FROM field and your own number, "08xxxxxxxx", in the RPID field.
I am, however, unable to figure out how to implement these instructions. I have added sendrpid to my carrier setting, but it does not seem to make a difference.
I have also tried setting PAI as follows in my dialplan:
- Code: Select all
exten => _80X.,2,SipAddHeader(P-Asserted-Identity: <sip:${CALLERIDNUM}>)
However, this did not work either.
Here is my carrier configuration:
- Code: Select all
[carrier_fwd]
disallow=all
allow=alaw
trustrpid=yes
sendrpid=pai
type=friend
username=myusername
secret=mypass
host=sip5.teletek.se
dtmfmode=rfc2833
context=trunkinbound
insecure=invite
Any thoughts on how to set FROM and RPID would be very appreciated!