Hi. I'm trying to do windows softphone and this softphone has to connect on cisco callmanager. In the developer guide have a code, it's compile but when i execute return a error TestePj.cpp // testePj.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <pjlib.h> #include <stdlib.h> // exit() #include <pjsip/sip_uri.h> #include <pjsip/sip_errno.h> #include <pjlib-util.h> #include <pjnath.h> #include <pjsip.h> #include <pjsip_ua.h> #include <pjsip_simple.h> #include <pjsua-lib/pjsua.h> #include <pjmedia.h> #include <pjmedia-codec.h> static pj_caching_pool cp; int _tmain(int argc, _TCHAR* argv[]) { return 0; } static void my_error_exit(const char *title, pj_status_t errcode) { char errbuf[80]; pjsip_strerror(errcode, errbuf, sizeof(errbuf)); PJ_LOG(3,("main", "%s: %s", title, errbuf)); exit(1); } static void my_init_pjlib(void) { pj_status_t status; // Init PJLIB status = pj_init(); if (status != PJ_SUCCESS) my_error_exit("pj_init() error", status); // Init caching pool factory. pj_caching_pool_init( &cp, &pj_pool_factory_default_policy, 0); } static void my_print_uri( const char *title, pjsip_uri *uri ) { char buf[80]; int len; len = pjsip_uri_print( PJSIP_URI_IN_OTHER, uri, buf, sizeof(buf)-1); if (len < 0) my_error_exit("Not enough buffer to print URI", -1); buf[len] = '\0'; PJ_LOG(3, ("main", "%s: %s", title, buf)); } int main() { pj_pool_t *pool; pjsip_name_addr *name_addr; pjsip_sip_uri *sip_uri; // Init PJLIB my_init_pjlib(); // Create pool to allocate memory pool = pj_pool_create(&cp.factory, "mypool", 4000, 4000, NULL); if (!pool) my_error_exit("Unable to create pool", PJ_ENOMEM); // Create and initialize a SIP URI instance sip_uri = pjsip_sip_uri_create(pool, PJ_FALSE); sip_uri->user = pj_str("2621"); sip_uri->passwd = pj_str("00000"); sip_uri->host = pj_str("10.10.0.1:5060"); my_print_uri("The SIP URI is", (pjsip_uri*)sip_uri); // Create a name address to put the SIP URI name_addr = pjsip_name_addr_create(pool); name_addr->uri = (pjsip_uri*) sip_uri; // name_addr->display = "Alice Cooper"; my_print_uri("The name address is", (pjsip_uri*)name_addr); // Done } scanner.h at this line return a error PJ_INLINE(int) pj_cis_match( const pj_cis_t *cis, pj_uint8_t c ) { return PJ_CIS_ISSET(cis, c); } the variable cis return CXX0030: Error: expression can not be assessed Thanks. Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101118/43e53d6e/attachment.html>