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

Pages: 1 [2] 3 4 ... 35
16
YateBTS / Re: YateBTS USRP support
« on: December 14, 2018, 12:49:15 AM »
The new transceiver is using separate module for radio interface.
Currently only bladeRF is supported.

17
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: December 14, 2018, 12:47:22 AM »
Message* m = new Message("chan.masquerade");
....
Engine::dispatch(m);

Engine::dispatch() don't release the object.
Dispatch is assuming you need data on return!
You must delete it after dispatch or call Engine::enqueue()

18
Other Yate server issues / Re: send keepalives only during SIP calls
« on: December 10, 2018, 02:54:28 AM »
Custom parameters configured in cdrbuild.conf and set via copyparams in call.execute will be available in all call.cdr messages related a given call leg.

You must track the number of calls related to a given parameter (line ?)
call.cdr with operation=initialize. Increase counter. Start keep alive if counter=1
call.cdr with operation=finalize. Decrease counter. Stop keep alive if counter=0

19
Yate users hangout place / Re: Custom API - NamedList
« on: December 10, 2018, 02:08:18 AM »
You should take a look at
CdrBuilder class
and
CdrBuilder::update(const Message& msg ...) method.

20
Other Yate server issues / Re: send keepalives only during SIP calls
« on: December 10, 2018, 01:15:58 AM »
You may set the 'keepalive' parameter if want to change the interval (value in seconds).
See:
https://docs.yate.ro/wiki/Accfile

In an external or javascript module you may track call.cdr messages with operation=initialize/finalize.
Track channels belonging to your line. You don't need to logout the line. Just send same parameters as login with changed keepalive
The line parameter can be added to CDR.
See:
https://docs.yate.ro/wiki/CDR_Build_Module
https://docs.yate.ro/wiki/How_to_add_custom_parameters_in_CDR_from_routing

If your last phrase means you want to have some parameters set in outbound/inbound calls using a line you may set them.
All line parameters starting with 'out:' prefix will be set for outbound call legs using them (prefix stripped).
Same for 'inb:' parameters for inbound calls.

21
Yate users hangout place / Re: Custom API - NamedList
« on: December 10, 2018, 12:40:20 AM »
You may take a look at modules/cdrbuild.cpp
It tracks call legs and update parameters associated with them.

22
Other Yate server issues / Re: send keepalives only during SIP calls
« on: December 04, 2018, 04:18:24 AM »
There is no keep alive for calls using UDP transport.
For UDP keep alive is only used by registered lines.

If you want to implement a feature to send keep alive for active calls you may
1. Add variable to hold keep alive time
2. Re-implement  'virtual void checkTimers(Message& msg, const Time& tmr)' in YateSIPConnection
    Send keep alive: see YateSIPLine::keepalive() for sending keep alive packet
    Don't forget to call Channel::checkTimers() !!!


23
Yate users hangout place / Re: Custom API - NamedList
« on: November 29, 2018, 05:34:17 AM »
Currently there is no mechanism to set arbitrary parameters to messages sent by Channel.

This is a custom application.
What I understand is you want something cdrbuild module is already doing: store configured parameters and put them in call.cdr messages.

You must write your own application (module) who must:
1. track call legs from creation to destruction
2. store associated parameters
3. intercept channel messages with message handlers at high priority and fill them with stored parameters

24
Yate users hangout place / Re: Custom API - NamedList
« on: November 29, 2018, 02:21:16 AM »
You can use a NamedList to manage your own parameters but you won't be able to access them from other modules like regexroute.

Adding:
NamedList* nl = new NamedList("");
// ... fill 'nl' params
// Add it to a Message
msg.setParam(new NamedPointer("customdataList",nl));

Retrieve from Message:

NamedList* nl = YOBJECT(NamedList,msg.getParam("customdataList"));
if (nl) {
    // Handle it
}
else {
   // Parameter not present or not a NamedList object
}

25
Yate users hangout place / Re: Custom API - NamedList
« on: November 29, 2018, 01:38:02 AM »
Please describe more accurate what do you want to do and its purpose.

If you want to add a NamedList parameter to a Message keep in mind that only your module will handle it.

26
YateBTS / Re: yateBTS run errors
« on: November 22, 2018, 06:41:43 AM »
How did you installed yate?

27
YateBTS / Re: yateBTS run errors
« on: November 22, 2018, 04:55:17 AM »
The first entry indicates Nuand vendor (2cf0).
The bladerf module don't support de the product with id 5250.

You should ask why there is another yate instance started.
Check services list.

28
YateBTS / Re: yateBTS run errors
« on: November 22, 2018, 02:28:51 AM »
You have another yate instance running.
See the 'Unable to bind ,,,' messages.

For non found device please see:
https://forum.yate.ro/index.php?topic=2031

29
YateBTS / Re: Yate Failed to open usb Device
« on: November 22, 2018, 02:23:57 AM »
With the board plugged in, please type the following command in a console:
lsusb
Post the output here.

30
Other Yate server issues / Re: Where is the sdp data ?
« on: November 12, 2018, 01:51:01 AM »
When you are forwarding the SDP each phone will send RTP to other phone's IP.

IP packets route depends on IP network architecture.

Pages: 1 [2] 3 4 ... 35