Stop Outgoing Call

TG
Ted Gerold
Thu, Mar 21, 2013 8:45 PM

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

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
MK
Manisha Khare
Fri, Mar 22, 2013 4:36 AM

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



---=========================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.


---=========================

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 ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
TG
Ted Gerold
Fri, Mar 22, 2013 5:38 AM

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



---=========================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.


---=========================


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 > > ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================ > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
SM
s.marek@avm.de
Fri, Mar 22, 2013 8:15 AM

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.

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.
AO
Alejandro Orellana
Fri, Mar 22, 2013 11:41 AM

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.

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.
TG
Ted Gerold
Fri, Mar 22, 2013 5:59 PM

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

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
TG
Ted Gerold
Fri, Mar 22, 2013 6:17 PM

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

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
MK
Manisha Khare
Mon, Mar 25, 2013 1:25 PM

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



---=========================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.


---=========================

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 ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
KS
Kchitiz Saxena
Mon, Mar 25, 2013 5:11 PM

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



---=========================Disclaimer:
This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at <a href="http://www.techmahindra.com/Disclaimer.html ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href=" http://tim.techmahindra.com/tim/disclaimer.html">
http://tim.techmahindra.com/tim/disclaimer.html</a> internally within
Tech
Mahindra.


---=========================


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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.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.org as a SIP > server. > > Thanks > Manisha > ============================================================================================================================Disclaimer: > This message and the information contained herein is proprietary and > confidential and subject to the Tech Mahindra policy statement, you may > review the policy at <a href="http://www.techmahindra.com/Disclaimer.html > ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href=" > http://tim.techmahindra.com/tim/disclaimer.html"> > http://tim.techmahindra.com/tim/disclaimer.html</a> internally within > Tech > Mahindra.============================================================================================================================ > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
MK
Manisha Khare
Tue, Mar 26, 2013 1:51 AM

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



---=========================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.


---=========================


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



---=========================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.


---=========================

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.com<mailto: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.org<http://iptel.org> as a SIP server. Thanks Manisha ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================ _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org<mailto:pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================