The signature of nta_request_f (see nta.h line 179) must be like the following
int process_nta_request (nta_leg_magic_t *lmagic,
nta_leg_t *leg,
nta_incoming_t *irq,
sip_t const *sip)
{
...
return ...;
}
From: gilles Djomo Sawa [mailto:[email protected]]
Sent: lunedì 9 marzo 2009 14.17
To: [email protected]
Subject: [Sofia-sip-devel] nta callbackfunction!!!
Hello,
i get some problem with the declaration of the nat callbackfunction.
i've done this example
int process_nta_request(nta_agent_magic_t *context,
nta_agent_t *agent,
nta_incoming_t *irq,
sip_t *sip)
{
...
return ...;
}
when i'm calling the same function in:
int main(..., ...)
{
default_leg = nta_leg_tcreate(reg_agent, process_nta_request, app,
NTATAG_NO_DIALOG(1), TAG_END());
...
return 0;
}
i get this error: "conversion of int process_nta_request in nta_request_f not
possible"
can someone help me, what i'doing wrong?
Regards
Gilles
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone
indicate. La diffusione, copia o qualsiasi altra azione derivante dalla
conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate
ricevuto questo documento per errore siete cortesemente pregati di darne
immediata comunicazione al mittente e di provvedere alla sua distruzione,
Grazie.
This e-mail and any attachments is confidential and may contain privileged
information intended for the addressee(s) only. Dissemination, copying,
printing or use by anybody else is unauthorised. If you are not the intended
recipient, please delete this message and any attachments and advise the sender
by return e-mail, Thanks.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel