[Spce-user] API for getting current calls status?
Jon Bonilla (Manwe)
jbonilla at sipwise.com
Fri Oct 5 13:45:36 EDT 2012
El Fri, 5 Oct 2012 09:35:44 -0700
Matt Van Veenendaal <matt at curiousminds.com> escribió:
> Thanks for the super quick reply guys.
>
> I want to expose this in my API so I can determine if calls have failed or
> not. Given that I most likely will want to upgrade to the PRO offering at
> some point (i'm currently just testing and building with CE). What do you
> guys think the best plan for this is?
>
> Should I add a command to the soap api manually? Ideally i'd just want a
> command that checks if a subscriber is on a call or not.
>
If you want to check if a subscriber is in a call or not you can check it via
the dialog exported functions
http://kamailio.org/docs/modules/3.3.x/modules_k/dialog.html#id2555637
There are "profiles" where the calls are added.
modparam("dialog","profiles_no_value","total ;emergency")
modparam("dialog","profiles_with_value","peer ; user ; type ; peerout ;
userout ; account ; accountout")
Each time a user is receiving or doing a call, the "user" profile is
incremented with the subscriber's uuid value. You could extend the soap/xmlrpc
API by calling the xmlrpc interface of kamailio-proxy and checking the profile
size or even listing the specific profile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20121005/e75ee1b5/attachment-0001.asc>
More information about the Spce-user
mailing list