mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
Wed May 7 10:05:57 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_stack.c: if nua_register() fails to provide To, use From. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8334 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3ee862d73f
commit
68543ddc11
@ -1 +1 @@
|
||||
Fri May 9 13:43:01 EDT 2008
|
||||
Fri May 9 13:43:35 EDT 2008
|
||||
|
@ -2290,6 +2290,12 @@ int nua_client_init_request(nua_client_request_t *cr)
|
||||
sip_add_dup(msg, sip, (sip_header_t *)nua->nua_from) < 0)
|
||||
return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
|
||||
|
||||
if (sip->sip_to == NULL && cr->cr_method == sip_method_register &&
|
||||
sip_add_dup_as(msg, sip, sip_to_class,
|
||||
(sip_header_t *)sip->sip_from) < 0) {
|
||||
return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
|
||||
}
|
||||
|
||||
if (cr->cr_dialog) {
|
||||
ds->ds_leg = nta_leg_tcreate(nua->nua_nta,
|
||||
nua_stack_process_request, nh,
|
||||
|
Loading…
x
Reference in New Issue
Block a user