
Igor
10.02.2017
11:46:34
?


Alexandru
10.02.2017
11:46:38
2017/02/09 15:27:05.305340 kamailio_ip:5060 -> customer_ip:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP customer_ip:5060;branch=z9hG4bKio9d2t208818otnefha0.1
Record-Route: <sip:kamailio_ip;lr=on;did=812.c532>
From: 38515492121 <sip:38515492121@customer_ip:5060;user=phone>;tag=593269034
To: 38631626991 <sip:38631626991@kamailio_ip:5060;user=phone>;tag=c4KpH0pFvv63r
Call-ID: cfcylgeeidibylhylbay4algidiooocr@SoftX3000
CSeq: 1 INVITE
Contact: <sip:38631626991@freeswitch_ip:5060;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.6.9-16-d574870~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Require: timer
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Session-Expires: 1800;refresher=uac
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 218
P-Asserted-Identity: "Outbound Call" <sip:EEA38631626991@kamailio_ip>
контакт прилетает от меня нормальный
Contact: <sip:38631626991@freeswitch_ip:5060;transport=udp>

Google

Alexandru
10.02.2017
11:47:57
но ACK прилетает не
ACK sip:38631626991@freeswitch_ip:5060;transport=udp SIP/2.0
a
ACK sip:38631626991@kamailio_ip:5060;transport=udp

Igor
10.02.2017
11:48:23
да да, понял

Alexandru
10.02.2017
12:09:05
да елки палки
нету там такого чтоли?

Igor
10.02.2017
12:12:39
13 и 8 почитайте
не нашел сходу
про 3ХХ там четко написано
что при ответе 3хх должен быть указан новый контакт, и UAC должен отвечать ACK на новый контакт

Dmitriy
10.02.2017
12:14:36
ACK покажите

Alexandru
10.02.2017
12:16:26
2017/02/09 15:27:05.404782 customer_ip:5060 -> kamailio_ip:5060
ACK sip:38631626991@kamailio_ip:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP customer_ip:5060;branch=z9hG4bK5j8iti105g6s8d6pls50.1
From: 38515492121 <sip:38515492121@customer_ip:5060;user=phone>;tag=593269034
To: 38631626991 <sip:38631626991@kamailio_ip:5060;user=phone>;tag=c4KpH0pFvv63r
Call-ID: cfcylgeeidibylhylbay4algidiooocr@SoftX3000
CSeq: 1 ACK
Max-Forwards: 29
Content-Length: 0
Route: <sip:kamailio_ip;lr=on;did=812.c532>

Dmitriy
10.02.2017
12:22:08
как попросили - так и шлёт, раз есть Record-Route, то - 20.30 (3261)

Alexandru
10.02.2017
12:24:45
ну так роутить на прокси не значит указывать адрес прокси в uri
это разные вещи

Google

Alexandru
10.02.2017
12:26:42
да нет же ну, Request-URI в ACK это точно контакт из 2xx
When a UAC receives a response that establishes a dialog, it
constructs the state of the dialog. This state MUST be maintained
for the duration of the dialog.
If the request was sent over TLS, and the Request-URI contained a
SIPS URI, the "secure" flag is set to TRUE.
The route set MUST be set to the list of URIs in the Record-Route
header field from the response, taken in reverse order and preserving
all URI parameters. If no Record-Route header field is present in
the response, the route set MUST be set to the empty set. This route
set, even if empty, overrides any pre-existing route set for future
requests in this dialog. The remote target MUST be set to the URI
from the Contact header field of the response.
кажется оно, не?
12.1.2

wildmoon
10.02.2017
14:12:19
Микита? Никитенко?

Mykyta
10.02.2017
14:12:39
Да
Привет всем

Denis 災 nobody
13.02.2017
10:05:53
To allow for simultaneous call forwarding (ringing multiple endpoints for a user including extension and cell phone at the same time for example)- we need to add {ignore_early_media=true} in the public.xml configuration.
Without this freeswitch will use the first contact from a 183 progress with SDP message and if a user picks up a call on their extension there will be no audio. Ignore early media will force Freeswitch to use the contact for the endpoint that answers.
обнаружено в инете, может кому будет полезно
432 session(s) - peak 633, last 5min 511
мде
нагрузки растут..

