Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jamie

Pages: 1 2 [3]

Thanks Marian and happy new year !

That makes sense now.

Yate users hangout place / Re: External Scripts support - Windows
« on: January 04, 2015, 01:02:55 PM »

Thanks Monica ... happy new year !

Just to confirm ( i didn't clarify in post ) ... I was referring to channel scripts ?

If so, I can see how we could do this if just an outbound call is invoked.

But I'm not so sure (yet) how it could be done from routing an inbound call in a global script. Seeing as YATE can't start a channel script using the 'external' command

Unless I'm misunderstanding some terms .... ie global and channel

At the moment ( example testing ) I've created a simple PHP script and running it as a service.

It's a simple script with an event loop that waits for a call and uses a class to hold and separate calls into.

Does this sound like I'm going in the right direction  ... hope this makes sense !

Yate users hangout place / Re: CDR finalize without combiner for 'id'
« on: December 14, 2014, 09:30:04 PM »

Hi Paul,

Thanks for the reply ... that makes sense.

I think I'm correct in saying ... I'm not using cdrcombine, as I prefer to log both directions of the call in my cdr table, so it's ok for me to disable.

I did this in yate.conf by adding cdrcombine.yate=no to the [modules] section.

Thanks again Paul !


Please could I ask for for help ?

As a simple training exercise for myself, I'm trying to achieve the following:

1. Make a Call
2. Wait for answer
3. Play 2 or more prompts, one after the other.
4. Disconnect

This is in a global php script on a Windows machine.

I've been loosely following an example suggested by Monica Tepelus here:

I understand the theory ok, but I'm having some difficulties implementing it.

The first step suggests to call execute to a dumb channel, then chan.masquerade a real destination on behalf of the dumb channel.

So, this is what I started with:

Code: [Select]

       $m = new Yate("call.execute");

       $m = new Yate("chan.masquerade");
       $m->SetParam("id", $id_from_above_call_execute   );
       $m->SetParam( "target", 'test2' );
       $m->SetParam( "caller",  'test5');

-----  listen for call.answer -----

       $m = new Yate("chan.masquerade");
       $m->SetParam("id", $id_from_above_call_execute );
       $m->SetParam("source", 'wave/play/C:\Program Files\Yate\share\sounds/' );

      ( test2 and test5 are two registered users )

but on running this, unfortunately I can't get past:

<dumb:WARN> Outgoing call with no target!

which appears to be generated from the call.execute to the dumb channel.

From getting 'call.answered' I was going to use the following

Multiple prompts using the notify and listening for 'eof'

Some help on getting me going on this would really be appreciated,

Thank you!

Yate users hangout place / CDR finalize without combiner for 'id'
« on: December 13, 2014, 12:47:15 PM »


Please could someone help me? I'm stuck !

I'm getting the following message "CDR finalize without combiner for '1418495556-2'" when hanging up

I'm using windows, running the following in a global external script.
An event loop surrounds this simply reporting back messages to me and $ev->Acknowledge()  , little else.

      Yate::Debug("Initiating Dialout");
      $m = new Yate("call.execute");
      $m->SetParam("target", 'test2');


      ( test2 and test5 are two registered users )

Everything works fine, the call arrives and i can answer it, but as soon as i hangup, I get the message  'CDR finalize without combiner for '1418495556-2'
Even the CDR is logged correctly in the database, ie we see initiate, update and finalize operations.

Am I missing something silly ?

Thank you!

Yate users hangout place / External Scripts support - Windows
« on: December 08, 2014, 04:50:21 PM »


Does anyone know if Yate V5 has support for running external scripts on a Windows platform ?

Thank you,

Hi Vankooch,

Sorry for the late reply, but thank you.



Please can you help me?

Forgive me if this is a silly question or if I've stated the obvious, but I'm rather new to Yate and still getting used to things.

I'm trying to extract some specific information from the Message Header, as follows

Code: [Select]
Message Header

From: "SB Call - FXO to IVR" <sip:FXOToIVR@>;tag=673e483b3e861190a7;ref=907817123456

( I've extracted this using Wireshark )

From YATE I need to be able to extract the  'ref=907817123456' part, but i can't see how to do it just yet !

The reason i need this value is i have calls arriving to YATE from/via a Cisco UC320W ( SIP PBX ) and it forwards useful bits of information within ‘ref’. Example the caller id of an FXO call or the extension used to make a call.

If someone could kindly point me in the right direction it would be very much appreciated,

Thank you!

Pages: 1 2 [3]