Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] mid registrar global lookup flag #3355

Closed
volga629-1 opened this issue Apr 9, 2024 · 19 comments
Closed

[BUG] mid registrar global lookup flag #3355

volga629-1 opened this issue Apr 9, 2024 · 19 comments
Assignees

Comments

@volga629-1
Copy link

volga629-1 commented Apr 9, 2024

Version :


opensips -V
version: opensips 3.4.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: f3e0d5333
main.c compiled on 06:17:39 Aug  9 2023 with gcc 12

Setup:

Full federated shared cluster with Cassandra db as persistently layer .

Issue:

If Cassandra Database location table contain multiple extension registrations, mid registrar lookup function with global flag ( find all ) failing with error

Apr  8 20:00:47 sbc5 /usr/sbin/opensips[7105]: ERROR:[CONTACT_LOOKUP] [INVITE] [1410] [lHjOz5H7IofgePEtJ8jB4g..]  Contact found [sip:[email protected]:59164;line=k66lrfwm;ob] From 1905 Domain  sip.domain.com
Apr  8 20:00:47 sbc5 /usr/sbin/opensips[7105]: ERROR:core:parse_uri: bad char ':' in state 3 parsed: <sip:sip:10.5.29.7> (17) / <sip:sip:10.5.29.7:5060> (22)
Apr  8 20:00:47 sbc5 /usr/sbin/opensips[7105]: ERROR:tm:uri2proxy: bad_uri: sip:sip:10.5.29.7:5060

Module cfg

#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 2)
modparam("mid_registrar", "received_avp", "$avp(RECEIVED)")
modparam("mid_registrar", "max_contacts", 10)
modparam("mid_registrar", "tcp_persistent_flag", "TCP_PERSIST_REGISTRATIONS")
modparam("mid_registrar", "outgoing_expires", 7200)
#modparam("mid_registrar", "contact_id_param", "ctid")

Code

route[CONTACT_LOOKUP] {
        $var(lookup_flags) = "branch,method-filtering";
        $var(clst_id) = 1;
        if (cluster_check_addr($var(clst_id), $si)) {
                ##xlog("[CONTACT_LOOKUP] [$rm] [$cfg_line] from cluster, doing local lookup only\n");
        } else {
                ##xlog("[CONTACT_LOOKUP] [$rm] [$cfg_line] from outside, doing global lookup\n");
                $var(lookup_flags) = $var(lookup_flags) + ",global";
        }
        mid_registrar_lookup("location",$var(lookup_flags));

Cassandra data sample


cqlsh:opensips> SELECT * FROM userlocation WHERE aor = '[email protected]' ALLOW FILTERING ;

 id                              | aor                                        | home_ip
--------------------------------------------+--------------------------+--------------------
 [email protected]:10.5.29.7:5060 | [email protected] | sip:10.5.29.7:5060
 [email protected]:10.5.29.6:5060 | [email protected]| sip:10.5.29.6:5060

(2 rows)
cqlsh:opensips>


Expected result

Contact lookup will be completed without errors.

Thank you.

@volga629-1 volga629-1 changed the title [BUG] mid registrar global lookup parser issue [BUG] mid registrar global lookup Apr 9, 2024
@volga629-1 volga629-1 changed the title [BUG] mid registrar global lookup [BUG] mid registrar global lookup flag Apr 9, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Apr 24, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Apr 24, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label May 10, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label May 10, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label May 26, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label May 26, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Jun 11, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Jun 11, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Jun 27, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Jun 27, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Jul 13, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Jul 13, 2024
Copy link

github-actions bot commented Aug 8, 2024

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Aug 8, 2024
@volga629-1
Copy link
Author

In progress

@github-actions github-actions bot removed the stale label Aug 14, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Aug 29, 2024
@liviuchircu liviuchircu self-assigned this Sep 3, 2024
@liviuchircu liviuchircu added the bug label Sep 3, 2024
@stale stale bot removed stale labels Sep 3, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Sep 19, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Sep 19, 2024
Copy link

github-actions bot commented Oct 5, 2024

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Oct 5, 2024
Copy link

github-actions bot commented Nov 4, 2024

Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details.

@github-actions github-actions bot closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants