On Mon, Nov 2, 2009 at 4:31 PM, CharlesFan <CharlesFan at calarm.cn> wrote: > Hi . > > > > When I send ?INVATE? message to other client. I append ?alt? attribute int > sdp, ?a=alt: 1 1.0 user xxxx 192.168.100.2 1000? > > > > It is means ?a=alt:1 1.0 user xxx <local ip> <local port>? > > > > How to get the sdp attribute on the ?on_call_state()?, and How to change the > taget media port in this function. > > You can fllow this FAQ entry on how to extract message elements from pjsip_event: http://trac.pjsip.org/repos/wiki/FAQ#pjsip_event I'm not sure I understand what you mean by changing the target port. Cheers Benny