VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
el.es.cr at gmail.com Guest
|
Posted: Fri Aug 29, 2014 7:06 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
Hi,
Would it be hard / anybody tried / any hints how / to add CardDAV server query support to CID Superfecta ?
Kind Regards,
Lukasz
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
marie at vtl.ee Guest
|
Posted: Fri Aug 29, 2014 7:30 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
Hi,
we use OSX CardDAV server and its response is very slow, so we ended up syncing all the CardDAV contacts to MySQL via cron. Asterisk dialplan then runs a query defined in func_odbc.conf.
--
marie
On 29.08.2014, at 15:03, Lukasz Sokol <el.es.cr@gmail.com> wrote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Fri Aug 29, 2014 2:45 pm Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
Le 29 août 2014 14:30, "Marie Fischer" <marie@vtl.ee (marie@vtl.ee)> a écrit :
Quote: |
Hi,
we use OSX CardDAV server and its response is very slow, so we ended up syncing all the CardDAV contacts to MySQL via cron. Asterisk dialplan then runs a query defined in func_odbc.conf.
| What kind of carddav query did you send to your server ? Finding caller's name from phone number, I presume ?
Which client side tools did you then use ?
I may be wrong but googling a bit, most examples of carddav I found where for syncing directories, not querying so your experience is very interesting.
|
|
Back to top |
|
|
marie at vtl.ee Guest
|
Posted: Sun Aug 31, 2014 11:41 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
On 29.08.2014, at 22:44, Olivier <oza.4h07@gmail.com> wrote:
Quote: | Le 29 août 2014 14:30, "Marie Fischer" <marie@vtl.ee> a écrit :
Quote: |
Hi,
we use OSX CardDAV server and its response is very slow, so we ended up syncing all the CardDAV contacts to MySQL via cron. Asterisk dialplan then runs a query defined in func_odbc.conf.
|
What kind of carddav query did you send to your server ? Finding caller's name from phone number, I presume ?
Which client side tools did you then use ?
I may be wrong but googling a bit, most examples of carddav I found where for syncing directories, not querying so your experience is very interesting.
|
Sorry to disappoint you, but we also do just sync, not lookup by number. I just spent an evening or two on this years ago, didn't go very deeply into CardDAV protocol. I suppose you'd want to look at REPORT request with "filter" (http://tools.ietf.org/html/rfc6352#section-10.5) and search for numbers that end with the same string as the phone number you have (remove country prefix if needed).
As for tools, I sent raw requests via Perl's LWP::UserAgent and HTTP::Request and parsed the returned *.vcf's with Text::vCard::Addressbook. Didn't find a nice CardDAV module/library back then.
--
marie
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
el.es.cr at gmail.com Guest
|
Posted: Mon Sep 01, 2014 3:43 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
On 31/08/14 17:40, Marie Fischer wrote:
Quote: |
Quote: | Le 29 août 2014 14:30, "Marie Fischer" <marie@vtl.ee> a écrit :
Quote: |
Hi,
we use OSX CardDAV server and its response is very slow, so we
ended up syncing all the CardDAV contacts to MySQL via cron.
Asterisk dialplan then runs a query defined in func_odbc.conf.
|
|
|
I have an EGroupware server (egroupware.org), CardDAV is 'built in' there.
What timing is the CID Superfecta / Asterisk expecting ?
(I do not need to run CardDAV sync between servers, supposedly this should be
much faster)
Quote: | Sorry to disappoint you, but we also do just sync, not lookup by
number. I just spent an evening or two on this years ago, didn't go
very deeply into CardDAV protocol. I suppose you'd want to look at
REPORT request with "filter"
(http://tools.ietf.org/html/rfc6352#section-10.5) and search for
numbers that end with the same string as the phone number you have
(remove country prefix if needed).
|
Well my 'failover' plan is to run a small CardDAV query application
on agents' computers, that will receive the CID from the softphone application
(like MicroSIP) and run the REPORT request with "filter"
(some of this chain actually works already - I just thought that Asterisk server
to Egroupware direct server query would go faster)
Kind Regards,
Lukasz
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
marie at vtl.ee Guest
|
Posted: Mon Sep 01, 2014 6:06 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
On 01.09.2014, at 11:42, Lukasz Sokol <el.es.cr@gmail.com> wrote:
Quote: | On 31/08/14 17:40, Marie Fischer wrote:
Quote: |
Quote: | Le 29 août 2014 14:30, "Marie Fischer" <marie@vtl.ee> a écrit :
Quote: |
we use OSX CardDAV server and its response is very slow, so we
ended up syncing all the CardDAV contacts to MySQL via cron.
Asterisk dialplan then runs a query defined in func_odbc.conf.
|
|
|
I have an EGroupware server (egroupware.org), CardDAV is 'built in' there.
What timing is the CID Superfecta / Asterisk expecting ?
(I do not need to run CardDAV sync between servers, supposedly this should be
much faster)
|
Well, you made me curious - wrote up a little perl script to do a filtered report by phone number. It takes 2-3 seconds to get a response from OSX server (Mavericks). Which sure is shorter then doing a full sync, but still longish. Would be interesting to know how long other servers take.
Now, for CID you would want this to run in your dial plan after the call comes in and before you Dial() your local extension. One ringtone is 5 seconds (1 sec tone, 4 sec silence), so it's actually not too bad (remember those analog caller ID boxes which got the caller ID between first and second ringtone?). Maybe you'd need to send Progress() or Ringing() back to the calling party.
--
marie
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
el.es.cr at gmail.com Guest
|
Posted: Tue Sep 02, 2014 3:12 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
On 01/09/14 12:05, Marie Fischer wrote:
Quote: | Well, you made me curious - wrote up a little perl script to do a
filtered report by phone number. It takes 2-3 seconds to get a
response from OSX server (Mavericks). Which sure is shorter then
doing a full sync, but still longish. Would be interesting to know
how long other servers take.
|
I can try to time my CardDAV query program (keeping in mind that it
runs on the same physical segment and subnet as the server)
(sorry I don't know Perl I'm a Free Pascal user )
Will come back to that.
Quote: |
Now, for CID you would want this to run in your dial plan after the
call comes in and before you Dial() your local extension. One
ringtone is 5 seconds (1 sec tone, 4 sec silence), so it's actually
not too bad (remember those analog caller ID boxes which got the
caller ID between first and second ringtone?). Maybe you'd need to
send Progress() or Ringing() back to the calling party.
|
Hmm ok.
Let me time it and see the timings.
Lukasz
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
el.es.cr at gmail.com Guest
|
Posted: Tue Sep 02, 2014 9:17 am Post subject: [asterisk-users] POSSA CID Superfecta to query a CardDAV ser |
|
|
On 02/09/14 09:12, Lukasz Sokol wrote:
Quote: | On 01/09/14 12:05, Marie Fischer wrote:
Quote: | Well, you made me curious - wrote up a little perl script to do a
filtered report by phone number. It takes 2-3 seconds to get a
response from OSX server (Mavericks). Which sure is shorter then
doing a full sync, but still longish. Would be interesting to know
how long other servers take.
|
I can try to time my CardDAV query program (keeping in mind that it
runs on the same physical segment and subnet as the server)
(sorry I don't know Perl I'm a Free Pascal user )
Will come back to that.
|
OK, alpha results of timing, show actually sending a query and receiving
a response takes ~500 - 800 ms. Total response time for a query 1.3~2.2s max,
if authentication required before query (but authentication request
can be sent by means of some cron sending OPTIONS & cookies every so often,
to avoid session timeout; so counting that out, 500-800ms is what it takes
for the server to answer the query).
Quote: | Quote: |
Now, for CID you would want this to run in your dial plan after the
call comes in and before you Dial() your local extension. One
ringtone is 5 seconds (1 sec tone, 4 sec silence), so it's actually
not too bad (remember those analog caller ID boxes which got the
caller ID between first and second ringtone?). Maybe you'd need to
send Progress() or Ringing() back to the calling party.
|
Hmm ok.
Let me time it and see the timings.
|
Keeping in mind this is going to be running on FreePBX 2.11.0.38,
where do I start if I wanted to marry this to CID Superfecta ?
Or should I rather look for how to write my own FreePBX module ?
You've mentioned
'LWP::UserAgent and HTTP::Request and Text::vCard::Addressbook'
which I am going to research a bit.
The fun part would be to make the response from CardDAV into
an URL on which the operator shall click to bring the addressbook
details on screen
(or just call firefox with url given as param that would do already )
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|