Hello,
If I'm using pjsua_call_make_call to make an outgoing call how do I stop this call if it hasn't answered yet?
I know that I can hangup a call based on the call_id but before the call is actually answered no call_id is given
so I'm wondering how to terminate it before it even answers.
Thank you!
-Ted
pjsua_call_hangup_all will work. Even if somebody didn't answer, you can disconnect the call.
Thanks
Manisha
From: pjsip [pjsip-bounces@lists.pjsip.org] On Behalf Of Ted Gerold [tedgerold@icloud.com]
Sent: Friday, March 22, 2013 2:15 AM
To: PJSip
Subject: [pjsip] Stop Outgoing Call
Hello,
If I'm using pjsua_call_make_call to make an outgoing call how do I stop this call if it hasn't answered yet?
I know that I can hangup a call based on the call_id but before the call is actually answered no call_id is given
so I'm wondering how to terminate it before it even answers.
Thank you!
-Ted
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
---=========================
Yes, but this will disconnect me as well as anyone else calling.
On Mar 21, 2013, at 9:36 PM, Manisha Khare MK0065294@TechMahindra.com wrote:
pjsua_call_hangup_all will work. Even if somebody didn't answer, you can disconnect the call.
Thanks
Manisha
From: pjsip [pjsip-bounces@lists.pjsip.org] On Behalf Of Ted Gerold [tedgerold@icloud.com]
Sent: Friday, March 22, 2013 2:15 AM
To: PJSip
Subject: [pjsip] Stop Outgoing Call
Hello,
If I'm using pjsua_call_make_call to make an outgoing call how do I stop this call if it hasn't answered yet?
I know that I can hangup a call based on the call_id but before the call is actually answered no call_id is given
so I'm wondering how to terminate it before it even answers.
Thank you!
-Ted
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
---=========================
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi Ted,
| If I'm using pjsua_call_make_call to make an outgoing call how do
| I stop this call if it hasn't answered yet?
| I know that I can hangup a call based on the call_id but before the
| call is actually answered no call_id is given
Did you notice the last parameter of pjsua_call_make_call()? You will get
a call_id from that, even if the call is not connected.
| so I'm wondering how to terminate it before it even answers.
You can perfectly use pjsua_call_hangup() with the call_id given by
pjsua_call_make_call().
Or do I miss something?
Good luck,
Sebastian.
as mentioned here pjsua_call_make_call gives you a unique call identifier, use that with
pj_status_t status = pjsua_call_hangup(identifier, 0, NULL, NULL);
the idea of of pjsua is to abstract you of all the lower layer details, thus this works whether you are connected or not. the logic underneath takes care of sending the proper message in case of ending before answer a CANCEL will be send by pjsip.
hope this helps
--
Alejandro
Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any.
Thanks Sebastian (and Alejandro). I will give those suggestions a try.
On Mar 22, 2013, at 1:15 AM, s.marek@avm.de wrote:
Hi Ted,
| If I'm using pjsua_call_make_call to make an outgoing call how do
| I stop this call if it hasn't answered yet?
| I know that I can hangup a call based on the call_id but before the
| call is actually answered no call_id is given
Did you notice the last parameter of pjsua_call_make_call()? You will get
a call_id from that, even if the call is not connected.
| so I'm wondering how to terminate it before it even answers.
You can perfectly use pjsua_call_hangup() with the call_id given by
pjsua_call_make_call().
Or do I miss something?
Good luck,
Sebastian.
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
That did the trick guys. Works great. Thanks again for the help!
On Mar 22, 2013, at 10:59 AM, Ted Gerold tedgerold@icloud.com wrote:
Thanks Sebastian (and Alejandro). I will give those suggestions a try.
On Mar 22, 2013, at 1:15 AM, s.marek@avm.de wrote:
Hi Ted,
| If I'm using pjsua_call_make_call to make an outgoing call how do
| I stop this call if it hasn't answered yet?
| I know that I can hangup a call based on the call_id but before the
| call is actually answered no call_id is given
Did you notice the last parameter of pjsua_call_make_call()? You will get
a call_id from that, even if the call is not connected.
| so I'm wondering how to terminate it before it even answers.
You can perfectly use pjsua_call_hangup() with the call_id given by
pjsua_call_make_call().
Or do I miss something?
Good luck,
Sebastian.
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi all,
I am trying to subscribe the presence of my buddy, but everytime i am getting PJSUA_BUDDY_STATUS_UNKNOWN. after doing pjsua_buddy_add i am subscribing presence using pjsua_buddy_subscribe_pres. but still i am getting PJSUA_BUDDY_STATUS_UNKNOWN.
even in iPjsua i am getting the same status.
Can anybody help me in this. For the record i am using iptel.org as a SIP server.
Thanks
Manisha
---=========================
pjsua_buddy_add calls pjsua_buddy_subscribe_pres itself. You dont have to
call pjsua_buddy_subscribe_pres after pjsua_buddy_add. One reason of
unknown status could be parsing errors in PIDF document. You can check the
document coming from the server and check the PJSUA logs.
On Mon, Mar 25, 2013 at 6:55 PM, Manisha Khare
MK0065294@techmahindra.comwrote:
Hi all,
I am trying to subscribe the presence of my buddy, but everytime i am
getting PJSUA_BUDDY_STATUS_UNKNOWN. after doing pjsua_buddy_add i am
subscribing presence using pjsua_buddy_subscribe_pres. but still i am
getting PJSUA_BUDDY_STATUS_UNKNOWN.
even in iPjsua i am getting the same status.
Can anybody help me in this. For the record i am using iptel.org as a SIP
server.
Thanks
Manisha
---=========================
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Thanks kchitiz for your suggestion, i'll check the logs.
Thanks & Regards,
Manisha Khare | Tech Mahindra Ltd.
Sharda Annex,1st floor, Sharda Center, Pune 411 057, INDIA
Office: +91-20-42250000 | Extn. : 1888
Mobile No:- 8956256535, 9049563499
Email: manisha.khare@techmahindra.com
www.techmahindra.com
From: pjsip [pjsip-bounces@lists.pjsip.org] On Behalf Of Kchitiz Saxena [kchitiz.saxena@gmail.com]
Sent: Monday, March 25, 2013 10:41 PM
To: pjsip list
Subject: Re: [pjsip] Presence subscription is not working
pjsua_buddy_add calls pjsua_buddy_subscribe_pres itself. You dont have to call pjsua_buddy_subscribe_pres after pjsua_buddy_add. One reason of unknown status could be parsing errors in PIDF document. You can check the document coming from the server and check the PJSUA logs.
On Mon, Mar 25, 2013 at 6:55 PM, Manisha Khare <MK0065294@techmahindra.commailto:MK0065294@techmahindra.com> wrote:
Hi all,
I am trying to subscribe the presence of my buddy, but everytime i am getting PJSUA_BUDDY_STATUS_UNKNOWN. after doing pjsua_buddy_add i am subscribing presence using pjsua_buddy_subscribe_pres. but still i am getting PJSUA_BUDDY_STATUS_UNKNOWN.
even in iPjsua i am getting the same status.
Can anybody help me in this. For the record i am using iptel.orghttp://iptel.org as a SIP server.
Thanks
Manisha
---=========================
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
---=========================