diff --git a/coreapi/bellesip_sal/sal_op_impl.c b/coreapi/bellesip_sal/sal_op_impl.c index 451ac0f56..f9647f7ad 100644 --- a/coreapi/bellesip_sal/sal_op_impl.c +++ b/coreapi/bellesip_sal/sal_op_impl.c @@ -170,8 +170,8 @@ belle_sip_request_t* sal_op_build_request(SalOp *op,const char* method) { } if (strcmp("REGISTER",method)==0 || op->privacy==SalPrivacyNone) { - from_header = belle_sip_header_from_create(BELLE_SIP_HEADER_ADDRESS(to_address) - ,belle_sip_random_token(token,sizeof(token))); + from_header = belle_sip_header_from_create(BELLE_SIP_HEADER_ADDRESS(sal_op_get_from_address(op)) + ,belle_sip_random_token(token,sizeof(token))); } else { from_header=belle_sip_header_from_create2("Anonymous ",belle_sip_random_token(token,sizeof(token))); } diff --git a/oRTP b/oRTP index d806b0e0a..0ad89f5e1 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit d806b0e0ae878e70c4c1acb20b7f7116a6e6400b +Subproject commit 0ad89f5e106d9f9a4a1d0608101d26b9a10be8b7