pjsua_hangup_call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

i'm developing a client sip in pjsip. In callback on_call_state in a 
particular situation if the current active call is terminated, i hung up 
all the other call active. When the other call are in state confirmed, 
it's ok. If are in state early there is this error:

  08:52:13.137   conferenceUA  Call 3 DISCONNECTED [reason=200 (Normal 
call clearing)]

  08:52:13.142   conferenceUA  Call 4 state=DISCONNECTED, Status number 
= 6, last status = Request Terminated,last status_num= 487

  08:52:13.142   conferenceUA  Call 4 DISCONNECTED [reason=487 (Request 
Terminated)]
  08:52:13.142 sip_transactio  Unable to register CANCEL transaction 
(key exists)
  08:52:13.142   pjsua_call.c  Failed to send end session message: 
Object already exists (PJ_EEXISTS) [status=70015]
  08:52:13.142   conferenceUA  Call 5 state=DISCONNECTED, Status number 
= 6,last status = Request Terminated,last status_num= 487

  08:52:13.143   conferenceUA  Call 5 DISCONNECTED [reason=487 (Request 
Terminated)]

I think the problem is when I try to hangup calls that are in EARLY state.
   inside callback on_call_stateI I call this function to perform this 
operation:

static void hangup_other_call(int call_id)
{
     int call_cnt;
     pjsua_call_info ci;
     unsigned int i;
     call_cnt = PJ_ARRAY_SIZE(ua.call_ids);
     pjsua_enum_calls(ua.call_ids, &call_cnt);


     for (i=0; i<call_cnt; ++i) {

         if (ua.call_ids[i] != call_id) {
             pjsua_call_hangup(ua.call_ids[i],0,NULL,NULL);
             }
     }
}

Any suggestion?

Regards

Alessandro

-- 
Ing. Alessandro Luppi
Software development
Seletech srl
Via Collodi 8, 20052 Monza (MI) - Italy
Tel: +39.039.5962000 - Fax: +39.039.9716905
email: a.luppi at seletech.com - Web: www.seletech.com   or   www.seletech.eu




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux