Assuming successful auth in check_peer_ok(), I. These dialog fields are set, mostly from the peer, in both create_addr_from_peer() and check_peer_ok(): ------------------------------------------------------- flags[0..2] peername authname peersecret peermd5secret mohsuggest mohinterpret parkinglot engine dialog fullcontact accountcode context language cid_num cid_name cid_tag noncodeccapability capability prefs jointnoncodeccapability timer_t1 timer_b autoframing DISCREPANCIES: disallowed_methods: is set, but set_pvt_allowed_methods () called only in check_peer_ok() t38_maxdatagram and set_t38_capabilities(): set/called, but ast_udptl_new_with_bindaddr() is called only in create_addr_from_peer() FUNCTIONS: ast_rtp_codecs_packetization_set(ast_rtp_instance_get_codecs(dialog->rtp), dialog->rtp, &dialog->prefs); ast_cc_copy_config_params(dialog->cc_params, peer->cc_params); dialog_initialize_rtp() II. These are set only in create_addr_from_peer() ------------------------------------------------- mwi_from tohost fromdomain fromuser directmediaha portinuri fromdomainport allowtransfer maxcallbitrate peerauth !! not setting it is known to be a problem rtptimeout !! also a problem, and also: The following rtp setup code is found only in create_addr_from_peer(): if (dialog->rtp) { /* Audio */ ast_rtp_instance_set_prop(dialog->rtp, AST_RTP_PROPERTY_DTMF, ast_test_flag(&dialog->flags[0], SIP_DTMF) == SIP_DTMF_RFC2833); ast_rtp_instance_set_prop(dialog->rtp, AST_RTP_PROPERTY_DTMF_COMPENSATE, ast_test_flag(&dialog->flags[1], SIP_PAGE2_RFC2833_COMPENSATE)); ast_rtp_instance_set_timeout(dialog->rtp, peer->rtptimeout); ast_rtp_instance_set_hold_timeout(dialog->rtp, peer->rtpholdtimeout); } if (dialog->vrtp) { /* Video */ ast_rtp_instance_set_timeout(dialog->vrtp, peer->rtptimeout); ast_rtp_instance_set_hold_timeout(dialog->vrtp, peer->rtpholdtimeout); } if (dialog->trtp) { /* Realtime text */ ast_rtp_instance_set_timeout(dialog->trtp, peer->rtptimeout); ast_rtp_instance_set_hold_timeout(dialog->trtp, peer->rtpholdtimeout); } FUNCTIONS: ref_proxy(dialog, obproxy_get(dialog, peer)); III. Only set in check_peer_ok() -------------------------------- jointcapability callingpres amaflags maxforwards subscribecontext FUNCTIONS: do_setnat(p);