[pjsip] Fwd: How to end a premature call

Rodrigo Vega vegaroy13 at gmail.com
Tue Apr 15 16:57:49 EDT 2008


Hi:

My previous report was successful handled...

My mistake was the following:

Due to the fact that I'm testing with Asterisk, my test over the dial plan
of Asterisk had the following conf:

exten => 612,1,wait( 20)
exten => 612,2,Answer( )
exten => 612,3,Echo( )

And did not know, but that config does not send an 180 ringing (from
asterisk), so the call is a little bit wrong. Thats why my call_hangup(cc,
'487', None) wasn't perform, I did another test callig to kphone softphone
and over the same stage, it sends the 180 ringing, and the call_hangup 487
is correct and the call is terminated.

If helps to any one, this would be the correct extension in Asterisk:

exten => 612,1,Ringing() ;<<<--- this was missing
exten => 612,2,wait( 20)
exten => 612,3,Answer( )
exten => 612,4,Echo( )

And for the py_pjsua.call_send_request, I think is not included on the
module py_pjsua.

py_pjsua ROCKS!!!
cheers.



---------- Forwarded message ----------
From: Rodrigo Vega <vegaroy13 at gmail.com>
Date: Tue, Apr 15, 2008 at 3:16 PM
Subject: How to end a premature call
To: pjsip list <pjsip at lists.pjsip.org>


Hi:

I'm using py_pjsua, I am wondering how to cancel/end a premature call using
py_pjsua.

the stage is as follow:

I made a call, py_pjsua.call_make_call(), the other ua does not answere and
rings, the ua thats start the calling wants just to hang up, I think I have
to do a BYE request, but I don't know how to do that. I also did a
py_pjsua.call_hangup(curren_call, 487, None), but with not success, and
doing py_pjsua.call_send_request(current_call, 'BYE', None) python told me
that module object has no attribute 'call_send_request', I am using rev
1931.

Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080415/94ad3de2/attachment.html>


More information about the pjsip mailing list