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 ... 5 6 [7] 8 9 ... 35
91
Please post logs for each case.
Make sure iax messages are printed on output (iax module debug must be at level 9).
Make sure message sniffer is enabled.

You may want to look at:
http://docs.yate.ro/wiki/Debugging_in_Yate
http://docs.yate.ro/wiki/Debug_Output
http://docs.yate.ro/wiki/Debugging_and,_or_Investigation_of_messages

92
It may be suitable to configure the interval per MGCPSpan and check it when sending the event.
You may allow it to be overridden in event's params.

MGCPSpan::init()
Initialize m_osiInterval from params

sendEvent:
if (fxs()) {
    String s = "L/osi";
    int interval = params ? params->getIntValue(YSTRING("interval"),mySpan->osiInterval(),0) : mySpan->osiInterval();
    if (interval)
        s << "(to=" << interval << ")":
    sendRequest(s);
}
return false;

93
This is just a suggestion:
analog.cpp
void AnalogChannel::detachLine():
Call:
m_line->setCirctuitParam("SOME_STR","SOME_OPTIONAL_VALUE");

mgcpca.cpp:
bool MGCPCircuit::setParam(const String& param, const String& value)
{
....
    if (param == YSTRING("SOME_STR")) {
        // Send NTFY now or mark to send it before/in DLCX?
       // See all places where DLCX is sent
   }
}

94
Yate does send a DLCX when the call is terminated.
I'm not sure what the gateway should do. I suppose it should terminate the connection.
The gateway already notified the line on hook event.

Ringback may be set by driver if not provided by called party.
Just set ringback=yes in the line group section.

There is no support in the analog module for disconnect notification.

95
Please post a log with message sniffer enabled.
Please make sure analog channel debug level is 10.

96
I think you should test it.

A suggestion:
m_unhold = Time::msecNow();
if(m_holdsec)
    m_holdsec = m_holdsec + m_unhold - m_hold;
else
    m_holdsec = m_unhold - m_hold;

may just be (simpler, you don't need an extra variable):
m_holdsec += Time::msecNow() - m_hold;

Question: m_holdsec is in seconds? if so, use Time::secNow() instead of Time::msecNow()

97
You may want to change:
if (String(operation) == YSTRING("update") && !s_cdrUpdates && String(m_status) == YSTRING("hold") && String(m_status) == YSTRING("unhold"))
to
if (String(operation) == YSTRING("update") && !s_cdrUpdates && m_status != YSTRING("hold") && m_status != YSTRING("unhold"))

I suppose you want not to return for status=hold/unhold

You may also want to handle call termination while on hold: the 'unhold' status won't be received!

98
Sorry, can't follow!
Please post a diff from svn.
You may use:
svn diff -x -p

99
CdrHandler::received():
You are using CdrHandler's data to update hold related status.
CdrHandler is the common message handler, for all cdr messages.

Use CdrBuilder's data !

100
Yate based projects / Re: Single Computer, multiple BTS and BladeRF
« on: May 31, 2018, 08:59:12 AM »
Update:
Meanwhile support for opening a specific device was added in ybladerf.conf:
[general]
serial=BOARD_SERIAL_NUMBER

101
Yate bugs / Re: [fix] Yate dialing problems...
« on: May 04, 2018, 01:02:07 AM »
You may set parameters for outbound calls in accfile for sip accounts by using the prefix 'out':
out:osip_From=
out:osip_To=
Inbound call parameters may be set using the prefix 'inb:'

102
Yate bugs / Re: Yate dialing problems...
« on: May 03, 2018, 12:41:39 AM »
You may always specify the line to use when routing to a sip target:
^34567$=sip/sip:\1@isp1.domain;line=MY_LINE

You may set the from and to headers as you wish to (if needed):
^34567$=sip/sip:\1@isp1.domain;line=MY_LINE;osip_From=MY_FROM_URI;osip_To=MY_TO_URI

103
You need to add an extra parameter indicating the parameters to be copied when the call is re-executed by dumb module:

.*=dispatch call.execute;callto=dumb/;direct=sip/sip:54321@x.x.x.x;osip_X-Acct=${acctid};copyparams=osip_X-Acct

The 'copyparams' parameter is a comma separated list of parameters to be copied.

104
Yate users hangout place / Re: Pass Alert-Info to another SIP Server
« on: April 25, 2018, 01:34:54 AM »
How can you detect phone to phone calls in yate?
Are they users registered to yate?
 

105
Yate bugs / Re: Supervison restarting yate unexpectedly
« on: April 25, 2018, 12:54:34 AM »
There are a lot of threads waiting in mysqldb for semaphore lock.
Most probably they are worker threads.
The supervisor will kill yate if no worker took a message from queue for some period. You should see it in log: Supervisor killing unresponsive child ...

1. Check your database. It may be slow (you may consider changing its structure)
2. Check if you are doing database queries on timer. Possible cause: too many database queries

You may consider increasing the number or workers in yate.conf and/or increasing the number of connections to database (mysqldb.conf, 'poolsize' parameter)

Pages: 1 ... 5 6 [7] 8 9 ... 35