Page 1 of 1
Call-ID From Dispo Call URL
Posted:
Wed Jan 15, 2020 5:54 pm
by tails84
Hi, we are running
VERSION: 2.14-721a
BUILD: 191015-1620
I was wondering if it is possible to gather the Call-ID with Dispo call url, we need to send it to another softwares API, along with number called and extension number.
Thanks in advance, please let me know if you need more information.
Re: Call-ID From Dispo Call URL
Posted:
Wed Jan 15, 2020 6:05 pm
by williamconley
Have you tried --A--call_id--B-- ?
Of course, it's also in the call log, but that would require some fancy php footwork and / or a bounce.
Re: Call-ID From Dispo Call URL
Posted:
Wed Jan 15, 2020 7:11 pm
by tails84
I have not, but i will have a go now!
Re: Call-ID From Dispo Call URL
Posted:
Wed Jan 15, 2020 9:33 pm
by williamconley
the options for the URL are in the easy-to-use script editor dropdown which allows dropping values into a script. Except for dispo (which is never available during a script, of course). Many of the URL's share the same coding, and the script editor is a simple interface to get those values.
If the call_id turns out to be something other than the CID#, you can re-check the dropdown which would apply to your specific version of Vicidial to see if your version has a caller id value.
Otherwise, there would need to be a quick stop at a different page (easily written in php) before bouncing to your final destination after grabbing the caller id value on the way.
Re: Call-ID From Dispo Call URL
Posted:
Thu Jan 16, 2020 12:21 am
by tails84
ahh, yes, thats the Caller ID. I was after the Call-ID,
like this
Call-ID: 4a1de623506697832e51c0c55015e98f@serverdomain/ip:port
Reasoning for this is we are using it as a unique identifier to change information in another system. Other system pulls that Call_ID from tcp dump.
Re: Call-ID From Dispo Call URL
Posted:
Thu Jan 16, 2020 8:47 am
by mflorell
That data is not currently available as a variable, and it's not something that we have collected normally, although it might be available in the Vicidial database as a part of the enhanced SIP logging we've added in the last year on newer Asterisk 13 systems, so it should be possible to access that information at some point to be able to add this as a feature some time in the future.