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 - ganapathi

Pages: 1 2 [3] 4 5 6
31
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: October 24, 2018, 12:52:53 AM »
To get Billid with channel ID :
Code: [Select]
Message m("chan.locate");
m.addParam("id", m_partycallid);
if (Engine::dispatch(m)) {
Channel* c = new Channel(dest,m,true)
c->billid();
}

like this ?.


32
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: October 24, 2018, 12:25:59 AM »
As i need an billid, incoming channel ID(sig/1),queue_name and other some other value that's should necessary to validate some condition and append into another message.

For Ex :
Once call.answered message received from sip(sip/1) then need to emit chan.connect with sip/1 with sig/1. Where i can id for sip/1 but i need to get value of sig/1 through some variable. Like queue_name on chan.disconnected message need to emit new message to queue module.

And Also original billid which calls to queue module is not passing into Queue_Out Module, so need value to append to sip outleg.

Current Call.answered handler :
Quote
if (msg.getValue("id") == m_partycallid) {
            msg.setParam("reason", "pickup");
            return true;
}
else if (msg.getValue("targetid") == m_ourcallid)
{
   msg.setParam("targetid", m_partycallid);
   Message* mc = new Message("chan.connect");
   mc->copyParam(msg, "id");
   mc->addParam("targetid", m_partycallid);
   Engine::dispatch(mc);
   return true;
}
return false;


Value want to store :
  • billid
  • queue_name
  • partycallid
  • ..

Want to Store into Cache Memory/ Temp File Storage/ :
Store Like : JSON Object/Object List/Single Variable

Just for scenario ,It would be great if values are stored into ObjectList from Queue Module and access it on Queue_Outgoing Module.

33
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: October 23, 2018, 11:59:50 PM »
I meant to say am calling handler on every call only to pass some value like Queue name, partycallid etc. If i used global one then have no idea to get those value, where value is not available on every messages to utilize.

Is there any API functionalities available to push value and access it whenever required throughout the messages.

34
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: October 23, 2018, 03:03:18 PM »
- Don't install a handler for each call in queue: install a module global one

Using it only to pass the variable value where i am not sure how to pass variable and access it accordingly through-out the messages. And it would lead memory leak as well ?.

35
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: October 23, 2018, 12:51:41 AM »
Thanks. Now Understand.

And here are few doubt.
  • How do i call QueueInChannel destructor when Customer call hangup to emit chan.hangup and clean up the qin channel. Where am tracking chan.disconnected and dispatching the chan.hangup forcefully, eventhough qin channel not cleared.
  • You are trying to say Delete the Message after dispatch of QueueInChannel or every message such as call.execute/chan.connect etc. If then how do delete the message ?. i didn't find any procedure to delete message in source and perfect time to delete message.

Instead of msg.getParam(YSTRING("id"))->c_str(), msg.getValue("id") is fine. Or i need to validate if id is exist or not to proceed further to avoid segfault.

36
Yate users hangout place / No Ringtone Custom Queue In Handle
« on: October 22, 2018, 01:30:31 AM »
Hi

As am using custom handling for Queue Incoming module. But unable to playback the ringtone or custom music to the customer end.

Here you can find the code : https://paste.linux.community/view/7d30f87c

Also tried to attach once channel connected as well with mentioned below code.

Code: [Select]
Message* m = new Message("chan.attach");
m->copyParam(msg, "id");
m->addParam("source", "tone/ring");

But there is no ringtone on customer end.

37
Yate users hangout place / Re: Call Queue Dropping automatically
« on: October 10, 2018, 05:27:35 AM »
Thanks for reply.

Yes i aware maxcall value is in milliseconds. in that log which i mentioned don't have any maxcall value, it was set it as NULL. And it was only one call but ringing 7 times to SIP user due to null value of maxcall.

Here my question is maxcall is mandatory or not. If mandatory what would be perfect value for queue system.

Because if i set it as NULL then Calls disconnected immediately with one single ring. If i set it as longer then call disconnection taking very longer (It means SIP user got ringing after customer line got disconnected. My guess due to that high maxcall timer(20000 msec= 20 sec)  it's keep ringing even if original call disconnected).


38
Yate users hangout place / Call Queue Dropping automatically
« on: October 09, 2018, 06:52:00 AM »
Hi

As i just configured queue module but as i seen operator side, calls  ringing and immediately disconnected with single beep every time instead of constant ringing if maxcall was not mentioned or mentioned very lower seconds.

If i mentioned as 20 sec for maxcall then it's keep ringing even if customer call disconnected earlier.

So how do i overcome this.

Log are available at : https://paste.linux.community/view/9be878d9 

39
Thanks .

But for me chan.attach is not working. Only call.execute is working for me. will u pls help me if there any parameters which I missed there ?.

Also I seen some necessary parameters in doc as consumer and sniffer. Don't know what would be the value for this call.

40
Yate users hangout place / Global Parameters for All Messages on yate
« on: September 30, 2018, 02:19:57 PM »
Hi

Is tht any possibilities to configure set of parameters globally and assign values initially/between on processing and use it every yate messages for entire call ?.

Example :
Assign parameters and value on call.execute and access it call.cdr ,chan.startup,call.answered, chan.dtmf, chan.hangup,chan.connected etc..?.

It would be great if yate to apply handler on those message and process it without gathering value from database everytime for each handler from custom scripts.

41
Yate users hangout place / Audio files as Loop Instead of call ringing
« on: September 28, 2018, 12:53:04 AM »
Hi

How do  i play audio files (file1,file2..) to customer who called in inbound as a loop until sip user answered.

Scenario :
  • Customer called as inbound.
  • call.route checking users
  •   call.execute with fork  calling list of users.
  • It's ringing when called in inbound. If system generated call to customer then while using chan.masquerade with call.execute then no ringing.it's been silent
In these both cases how do i play audio instead of ringing/silent as a loop until call answered by sip user.

As i seen mail list to play audio to the caller like mentioned below.
m = new Message("chan.masquerade")
m->addparam("message","chan.attach");
m->addparam("id",peerid of call.execute);
m->addparam("source","wave/play/fullpath/audio.au");

But as i guess it won't work as loop/instead of ringing.

Kindly help me on this.

42
Yate users hangout place / Re: Channel Message Direction Modification
« on: September 25, 2018, 08:50:58 AM »
Thanks. It's working as excepted for this scenario.

So if i want to re-modify in-between on handler but only on particular leg then it's possible ?

43
Yate users hangout place / Re: Channel Message Direction Modification
« on: September 25, 2018, 12:16:24 AM »
Hi
 I configured cdrbuild parameters like mentioned below in cdrbuild.conf configuration.

[parameters]

TB_direction=true

Anything else need to be configure ?

44
Yate users hangout place / Re: Channel Message Direction Modification
« on: September 24, 2018, 11:45:28 PM »
Attached revised log with two different cases.

1.Once first leg(sig channel) then call.route doesn't have TB_direction value.But call.execute of second leg assigning it properly.

2.Emit TB_direction value on call.route as well.(https://paste.linux.community/view/07e04e04)


45
Yate users hangout place / Re: Channel Message Direction Modification
« on: September 24, 2018, 03:17:45 AM »
Hi

Field = TB_Direction.

For Sig Channel
TB_direction = external
For Sip Channel
TB_direction = incoming

further both channel cdr also have same value as "incoming".

Log : https://paste.linux.community/view/2c14381c

Pages: 1 2 [3] 4 5 6