Hi Ive been trying for days now and i just cannot work this out.
Can someone please tell me if im doing this right.
I've written some python3.3 code and now i want to transfer it to an embedded computer to execute.
My OS is a : Debian GNU/Linux 6.0.7 (squeezez) 32-bit kernel
The... (1 Reply)
I'm looking for a really simple to use lightweight database. Ideally something open-source that stores data in a (semi-) human-readable format, in case the software isn't working.
Something cross-platform enough that I can use it on my Linux machine, my Mac, or stick it on a USB stick and... (2 Replies)
Hi all,
I wish to build a few packages for my embedded target running linux over ARM9. It would be tough for me to compile my packages on target so I need to build on a host machine and then transfer the generated binaries. So I got the source-tarball for the packages I need. Now here are my two... (0 Replies)
I am looking to have UNIX authenticate against Active Directory in a Windows Server 2003 environment, any suggestion? I am very new to UNIX, 2 weeks worth knowledge, if that. Thanks! (3 Replies)
How-To send or update registrations.(3) libeXosip2 How-To send or update registrations.(3)NAME
How-To send or update registrations. - eXosip2 offers a flexible API to help you to register one or several identities.
Initiate a registration
To start a registration, you need to build a default REGISTER request bby providing several mandatory headers
osip_message_t *reg = NULL;
int id;
int i;
eXosip_lock ();
id = eXosip_register_build_initial_register (identity, registrar, NULL,
1800, ®);
if (id < 0)
{
eXosip_unlock ();
return -1;
}
osip_message_set_supported (reg, '100rel');
osip_message_set_supported(reg, 'path');
i = eXosip_register_send_register (id, reg);
eXosip_unlock ();
return i;
The returned element of eXosip_register_build_initial_register is the registration identifier that you can use to update your registration.
In future events about this registration, you'll see that registration identifier when applicable.
Update a registration
You just need to reuse the registration identifier:
int i;
eXosip_lock ();
i = eXosip_register_build_register (id, 1800, ®);
if (i < 0)
{
eXosip_unlock ();
return -1;
}
eXosip_register_send_register (id, reg);
eXosip_unlock ();
Note: The above code also shows that the stack is sometimes able to build and send a default SIP messages with only one API call
Closing the registration
A softphone should delete its registration on the SIP server when terminating. To do so, you have to send a REGISTER request with the
expires header set to value '0'.
The same code as for updating a registration is used with 0 instead of 1800 for the expiration delay.
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 How-To send or update registrations.(3)