Cisco Unified Application Environment Developer Forums

« Back to Developers

Getting error in UnBridgedCalls

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am writing CUAE application on HTTP.GotRequest trigger. I am receiving 2 numbers in querystring parameters.
AFter receiving numbers, I made call to first number, OnMake_Complete1, I am initiating call to second number. Now both leg are connected with media server. OnMakeCall_Complete2, I am calling UnBridgeCalls to establish peer-to-peer call between two call legs but I am getting following errors -
=================================
16:08:25.336 I script1-6 ****Using Function 'OnMakeCall_Complete1'**************
******
16:08:30.336 W script1-6 Action '633909399502245402' timed-out waiting for a pro
vider response
16:08:30.336 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreo
s.ApplicationControl.InstanceDestruction
16:08:30.336 I script1-6 Script exited normally
16:08:30.727 W TM  Acting on timeout condition (1000101:UnbridgeCalls:20) [q=0,c
pu=2.274604%,mem=706715KB]
16:08:33.102 W TM  Acting on timeout condition (1000102:User_Hangup_P2P:10) [q=0
,cpu=0.001919963%,mem=706715KB]
===================================================
 
I am using H.323 provider.
 
Thanks,
 

hi Umesh,
 
P2P is not supported on H323. Go for other protocol e.g Sip, SCCP, or Jtapi.
 
Thanks
Nabhonil

Hi Nabhonil,
 
Thanks for the response. I am getting followng errors with SIP -
 
=====================
16:34:56.268 W script1-1 No handler registered for 'Metreos.Providers.Http.GotRequest' event
16:34:56.268 I script1-2 Starting script (i=0)
16:34:56.330 I SIP Added Sip callId 1000111 stackCallId
16:34:58.033 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.StartT
x
16:34:58.033 I script1-2 ****Using Function 'OnStartTx'********************
16:34:58.049 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.StartR
x
16:34:58.049 I script1-2 ****Using Function 'OnStartRx'********************
16:34:58.064 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.MakeCa
ll_Complete
16:34:58.064 I script1-2 ****Using Function 'OnMakeCall_Complete'********************
16:34:58.080 I SIP Added Sip callId 1000112 stackCallId
16:34:59.424 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.StartT
x
16:34:59.439 I script1-2 ****Using Function 'OnStartTx'********************
16:34:59.439 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.StartR
x
16:34:59.455 I script1-2 ****Using Function 'OnStartRx'********************
16:34:59.455 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.CallControl.MakeCa
ll_Complete
16:34:59.455 I script1-2 ****Using Function 'OnMakeCall_Complete1'********************
16:35:04.455 W script1-2 Action '633909399502245402' timed-out waiting for a provider response
16:35:04.455 I HttpInitiatedP2PCallBridge Enqueuing non-triggering event: Metreos.ApplicationControl
.InstanceDestruction
16:35:04.455 I script1-2 Script exited normally
16:35:04.846 W TM  Acting on timeout condition (1000111:UnbridgeCalls:20)
0,cpu=0%,mem=707821KB:

16:35:04.846 I SIP HandleTerminateCall
16:35:04.861 I SIP HandleTerminateCall
16:35:07.221 W TM  Acting on timeout condition (1000112:User_Hangup_P2P:10) [q=0,cpu=2.173287%,mem=7
07821KB]
===========================
 
I have created SIP trunk in CUCM and using "Default SIP" Call Route Group in CUAE.
 
Regards,
Umesh

hi Umesh,
 
Sorry I didnot noticed the steps properly in your first email. The P2P in CUAE can be achieved in this way:-
 
1. You need to get a incoming call into CUAE. Say Phone A dials the SIP trunk number.
2. Answer that call. store the CallId.
3. After that make another call to a different number say Phone B. Store CallId.
4. On MakeCall_Complete, do unbridge call, provide both the callid's.
5. Now both the calls basically Phone A and Phone B will be connected in a P2P fashion.
 
However the above steps is still cannot be achieveable by H323 so continue using SIP.
 
Thanks
Nabhonil

I m following same step. Examples are there at CUAE website at following link -
<a>http://207.97.235.133/wiki/display/CUAE/HttpInitiatedP2PCallBridge+-+Designer+Version</a>] 
I am attaching sample script. I am suspecting some configuration issues either at CUAE end or at CUCM end. I have created SIP trunk on CUCM and Cisco SIP domain in CUAE. Is there any other configuration needs to be taken care. Both call legs are established with media server.
 
Regards,
Umesh
 
Note: Unable to attach zip file , getting too large error message. Can I get ur email id to send sample script? My id is mailto:umesh.c@parsec-tech.com - Thanks

Hi Umesh,
 
Is your SIP Provider has the "DefaultOutboundFromNumber" configured? If not provide a Number and give it a try?
 
Thanks
Nabhonil

Yes, still getting same error.
 
Regards,
Umesh

hi Umesh,
 
I tried your application. In both the MakeCall actions, you have placed the From Action parameter as ¿P2P test¿ or something like that. Actually that is creating a problem. If you remove that, make it blank and then give it a try. It will work.
 
Thanks
Nabhonil

Hi Nabhonil,
 
Thanks for the help. It's working now after removing From parameter.
 
Regards,
Umesh

Observation: If you are hearing one-way voice after UnBridgeCalls then swap call id and peercallId values in UnBridgeCalls API and check.
 
 
Regards,
Umesh