PHPAGI: Is it possible to add SIP-header?

Hi,
I want to add a SIP header to a call, directly in extensions.conf it seems to work, but not as flexible as it would be with php.

Does anyone know if it can be done ?

So what I’m looking for is something like this:
$agi->SIPAddHeader(“P-Asserted-Identity: NewText sip:111@10.10.10.10”);

I don’t think there is a function $agi->SIPAddHeader , but maybe there is another option to do something like this…

Thanks for any help,
Alain

I would use Kamailio for that…

but, why do you need that?