level7systems / php-sip

PHP SIP User Agent class
MIT License
51 stars 39 forks source link

How listen to invite? #8

Closed serge-stotskiy closed 3 years ago

serge-stotskiy commented 3 years ago

Help please. Need to accept invite and send back 302 redirect https://blog.opensips.org/2018/07/05/handling-sip-redirect-requests-in-realtime/ . Thanks.

l7s commented 3 years ago

Hi, to do that, you would need to call setServerMode(true) after creating an instance of PhpSIP Regards, Chris