public static void addOriginAvps ( Message m , MetaData md ) { // FIXME: check for "userFqnAsUri" ? AvpSet set = m . getAvps ( ) ; if ( set . getAvp ( Avp . ORIGIN_HOST ) == null ) { m . getAvps ( ) . addAvp ( Avp . ORIGIN_HOST , md . getLocalPeer ( ) . getUri ( ) . getFQDN ( ) , true , false , true ) ; } if ( set . getAvp ( Avp . ORIGIN_REALM ) == null ) { m . getAvps ( ) . addAvp ( Avp . ORIGIN_REALM , md . getLocalPeer ( ) . getRealmName ( ) , true , false , true ) ; } }
Used to set origin previously done in MessageParser .