I have two cisco phones .
phone A is behind NAT and phone-B is in public netwrok.
I configured directmedia=yes.
Now, when I try to call Phone-B to A,
Phone-B sends INVITE to asterisk.
asterisk sends INVITE to A(with its own media IP and port).
A sends back 200 OK.
asterisk sends 200 OK to B.
both asterisk and phone-B sends RTP packets to A.
question #1: here is why asterisk is sending 200 OK to B even before it is sending RE-INVITE with phone-B media ?
Is this expected ? I feel that B should receive 200 OK only after asterisk sends re-INVITE with B’s media.
Now, asterisk sends RE-INVITE with Phone-B media
A sends back 200 OK to asterisk.
question #2: What settings I should make to not create media session between asterisk and A.