Page 1 of 1

Assign one single DOD to each user

PostPosted: Tue Mar 26, 2024 8:40 pm
by asterisknoob
I have sip trunk with pilot number and did range.
I want to set up each user extension outbound with a unique callerid.
Is it possible? If it’s can someone just tell me settings?

Thanks

Re: Assign one single DOD to each user

PostPosted: Tue Mar 26, 2024 10:41 pm
by RBecker
For outbound dialing, set the DID as one of the User Custom values for the user, then in the campaign, set the Custom Caller ID setting to whichever user field you selected. For inbound, you'll need to add each DID individually, set it to a DID route of AGENT, enter the user ID in the User Agent box, and make sure that User Route Settings In-Group is set to AGENTDIRECT.

Re: Assign one single DOD to each user

PostPosted: Wed Mar 27, 2024 11:42 am
by asterisknoob
RBecker wrote:For outbound dialing, set the DID as one of the User Custom values for the user, then in the campaign, set the Custom Caller ID setting to whichever user field you selected. For inbound, you'll need to add each DID individually, set it to a DID route of AGENT, enter the user ID in the User Agent box, and make sure that User Route Settings In-Group is set to AGENTDIRECT.


I tried same as you told but no any change let me show you my settings.

This is my Account Entry
[connect]
host=abc.domain.com
type=friend
qualify=yes
fromdomain=abc.domain.com
username=+97167142XXX@abc.domain.com
fromuser=+97167142XXX
secret=XXXXXXX
context=trunkinbound
auth=abc.domain.com
outboundproxy=abc.domain.com
port=5060
dtmfmode=rfc2833
disallow=all
allow=alaw
allow=ulaw
realm=abc.domain.com

This is Dialplan Entry # 1
exten => _7X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7X.,n,Noop(Something Working)
exten => _7X.,n,Dial(${connectSIP}/08888${EXTEN:1},120,tTo)
exten => _704Z.,n,Dial(${connectSIP}/${EXTEN:1},120,tTo)
exten => _7X.,n,Hangup

This is Dialplan Entry # 2
exten => _7X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7X./_1000,1,SET(CALLERID(all)=connectcc<+97167142XX1>)
exten => _7X./_1001,1,SET(CALLERID(all)=connectc<+97167142XX2>)
exten => _7X.,n,Noop(Something Working)
exten => _7X.,n,Dial(${connectSIP}/08888${EXTEN:1},120,tTo)
exten => _704Z.,n,Dial(${connectSIP}/${EXTEN:1},120,tTo)
exten => _7X.,n,Hangup

Both with same result, but when I try call with only softphone without login in into campaign it's working fine.
Like phone ext 1000 outbound CallerID = 067142XX1
And phone ext 1001 outbound CallerID = 067142XX2
And when I login with campaign I am getting error with Dialplan Entry # 2 and outbound not working. Below the error i am getting.

[Mar 27 20:25:56] == Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/1000-0000000b'
[Mar 27 20:25:56] -- Executing [h@default:1] AGI("SIP/1000-0000000b", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------SIP 200 OK)") in new stack
[Mar 27 20:25:56] -- <SIP/1000-0000000b>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -------SIP 200 OK) completed, returning 0
[Mar 27 20:25:56] == Manager 'sendcron' logged on from 127.0.0.1
[Mar 27 20:25:56] -- Called 55558600051@default
[Mar 27 20:25:56] -- Executing [55558600051@default:1] MeetMeAdmin("Local/55558600051@default-00000009;2", "8600051,K") in new stack
[Mar 27 20:25:56] WARNING[27212][C-00000014]: app_meetme.c:5342 admin_exec: Conference number '8600051' not found!
[Mar 27 20:25:56] -- Executing [55558600051@default:2] Hangup("Local/55558600051@default-00000009;2", "") in new stack
[Mar 27 20:25:56] == Spawn extension (default, 55558600051, 2) exited non-zero on 'Local/55558600051@default-00000009;2'
[Mar 27 20:25:56] WARNING[27212][C-00000014]: func_hangupcause.c:138 hangupcause_read: Unable to find information for channel
[Mar 27 20:25:56] -- Executing [h@default:1] AGI("Local/55558600051@default-00000009;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack
[Mar 27 20:25:56] -- <Local/55558600051@default-00000009;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0.