Igor
13.02.2017
10:34:56
а cps?

Denis 災 nobody
13.02.2017
11:08:54
около 50

Andrey
13.02.2017
11:36:51
както много как для 400 сессий

Denis 災 nobody
13.02.2017
11:38:14
ок, ближе к 30 ) пик около 60, но аптайм 12 дней
2017-02-13 15:13:12.832208 [WARNING] switch_core_media.c:2042 Asynchronous PTIME not supported, changing our end from 20 to 10
жесть )

Vladimir
13.02.2017
13:37:45
О, а фрисвитч умеет cps ограничивать?

Igor
13.02.2017
13:37:52
да

Google

? Stan
13.02.2017
13:37:55
mod_limit

Igor
13.02.2017
13:38:01
нее
искаропке же умеет
fsctl sps MAX
где МАХ - число

? Stan
13.02.2017
13:38:33
так это общее, на сам фрисвич

Igor
13.02.2017
13:38:41
ну

Vladimir
13.02.2017
13:38:46
Ну надо не на сам, собсна

Igor
13.02.2017
13:39:07
а ну если на маршрут/домен/хомячка то limit)

Vladimir
13.02.2017
13:39:48
Это именно cps зарежет или просто сессии?

? Stan
13.02.2017
13:40:10
там если через дробь укажете единицу времени, то цпс в единицу времени

Vladimir
13.02.2017
13:40:46

Igor
13.02.2017
15:10:14
кстати, насчет виртуальной АТС билайна
есть у кого нибудь щас под рукой?
всегда sendrecv начал от них лететь?

Denys
13.02.2017
15:18:11
Привет. Как можно динамически менять в SDP s=FreeSWITCH на свое значение?
Мне надр чтоб в инвайте от FS приходила моя кастомная информация

Igor
13.02.2017
15:19:34
в параметре профиля username=
а

Google

Igor
13.02.2017
15:19:41
динамически

Denys
13.02.2017
15:20:02
И именно в SDP
Нашел переменную switch_r_sdp, но она ридонли
И вроде как это sdp, которое прилетает, а не улетает

Igor
13.02.2017
15:26:43
там помоему еще l_sdp
типа local

Denys
13.02.2017
15:28:49
local_sdp_str ?

Igor
13.02.2017
15:30:52
кажется да, ща сек, не могу вспомнитьь команду
там как то можно было переменную профиля поменять

? Stan
13.02.2017
15:31:16
nolocal?

Igor
13.02.2017
15:31:19
не не

Denys
13.02.2017
15:40:05
Даже можно просто что-то кастомное дописать в исходящем SDP
Но желательно s=, так как его прокся не модифицирует

Denis 災 nobody
13.02.2017
15:42:24
<param name="user-agent-string" value="IPPBX"/>
<param name="username" value="IPPBX" />
это в профиле
вот чтобы в диалплане, это хз

Alexandru
13.02.2017
15:46:21

Denys
13.02.2017
15:47:07
В wiki сказано, что ридонли она
И в нее пишется sdp звонящего

Igor
13.02.2017
15:57:39
https://wiki.freeswitch.org/wiki/Variable_sip_user_agent

Google

Igor
13.02.2017
15:57:42
не пробовали?
тот вариант не нашел, недавно в исходниках ковырялся видел что то с заменой параметров профиля из API
кто нибудь с Active Directory делал сростку?
по части контактов

Denis 災 nobody
13.02.2017
16:18:27
через mod_radius попробуй
или если есть ldap
но имхо лучше свой модуль накидать

Igor
13.02.2017
16:19:42
ды я чот почитал, примерно так и пишут, делайте свой модуль и не забивайте голову, ибо ни одна из реализаций ldap для фс не доведена до конца
в любом случае спасибо)

Denis 災 nobody
13.02.2017
16:20:17
взять за основу тот же модрадиус и допилить под нужды

Denys
13.02.2017
16:25:38

Igor
13.02.2017
16:28:06

Denis 災 nobody
13.02.2017
17:24:18
перед каждым вызовом? )

Igor
13.02.2017
17:29:07
ды а разница?) что так, что так дергать API)
ну или генерить кусок SDP целиком из дп