Open GoogleCodeExporter opened 8 years ago
Actually you can send multiple packet on a single instance, however need to
slightly change your loop:
$sip = new PhpSIP();
while(SOME_CONDITION) {
// additional setup instructions redacted
$res = $sip->send(); // this blocks for a single response
// when placing a call you may get multiple
// responses (200, 183, etc)
// still the same "call" (dialog) set another URI, Method etc. do more stuff...
$res = $sip->send();
// new "call" - reset Call-ID, To/From tags
$sip->newCall();
// set new URI, SIP method etc.
$res = $sip->send();
}
Original comment by level7systems@googlemail.com
on 20 Apr 2011 at 9:43
[deleted comment]
I will try with the newCall() method. When I had the constructor outside the
loop I got the port in use error, I only moved it inside the loop for the
workaround.
Original comment by trixter%...@gtempaccount.com
on 20 Apr 2011 at 10:20
Original issue reported on code.google.com by
trixter%...@gtempaccount.com
on 20 Apr 2011 at 9:36