Remote Agent transfer call to other vicidial box ingroup

All installation and configuration problems and questions

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

Remote Agent transfer call to other vicidial box ingroup

Postby Noah » Mon Aug 06, 2012 1:24 pm

Prereqs:
Box#1 x.x.x.21
Box#2 x.x.x.22

Iso install - Branch update - VERSION: 2.4-364a BUILD: 120409-1136
--2 asterisk, web - boxes-- --1 mysql box - IN NON production mode currently - just finishing up this last piece

--Custom extension 8332 below
--Call thread 1372 from /var/log/asterisk/messages below
--Phone number removed to Phone#_was_here

Description:
1. Remote agent assigned to box #2 ip x.x.x.22 calls route to extension 8332 (custom extension below) on call connect.
2. We text to speech to a cepstral box passing first name and last name through the callerid field no issues here, pretty clean.
Set the caller id field back to initial value after the text to speech is completed and then goto, (default 8368,3) for routing to agents on any box. (This appeared to be the best extension to call for routing to logged in ready agents to "any" box.
3. Agent on box #1 never gets the call. It appears transfer extension 990009 doesn't initiate the iax call to box #1 from box #2

Let's check on the same box:
Tested remote agent calling on box#1 call drops to the inbound group with the call drop "-1" trick on the campaign setting with no problem.
The logged in agent gets the inbound with caller information, all looks good here. Just not when the "remote agent" is calling from box #2


So the question is what extension should I be using (8368? or ?other?) to route calls to logged in agents on other boxes in the correct ingroup?

Custom Extension using vici prebuilt modules:
exten => 8332,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8332,2,Playback(sip-silence)
exten => 8332,3,AGI(agi-set_variables.agi)
exten => 8332,4,AMD(2000|2000|1000|5000|120|50|4|256)
exten => 8332,5,AGI(VD_amd.agi) ;if its a person do the stuff below if not play a message
exten => 8332,6,SET(calltempid=${CALLERID(name)})
exten => 8332,n,NoOp(cepsral-callerid1|${CALLERID(name)})
exten => 8332,n,NoOp(cepsral-calltemp2|${calltempid})
exten => 8332,n,Set(CALLERID(name)=${first_name} ${last_name})
exten => 8332,n,NoOp(cepsral-callerid3|${CALLERID(name)})
exten => 8332,n,NoOp(cepsral-calltemp4|${calltempid})
exten => 8332,n,Playback(OptInEd1)
exten => 8332,n,Dial(SIP/7003/${EXTEN}||g)
exten => 8332,n,Playback(OptInEd2)
exten => 8332,n,Dial(SIP/7003/${EXTEN}||g)
exten => 8332,n,Background(OptInEd3)
exten => 8332,n,Dial(SIP/7003/${EXTEN}||g)
exten => 8332,n,SET(CALLERID(name)=${calltempid})
exten => 8332,n,NoOp(cepsral-callerid5|${CALLERID(name)})
exten => 8332,n,Background(OptInEd4||1)
exten => 8332,n,hangup

Call thread that shows the 990009 exten and launching "local" IAX 127.0.0.1 callback instead of x*x*x*.21*

[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Executing [8332@default:1] AGI("Local/Phone#_was_here@default-5996,1", "agi://127.0.0.1:4577/call_log") in new stack
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Executing [8332@default:2] Playback("Local/Phone#_was_here@default-5996,1", "sip-silence") in new stack
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Playing 'sip-silence' (language 'en')
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Executing [8332@default:3] AGI("SIP/globallinx-00000000", "agi-set_variables.agi") in new stack
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-set_variables.agi
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_lead_id=9433719))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_entry_date=2012-08-02+17:04:31))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_modify_date=2012-08-06+12:16:50))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_status=NEW))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_user=VDAD))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_vendor_lead_code=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_source_id=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_list_id=77777))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_phone_number=Phone#_was_here))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_title=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_first_name=noah))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_middle_initial=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_last_name=seis))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_address1=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_address2=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_address3=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_city=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_state=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_province=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_postal_code=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_country_code=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_gender=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_date_of_birth=0000-00-00))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_alt_phone=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_email=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_security_phrase=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_comments=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_called_count=1))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_last_local_call_time=2012-08-06+15:15:12))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_rank=0))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_owner=))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_campaign_id=143))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_dialed_number=Phone#_was_here))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_auto_dial_timeout=60))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script Executing Application: (EXEC) Options: (Set(_cpd_amd_action=DISABLED))
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AGI Script agi-set_variables.agi completed, returning 0
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- Executing [8332@default:4] AMD("SIP/globallinx-00000000", "2000|2000|1000|5000|120|50|4|256") in new stack
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AMD: SIP/globallinx-00000000 8882493811 (null) (Fmt: 64)
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AMD: initialSilence [2000] greeting [2000] afterGreetingSilence [1000] totalAnalysisTime [5000] minimumWordLength [120] betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold [256]
[Aug 6 17:15:21] VERBOSE[1372] logger.c: [Aug 6 17:15:21] -- AMD: Changed state to STATE_IN_SILENCE
[Aug 6 17:15:23] VERBOSE[1372] logger.c: [Aug 6 17:15:23] -- AMD: Word detected. iWordsCount:1
[Aug 6 17:15:23] VERBOSE[1372] logger.c: [Aug 6 17:15:23] -- AMD: Changed state to STATE_IN_SILENCE
[Aug 6 17:15:24] VERBOSE[1372] logger.c: [Aug 6 17:15:24] -- AMD: Word detected. iWordsCount:2
[Aug 6 17:15:24] VERBOSE[1372] logger.c: [Aug 6 17:15:24] -- AMD: Changed state to STATE_IN_SILENCE
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- AMD: HUMAN: silenceDuration:1000 afterGreetingSilence:1000
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:5] AGI("SIP/globallinx-00000000", "tts_amd.agi") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Launched AGI Script /var/lib/asterisk/agi-bin/tts_amd.agi
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- AGI Script tts_amd.agi completed, returning 0
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:6] Set("SIP/globallinx-00000000", "calltempid=V8061715120009433719") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:7] NoOp("SIP/globallinx-00000000", "cepsral-callerid1|V8061715120009433719") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:8] NoOp("SIP/globallinx-00000000", "cepsral-calltemp2|V8061715120009433719") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:9] Set("SIP/globallinx-00000000", "CALLERID(name)=noah seis") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:10] NoOp("SIP/globallinx-00000000", "cepsral-callerid3|noah seis") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:11] NoOp("SIP/globallinx-00000000", "cepsral-calltemp4|V8061715120009433719") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Executing [8332@default:12] Playback("SIP/globallinx-00000000", "OptInEd1") in new stack
[Aug 6 17:15:25] VERBOSE[1372] logger.c: [Aug 6 17:15:25] -- Playing 'OptInEd1' (language 'en')
[Aug 6 17:15:28] VERBOSE[1372] logger.c: [Aug 6 17:15:28] -- Executing [8332@default:13] Dial("SIP/globallinx-00000000", "SIP/7003/8332||g") in new stack
[Aug 6 17:15:28] VERBOSE[1372] logger.c: [Aug 6 17:15:28] -- Called 7003/8332
[Aug 6 17:15:28] VERBOSE[1372] logger.c: [Aug 6 17:15:28] -- SIP/7003-00000001 answered SIP/globallinx-00000000
[Aug 6 17:15:28] VERBOSE[1372] logger.c: [Aug 6 17:15:28] -- Packet2Packet bridging SIP/globallinx-00000000 and SIP/7003-00000001
[Aug 6 17:15:29] VERBOSE[1372] logger.c: [Aug 6 17:15:29] -- Executing [8332@default:14] Playback("SIP/globallinx-00000000", "OptInEd2") in new stack
[Aug 6 17:15:29] VERBOSE[1372] logger.c: [Aug 6 17:15:29] -- Playing 'OptInEd2' (language 'en')
[Aug 6 17:15:31] VERBOSE[1372] logger.c: [Aug 6 17:15:31] -- Executing [8332@default:15] Dial("SIP/globallinx-00000000", "SIP/7003/8332||g") in new stack
[Aug 6 17:15:31] VERBOSE[1372] logger.c: [Aug 6 17:15:31] -- Called 7003/8332
[Aug 6 17:15:31] VERBOSE[1372] logger.c: [Aug 6 17:15:31] -- SIP/7003-00000002 answered SIP/globallinx-00000000
[Aug 6 17:15:31] VERBOSE[1372] logger.c: [Aug 6 17:15:31] -- Packet2Packet bridging SIP/globallinx-00000000 and SIP/7003-00000002
[Aug 6 17:15:33] VERBOSE[1372] logger.c: [Aug 6 17:15:33] -- Executing [8332@default:16] BackGround("SIP/globallinx-00000000", "OptInEd3") in new stack
[Aug 6 17:15:33] VERBOSE[1372] logger.c: [Aug 6 17:15:33] -- Playing 'OptInEd3' (language 'en')
[Aug 6 17:15:38] VERBOSE[1372] logger.c: [Aug 6 17:15:38] -- Executing [8332@default:17] Dial("SIP/globallinx-00000000", "SIP/7003/8332||g") in new stack
[Aug 6 17:15:38] VERBOSE[1372] logger.c: [Aug 6 17:15:38] -- Called 7003/8332
[Aug 6 17:15:38] VERBOSE[1372] logger.c: [Aug 6 17:15:38] -- SIP/7003-00000003 answered SIP/globallinx-00000000
[Aug 6 17:15:38] VERBOSE[1372] logger.c: [Aug 6 17:15:38] -- Packet2Packet bridging SIP/globallinx-00000000 and SIP/7003-00000003
[Aug 6 17:15:40] VERBOSE[1372] logger.c: [Aug 6 17:15:40] -- Executing [8332@default:18] Set("SIP/globallinx-00000000", "CALLERID(name)=V8061715120009433719") in new stack
[Aug 6 17:15:40] VERBOSE[1372] logger.c: [Aug 6 17:15:40] -- Executing [8332@default:19] NoOp("SIP/globallinx-00000000", "cepsral-callerid5|V8061715120009433719") in new stack
[Aug 6 17:15:40] VERBOSE[1372] logger.c: [Aug 6 17:15:40] -- Executing [8332@default:20] BackGround("SIP/globallinx-00000000", "OptInEd4||1") in new stack
[Aug 6 17:15:40] VERBOSE[1372] logger.c: [Aug 6 17:15:40] -- Playing 'OptInEd4' (language '1')
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] == CDR updated on SIP/globallinx-00000000
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Executing [1@default:1] Goto("SIP/globallinx-00000000", "default|8368|1") in new stack
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Goto (default,8368,1)
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Executing [8368@default:1] Playback("SIP/globallinx-00000000", "sip-silence") in new stack
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Playing 'sip-silence' (language 'en')
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Executing [8368@default:2] AGI("SIP/globallinx-00000000", "agi://127.0.0.1:4577/call_log") in new stack
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Executing [8368@default:3] AGI("SIP/globallinx-00000000", "agi-VDAD_ALL_outbound.agi|NORMAL-----LB") in new stack
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Aug 6 17:15:49] VERBOSE[1372] logger.c: [Aug 6 17:15:49] -- Playing 'ding' (escape_digits=) (sample_offset 0)
[Aug 6 17:15:50] ERROR[1372] utils.c: write() returned error: Broken pipe
[Aug 6 17:15:50] ERROR[1372] utils.c: write() returned error: Broken pipe
[Aug 6 17:15:50] VERBOSE[1372] logger.c: [Aug 6 17:15:50] -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Aug 6 17:15:50] VERBOSE[1372] logger.c: [Aug 6 17:15:50] -- Executing [90009*Education**9433719**Phone#_was_here**@default:1] Answer("SIP/globallinx-00000000", "") in new stack
[Aug 6 17:15:50] VERBOSE[1372] logger.c: [Aug 6 17:15:50] -- Executing [90009*Education**9433719**Phone#_was_here**@default:2] Dial("SIP/globallinx-00000000", "IAX2/ASTloop:ZKZUoOSLFR9SptW@127.0.0.1:40569/990009*Education**9433719**Phone#_was_here**||to") in new stack
[Aug 6 17:15:50] VERBOSE[1372] logger.c: [Aug 6 17:15:50] -- Called ASTloop:ZKZUoOSLFR9SptW@127.0.0.1:40569/990009*Education**9433719**Phone#_was_here**
[Aug 6 17:15:50] VERBOSE[1372] logger.c: [Aug 6 17:15:50] -- IAX2/127.0.0.1:40569-4262 answered SIP/globallinx-00000000
[Aug 6 17:16:16] VERBOSE[1372] logger.c: [Aug 6 17:16:16] -- Executing [h@default:1] DeadAGI("SIP/globallinx-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----36-----26") in new stack
[Aug 6 17:16:16] VERBOSE[1372] logger.c: [Aug 6 17:16:16] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -36-----26 completed, returning 0
[Aug 6 17:16:16] VERBOSE[1372] logger.c: [Aug 6 17:16:16] -- Hungup 'IAX2/127.0.0.1:40569-4262'
[Aug 6 17:16:16] VERBOSE[1372] logger.c: [Aug 6 17:16:16] == Spawn extension (default, 90009*Education**9433719**Phone#_was_here**, 2) exited non-zero on 'SIP/globallinx-00000000'
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: Remote Agent transfer call to other vicidial box ingroup

Postby williamconley » Mon Oct 29, 2012 1:17 pm

to send a call to a logged in agent from a call not already being managed by vicidial, send the call to a DID and route the call from there to an agent using vicidial's web gui.

post your installation method with version (.iso install means ... i installed it from a disk. this is not entirely useful information as it merely states you didn't install it from a flash drive or other method. the NAME of the .iso would be quite useful, however).

also: if you are trying to bounce a call through one server to another, it is generally done without any direct changes to the configuration files by using remote agents. what special need is it that causes you to modify the configuration files and "build your own" method to do this instead of using the tools already in Vicidial? (read: if you stay within the confines of Vicidial GUI configuration, your systems will still be upgradeable and back/reinstall in case of HD death is fairly easy ... but once you modify conf files things get tricky for upgrade/clone/reinstallation).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 89 guests