[SR-Users] Why does $T(id_index) return 0 even though t_suspend() is executed successfully?

2024-07-31 Thread mm e via sr-users
if(t_suspend()) { $dlg_var(start_time) = $timef(%Y/%m/%d %H:%M:%S); xlog("L_NOTICE", "==> processing suspended in transaction [$T(id_index):$T(id_label)] "); } else { xlog("L_ERR", "t_suspend err"); exit; } Sometimes, I get this log==> proces

[SR-Users] How to get the rtpengine IP used by the current call among multiple rtpengines

2024-07-15 Thread mm e via sr-users
modparam("rtpengine", "rtpengine_sock","udp:192.168.1.3:12221=2 udp:192.168.1.1:1=1 udp:192.168.1.5:12221=7") When rtpengine_sock is set to multiple rtproxies mode, how to get the id or ip of the rtpengine used in the current call? There is no information returned which rtpengine ___

[SR-Users] How to get the id or ip in the multiple rtproxies for LB with weights。

2024-07-15 Thread mm e via sr-users
modparam("rtpengine", "rtpengine_sock","udp:192.168.1.3:12221=2 udp:192.168.1.1:1=1 udp:192.168.1.5:12221=7") When rtpengine_sock is set to multiple rtproxies mode, how to get the id or ip of the rtpengine used in the current call? There is no information returned which rtpengine kamailio s

[SR-Users] How to achieve conversion from 180 to 183sdp

2024-01-28 Thread mm e via sr-users
When receiving to-tag and returning 180 ring without SDP body, how can it be converted into 183 with SDP and returned to from-tag. I want to realize that when I receive 180 no sdp, I will play an audio clip for the from-tag.: INVITE (SDP) ──

[SR-Users] How to get media IP

2024-01-24 Thread mm e via sr-users
When receiving a call I get the following message: INVITE sip:123456789@192.168.1.118:29363 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.118:65178;branch=z9hG4bK-d87543-4a4a6b6c49541b2c-1--d87543-;rport Max-Forwards: 70 Contact: To: "123456789" From: "96341";tag=af3c7c31 Call-ID: OTFhN2M2YmRmNmU2N2I1ZmQxN

[SR-Users] Re: registrar questions

2024-01-12 Thread mm e via sr-users
Cheers, it worked __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailin

[SR-Users] Re: registrar questions

2024-01-12 Thread mm e via sr-users
After using sqlops to modify the "subscriber" table, how to refresh the configuration to take effect? __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: k

[SR-Users] Re: registrar questions

2024-01-12 Thread mm e via sr-users
Sorry, this is a shell script. Is it possible to add username in the module method? __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing li

[SR-Users] registrar questions

2024-01-12 Thread mm e via sr-users
In addition to the RPC command "kamctl add username password", is there a module with a method to operate the "subscriber" database table? __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-

[SR-Users] How to know registration status

2024-01-08 Thread mm e via sr-users
After using the uac module to initiate registration to the remote end, is there a method to call back to notify the registration result? I want to get the registration result, such as 200 or 403 __ Kamailio - Users Mailing List - Non Commerc

[SR-Users] How to use uac.reg_add command?

2024-01-05 Thread mm e via sr-users
./kamcmd uac.reg_add 789798 789798 mydomain.com 789798 myteldomain.com . 789798 123456 . sip:sip6.telco.nl 360 0 10 mydomain.com:5060 udp:mydomain.com:5060 error: 400 - Invalid Parameters Can you provide me with a case, I don't know how to enter the correct format. __

[SR-Users] How to hang up the call in xhttp routing

2023-12-20 Thread mm e via sr-users
event_route[xhttp:request] { if ($hu =~ "hangupCall"){ $var(body) = $rb; xhttp_reply("200", "OK", "",""); jansson_get_field($var(body), "callid", "$var(callid)"); jansson_get_field($var(body), "cseq", "$var(cseq)"); if (t_cancel_callid("$var(callid)", "$var(cseq)", "22")) { xlog("L_NOTICE", "t_can