Ok ... it's a good example, even if enough difficult for me ...
anyway could you tell me how to format strings for authentication?
How should I fill the 'realm' and 'scheme' fields?
Thank you,
Carmelo
--------- Original Message --------
Da: Michael Jerris <[EMAIL PROTECTED]>
To:
Cc: [email protected]
Oggetto: Re: [Sofia-sip-devel] nua_register problem
Data: 31/08/07 16:53
>
> Check out the code in src/mod/endpoints/mod_sofia/sip_reg.c in freeswitch
(www.freeswitch.org) for a good example of sofia nua registration that is
known to work with asterisk. Please note that when doing auth with asterisk
you need to have the right things in the from so asterisk can patch the peer
properly.
> MikeOn 8/31/07, Carmelo <[EMAIL PROTECTED]> wrote:
> Hi,I'm a new in Sofia-SIP Library, and I've a problem with
nua_register()function when I try to register to Asterisk.Here is my code/*
Begin code */typedef struct application{ su_home_t home; /* memory
home */
> su_root_t* root; /* root object */ nua_t* nua; /* NUA
stack object */} t_application;t_application app;nua_handle_t *handle;/*
Initialize Sofia-SIP library and create event loop */
> app.home.suh_size = sizeof(e_sip_obj);/* initialize system utilities
*/su_init();/* initialize memory handling */su_home_init(&app.home);/*
initialize root object */app.root = su_root_create(NULL);
> app.nua = nua_create(app.root, /* Event loop */ event_callback, /*
Callback for processing events */ &app, /* Additional data to pass to
callback */ NUTAG_URL("sip:
> 0.0.0.0:5061"), /* 0.0.0.0 stands for Local address */
TAG_END());handle = nua_handle(app.nua, &e_sip_obj.home,
SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5060"), /*
> 1.1.1.1 stands for serveraddress */ TAG_END());nua_register(handle,
SIPTAG_FROM_STR("sip:[EMAIL PROTECTED]:5061"),
SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5060"),
> NUTAG_M_DISPLAY("test"), TAG_END());/* End code */If I try to
connect to Asterisk, after several seconds I receive the message"I have
received an event nua_r_register status 408 Request Timeout"
> How can I solve this problem?Thanks in advance,Carmelo -- Email.it, the
professional e-mail, gratis per te: http://www.email.it/f
> Sponsor: Cerchi un'auto usata, vuoi vendere il camper o il cellulare?
Prova Email.itAnnunci, pochi click per pubblicare e trovare ciò che vuoi!
Clicca qui:
>
http://adv.email.it/cgi-bin/foclick.cgi?mid=6893&d=20070831-------------------------------------------------------------------------This
SF.net email is sponsored by: Splunk Inc.Still grepping through log files to
find problems? Stop.
> Now Search log events and configuration files using AJAX and a
browser.Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
> Sofia-sip-devel mailing
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
>
>
>
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
In REGALO 'All the Good Thing' di NELLY FURTADO
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6617&d=20070831
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel