0

How can I access the SIP headers (with PHP) ?

I'm trying to get the value of a SIP header. However I couldn't find any documentation how to do that ( in PHP ). There don't seem to be examples either so I've took few guesses but obviously couldn't get it right.  Below is the code that doesn't work. x-numbertodial is the header I'm trying to access. 

$headers = $currentCall->Headers;

$number = $headers->x-numbertodial;

say("Please wait while we transfer your call to $number");

So  I think the question is actually where  can I find the PHP documentation ? The examples are fine but is quite hard to browse through all of them just to find what you need. 

1 comment

Please sign in to leave a comment.