-2

in my voip App when I add breakpoint in wifi it works but when I remove breakpoint in wifi it doesn't work but in 4G and 3G it works. it is very strange, Thanks for any help.

here is my code but I don't think so if this is the problem.

- (void) smHoldCall {
    NSLog(@"Steve note: Hold the call here");
    LogDebug(TAG_SIP, @"__SM__ smHoldCall");

    pjsua_call_set_hold([call_id intValue], NULL);
}

- (void) smUnholdCall {


    LogDebug(TAG_SIP, @"__SM__ smUnholdCall");
    pjsua_call_reinvite([call_id intValue], PJ_TRUE, NULL);
}
Steven
  • 762
  • 1
  • 10
  • 27

1 Answers1

0

I resolved the issue by adding :

  [NSThread sleepForTimeInterval: 4.0f ];
Steven
  • 762
  • 1
  • 10
  • 27