Author |
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: April 03 2007 at 4:36am | IP Logged
|
|
|
Dear Sir,
I have checked SipCallCencelled document. It says that this notification is sent when TerminateCall is called after MakeCall before phone call completes its session setup. But unfortunately this is not true every time. If we TerminateCall immediately after MakeCall (before SipSendInvite message is received) then SipCallCencelled is not received.
You may see this situation from following event log.
Code:
IMMEDIATE_NOTIFICATION, Phone Line 0, SipOutgoingCallInitializing
PHONE_LINE_NOTIFICATION, Phone Line 0: SipOutgoingCallStart
PHONE_LINE_NOTIFICATION, Phone Line 0: SipDialTone
PHONE_LINE_NOTIFICATION, Phone Line 0: SipDialing
PHONE_LINE_NOTIFICATION, Phone Line 0: SipOnHook
|
|
|
What's your comment about this?
Regards
Jalal
|
Back to Top |
|
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: April 03 2007 at 5:32am | IP Logged
|
|
|
Another issue about SipCallCencelled is that when this event is received, GetLineStatus returns CallDirectionNone for direction when the call is outgoing call.
Notice that in this state we have not received SipOnHook, so the call is not finished yet.
Regards
Jalal
|
Back to Top |
|
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: April 03 2007 at 6:17am | IP Logged
|
|
|
Sorry, the issue I mentioned about GetLineStatus was our problem and is solved. After we checked again we realized that it was a thread execution problem.
But the first problem about SipCallCencelled exists and is not solved yet.
Thanks
Jalal
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: April 03 2007 at 9:29am | IP Logged
|
|
|
Jalal,
When you quickly canceled the outgoing call, did the media engine actually send the SIP INVITE and then CANCEL messages?
If you cancel the call so fast that no INVITE and no CANCEL gets transmitted, then that is why you are not receiving a call cancel event.
What does your SIP log look like?
Support
|
Back to Top |
|
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: April 03 2007 at 9:46am | IP Logged
|
|
|
Yes you are right. INVITE message is not sent. There is a short time between calling MakeCall and sending INVITE message. In this time DTMF dialing sound is heard from the sound card. If we TerminateCall during this then SipCallCancelled is not received.
But in your document page you have said that this message will be sent if TerminateCall is called after MakeCall!!!
Jalal
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: April 03 2007 at 11:17am | IP Logged
|
|
|
Jalal,
You are also right - the developer's reference does say that. We will have to update that information to be more clear.
Support
|
Back to Top |
|
|