Hello,

o Laurent Schweizer [07/09/08 21:28]:
> Hello,
> 
>  
> 
> I need to remove some header in reply (AmB2BSession). In  wich funtion 
> can I do it ?

I think you need to make
   void relaySip(const AmSipRequest& orig, const AmSipReply& reply);
virtual, and then do like
void MyB2BSession::relaySip(const AmSipRequest& orig, const AmSipReply& 
reply) {

  if (some condition on reply or state) {
        AmSipReply mod_reply(reply);
        .. apply some modification to mod_reply, e.g. 
reply.headers+="SomeHeader: someval\r\n"; ...

        AmB2BSession::relaySip(orig, mod_reply);
        return;
  }

  AmB2BSession::relaySip(orig, reply);
}

meybe there is a cleaner solution, depends on the type of reply you need 
to modify.

Stefan

P.S. I think it is enough to post to either sems or semsdev, depending 
on the type of question, no ?

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to