Page 1 of 1

agi-NVA_recording.agi lead insert

PostPosted: Wed Aug 31, 2016 8:19 am
by Vince-0
Hi!

I can't get NVA_recording to insert new leads so I can search on destination number in list search.

I have list 995 set as NVA New List ID in the phone settings.
So! I use the NVA_recordings script in a custom dialplan:

Code: Select all
exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---N---N---Y------)
exten => _X.,n,Goto(default,${EXTEN},1)
exten => _X.,n,Hangup()


Asterisk console shows this:
Code: Select all
Executing [072XXXXXXX@defaultlog:1] AGI("SIP/100-00000006", "agi-NVA_recording.agi,BOTH------Y---Y---Y")


Why doesn't it use the script parameters I specified? and so not insert the lead?

Vin

--
VERSION: 2.12-561a BUILD: 160708-0745 Installed from ISO

Re: agi-NVA_recording.agi lead insert

PostPosted: Wed Aug 31, 2016 3:15 pm
by Vince-0
<NOOB ERROR>
Looks like it just wasn't applying my changes.
It seems to have worked after a couple of reboots.

--Edit--
I have no idea why it was executing that script without my parameters but when I put the command directly in my carrier dialplan it works just fine:

Code: Select all
exten => _XZXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XZXXXXXXXX,n,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---N---N---Y------)
exten => _XZXXXXXXXX,n,Dial(${carrier1}/${EXTEN},,To)
exten => _XZXXXXXXXX,n,Hangup()


--Edit--
Turns out my meddling with phone_context to defaultlog is where all my confusion comes in.
Leaving the phone context on default puts all these custom dialplans through as expected.

In the words of the immortal williamconley "this guy knows enough to be dangerous".