*** certified-asterisk-11.6-cert4/channels/chan_sip.c.orig 2014-06-13 15:31:53.000000000 +1000 --- certified-asterisk-11.6-cert4/channels/chan_sip.c 2014-07-08 08:28:00.070198677 +1000 *************** *** 29510,29515 **** --- 29510,29518 ---- ast_copy_flags(&p->flags[1], &peer->flags[1], SIP_PAGE2_FLAGS_TO_COPY); ast_copy_flags(&p->flags[2], &peer->flags[2], SIP_PAGE3_FLAGS_TO_COPY); + /* Get the outbound proxy information */ + ref_proxy(p, obproxy_get(p, peer)); + /* Send OPTIONs to peer's fullcontact */ if (!ast_strlen_zero(peer->fullcontact)) { ast_string_field_set(p, fullcontact, peer->fullcontact);