Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
Hi Julian. Please post the bug report on the tracker, so that we can fix it. Thanks and regards. Sergio G. On Sun, Jan 4, 2009 at 11:31 PM, Alex Balashov wrote: > Aha. Well, I guess it could make for an edifying bug report. > > Julian Yap wrote: > > > There are no config options in opensipsctlrc to be multi-domain aware > > so I would say that opensipsctl is broken in this respect. > > > > The relevant IF statement in opensipsctl only looks up the 'user' > > portion to check that it is unique: > > if is_value_in_db $DA_TABLE $DA_ALIAS_USER_COLUMN $TMP_OSIPSUSER; then > > minfo "$TMP_OSIPSUSER alias already in $DA_TABLE table" > > exit 0 > > fi > > > > On Sun, Jan 4, 2009 at 6:11 PM, Alex Balashov > wrote: > >> I'm not sure if opensipsctl is broken in this respect or if you have to > make > >> it aware that you're doing multi-domain support via its config file. > But > >> yes, when in doubt, manipulate the raw database. > >> > >> Julian Yap wrote: > >> > >>> I just tried manually inputting straight in to the DB and it works for > me. > >>> > >>> I guess that solves my issue. > >>> > >>> Thanks, > >>> Julian > >>> > >>> On Sun, Jan 4, 2009 at 5:58 PM, Alex Balashov < > abalas...@evaristesys.com> > >>> wrote: > Have you tried adding both combinations to the DB manually without > using > opensipsctl? > > On Jan 4, 2009, at 10:55 PM, "Julian Yap" > wrote: > > > So my only solution is then pass through +18085551...@a.domain.com > > (which isn't feasible) or to disable multi-domain? > > > > Is there a way I can accept both +18085551...@a.domain.com and > > +18085551...@1.2.3.4? > > > > - Julian > > > > On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov > > > > wrote: > >> Alias_db has a literal - not a virtual (i.e. uri == myself style, > aka > >> all > >> DNS aliases and locally homed IP interfaces) - approach to domains, > as > >> does > >> auth_db and others. > >> > >> One domain, and it must literally match the one in the RURI. > >> > >> Julian Yap wrote: > >> > >>> Using the alias_db module, if I look up an alias by the IP address > as > >>> the domain, it doesn't work. The alias table however does not let > me > >>> add the alias as an IP address as well as a domain. > >>> > >>> Error message is: DBG:alias_db:alias_db_lookup: no alias found for > >>> R-URI > >>> > >>> Example settings: > >>> Server: a.domain.com > >>> IP of server: 1.2.3.4 > >>> > >>> User: 1...@a.domain.com > >>> > >>> Alias: +18085551...@a.domain.com > >>> > >>> A call to +18085551...@1.2.3.4 fails when using > >>> alias_db_lookup("dbaliases");. > >>> > >>> I also can't add both aliases to the dbaliases table: > >>> # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com > >>> INFO: +18085551234 alias already in dbaliases table > >>> > >>> Thanks, > >>> Julian > >>> > >>> ___ > >>> Users mailing list > >>> Users@lists.opensips.org > >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >> -- > >> Alex Balashov > >> Evariste Systems > >> Web: http://www.evaristesys.com/ > >> Tel: (+1) (678) 954-0670 > >> Direct : (+1) (678) 954-0671 > >> Mobile : (+1) (678) 237-1775 > >> > >> > >> -- > >> Alex Balashov > >> Evariste Systems > >> Web: http://www.evaristesys.com/ > >> Tel: (+1) (678) 954-0670 > >> Direct : (+1) (678) 954-0671 > >> Mobile : (+1) (678) 237-1775 > >> > > > -- > Alex Balashov > Evariste Systems > Web: http://www.evaristesys.com/ > Tel: (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > Mobile : (+1) (678) 237-1775 > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Sergio Gutiérrez ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
Aha. Well, I guess it could make for an edifying bug report. Julian Yap wrote: > There are no config options in opensipsctlrc to be multi-domain aware > so I would say that opensipsctl is broken in this respect. > > The relevant IF statement in opensipsctl only looks up the 'user' > portion to check that it is unique: > if is_value_in_db $DA_TABLE $DA_ALIAS_USER_COLUMN $TMP_OSIPSUSER; then > minfo "$TMP_OSIPSUSER alias already in $DA_TABLE table" > exit 0 > fi > > On Sun, Jan 4, 2009 at 6:11 PM, Alex Balashov > wrote: >> I'm not sure if opensipsctl is broken in this respect or if you have to make >> it aware that you're doing multi-domain support via its config file. But >> yes, when in doubt, manipulate the raw database. >> >> Julian Yap wrote: >> >>> I just tried manually inputting straight in to the DB and it works for me. >>> >>> I guess that solves my issue. >>> >>> Thanks, >>> Julian >>> >>> On Sun, Jan 4, 2009 at 5:58 PM, Alex Balashov >>> wrote: Have you tried adding both combinations to the DB manually without using opensipsctl? On Jan 4, 2009, at 10:55 PM, "Julian Yap" wrote: > So my only solution is then pass through +18085551...@a.domain.com > (which isn't feasible) or to disable multi-domain? > > Is there a way I can accept both +18085551...@a.domain.com and > +18085551...@1.2.3.4? > > - Julian > > On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov > > wrote: >> Alias_db has a literal - not a virtual (i.e. uri == myself style, aka >> all >> DNS aliases and locally homed IP interfaces) - approach to domains, as >> does >> auth_db and others. >> >> One domain, and it must literally match the one in the RURI. >> >> Julian Yap wrote: >> >>> Using the alias_db module, if I look up an alias by the IP address as >>> the domain, it doesn't work. The alias table however does not let me >>> add the alias as an IP address as well as a domain. >>> >>> Error message is: DBG:alias_db:alias_db_lookup: no alias found for >>> R-URI >>> >>> Example settings: >>> Server: a.domain.com >>> IP of server: 1.2.3.4 >>> >>> User: 1...@a.domain.com >>> >>> Alias: +18085551...@a.domain.com >>> >>> A call to +18085551...@1.2.3.4 fails when using >>> alias_db_lookup("dbaliases");. >>> >>> I also can't add both aliases to the dbaliases table: >>> # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com >>> INFO: +18085551234 alias already in dbaliases table >>> >>> Thanks, >>> Julian >>> >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> -- >> Alex Balashov >> Evariste Systems >> Web: http://www.evaristesys.com/ >> Tel: (+1) (678) 954-0670 >> Direct : (+1) (678) 954-0671 >> Mobile : (+1) (678) 237-1775 >> >> >> -- >> Alex Balashov >> Evariste Systems >> Web: http://www.evaristesys.com/ >> Tel: (+1) (678) 954-0670 >> Direct : (+1) (678) 954-0671 >> Mobile : (+1) (678) 237-1775 >> -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
There are no config options in opensipsctlrc to be multi-domain aware so I would say that opensipsctl is broken in this respect. The relevant IF statement in opensipsctl only looks up the 'user' portion to check that it is unique: if is_value_in_db $DA_TABLE $DA_ALIAS_USER_COLUMN $TMP_OSIPSUSER; then minfo "$TMP_OSIPSUSER alias already in $DA_TABLE table" exit 0 fi On Sun, Jan 4, 2009 at 6:11 PM, Alex Balashov wrote: > I'm not sure if opensipsctl is broken in this respect or if you have to make > it aware that you're doing multi-domain support via its config file. But > yes, when in doubt, manipulate the raw database. > > Julian Yap wrote: > >> I just tried manually inputting straight in to the DB and it works for me. >> >> I guess that solves my issue. >> >> Thanks, >> Julian >> >> On Sun, Jan 4, 2009 at 5:58 PM, Alex Balashov >> wrote: >>> >>> Have you tried adding both combinations to the DB manually without using >>> opensipsctl? >>> >>> On Jan 4, 2009, at 10:55 PM, "Julian Yap" wrote: >>> So my only solution is then pass through +18085551...@a.domain.com (which isn't feasible) or to disable multi-domain? Is there a way I can accept both +18085551...@a.domain.com and +18085551...@1.2.3.4? - Julian On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov wrote: > > Alias_db has a literal - not a virtual (i.e. uri == myself style, aka > all > DNS aliases and locally homed IP interfaces) - approach to domains, as > does > auth_db and others. > > One domain, and it must literally match the one in the RURI. > > Julian Yap wrote: > >> Using the alias_db module, if I look up an alias by the IP address as >> the domain, it doesn't work. The alias table however does not let me >> add the alias as an IP address as well as a domain. >> >> Error message is: DBG:alias_db:alias_db_lookup: no alias found for >> R-URI >> >> Example settings: >> Server: a.domain.com >> IP of server: 1.2.3.4 >> >> User: 1...@a.domain.com >> >> Alias: +18085551...@a.domain.com >> >> A call to +18085551...@1.2.3.4 fails when using >> alias_db_lookup("dbaliases");. >> >> I also can't add both aliases to the dbaliases table: >> # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com >> INFO: +18085551234 alias already in dbaliases table >> >> Thanks, >> Julian >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- > Alex Balashov > Evariste Systems > Web: http://www.evaristesys.com/ > Tel: (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > Mobile : (+1) (678) 237-1775 > > > > -- > Alex Balashov > Evariste Systems > Web: http://www.evaristesys.com/ > Tel: (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > Mobile : (+1) (678) 237-1775 > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
I'm not sure if opensipsctl is broken in this respect or if you have to make it aware that you're doing multi-domain support via its config file. But yes, when in doubt, manipulate the raw database. Julian Yap wrote: > I just tried manually inputting straight in to the DB and it works for me. > > I guess that solves my issue. > > Thanks, > Julian > > On Sun, Jan 4, 2009 at 5:58 PM, Alex Balashov > wrote: >> Have you tried adding both combinations to the DB manually without using >> opensipsctl? >> >> On Jan 4, 2009, at 10:55 PM, "Julian Yap" wrote: >> >>> So my only solution is then pass through +18085551...@a.domain.com >>> (which isn't feasible) or to disable multi-domain? >>> >>> Is there a way I can accept both +18085551...@a.domain.com and >>> +18085551...@1.2.3.4? >>> >>> - Julian >>> >>> On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov >>> wrote: Alias_db has a literal - not a virtual (i.e. uri == myself style, aka all DNS aliases and locally homed IP interfaces) - approach to domains, as does auth_db and others. One domain, and it must literally match the one in the RURI. Julian Yap wrote: > Using the alias_db module, if I look up an alias by the IP address as > the domain, it doesn't work. The alias table however does not let me > add the alias as an IP address as well as a domain. > > Error message is: DBG:alias_db:alias_db_lookup: no alias found for R-URI > > Example settings: > Server: a.domain.com > IP of server: 1.2.3.4 > > User: 1...@a.domain.com > > Alias: +18085551...@a.domain.com > > A call to +18085551...@1.2.3.4 fails when using > alias_db_lookup("dbaliases");. > > I also can't add both aliases to the dbaliases table: > # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com > INFO: +18085551234 alias already in dbaliases table > > Thanks, > Julian > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
I just tried manually inputting straight in to the DB and it works for me. I guess that solves my issue. Thanks, Julian On Sun, Jan 4, 2009 at 5:58 PM, Alex Balashov wrote: > Have you tried adding both combinations to the DB manually without using > opensipsctl? > > On Jan 4, 2009, at 10:55 PM, "Julian Yap" wrote: > >> So my only solution is then pass through +18085551...@a.domain.com >> (which isn't feasible) or to disable multi-domain? >> >> Is there a way I can accept both +18085551...@a.domain.com and >> +18085551...@1.2.3.4? >> >> - Julian >> >> On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov >> wrote: >>> >>> Alias_db has a literal - not a virtual (i.e. uri == myself style, aka all >>> DNS aliases and locally homed IP interfaces) - approach to domains, as >>> does >>> auth_db and others. >>> >>> One domain, and it must literally match the one in the RURI. >>> >>> Julian Yap wrote: >>> Using the alias_db module, if I look up an alias by the IP address as the domain, it doesn't work. The alias table however does not let me add the alias as an IP address as well as a domain. Error message is: DBG:alias_db:alias_db_lookup: no alias found for R-URI Example settings: Server: a.domain.com IP of server: 1.2.3.4 User: 1...@a.domain.com Alias: +18085551...@a.domain.com A call to +18085551...@1.2.3.4 fails when using alias_db_lookup("dbaliases");. I also can't add both aliases to the dbaliases table: # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com INFO: +18085551234 alias already in dbaliases table Thanks, Julian ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >>> -- >>> Alex Balashov >>> Evariste Systems >>> Web: http://www.evaristesys.com/ >>> Tel: (+1) (678) 954-0670 >>> Direct : (+1) (678) 954-0671 >>> Mobile : (+1) (678) 237-1775 >>> > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
Have you tried adding both combinations to the DB manually without using opensipsctl? On Jan 4, 2009, at 10:55 PM, "Julian Yap" wrote: > So my only solution is then pass through +18085551...@a.domain.com > (which isn't feasible) or to disable multi-domain? > > Is there a way I can accept both +18085551...@a.domain.com and > +18085551...@1.2.3.4? > > - Julian > > On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov > wrote: >> Alias_db has a literal - not a virtual (i.e. uri == myself style, >> aka all >> DNS aliases and locally homed IP interfaces) - approach to domains, >> as does >> auth_db and others. >> >> One domain, and it must literally match the one in the RURI. >> >> Julian Yap wrote: >> >>> Using the alias_db module, if I look up an alias by the IP address >>> as >>> the domain, it doesn't work. The alias table however does not let >>> me >>> add the alias as an IP address as well as a domain. >>> >>> Error message is: DBG:alias_db:alias_db_lookup: no alias found for >>> R-URI >>> >>> Example settings: >>> Server: a.domain.com >>> IP of server: 1.2.3.4 >>> >>> User: 1...@a.domain.com >>> >>> Alias: +18085551...@a.domain.com >>> >>> A call to +18085551...@1.2.3.4 fails when using >>> alias_db_lookup("dbaliases");. >>> >>> I also can't add both aliases to the dbaliases table: >>> # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com >>> INFO: +18085551234 alias already in dbaliases table >>> >>> Thanks, >>> Julian >>> >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> -- >> Alex Balashov >> Evariste Systems >> Web: http://www.evaristesys.com/ >> Tel: (+1) (678) 954-0670 >> Direct : (+1) (678) 954-0671 >> Mobile : (+1) (678) 237-1775 >> ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
So my only solution is then pass through +18085551...@a.domain.com (which isn't feasible) or to disable multi-domain? Is there a way I can accept both +18085551...@a.domain.com and +18085551...@1.2.3.4? - Julian On Sun, Jan 4, 2009 at 5:50 PM, Alex Balashov wrote: > Alias_db has a literal - not a virtual (i.e. uri == myself style, aka all > DNS aliases and locally homed IP interfaces) - approach to domains, as does > auth_db and others. > > One domain, and it must literally match the one in the RURI. > > Julian Yap wrote: > >> Using the alias_db module, if I look up an alias by the IP address as >> the domain, it doesn't work. The alias table however does not let me >> add the alias as an IP address as well as a domain. >> >> Error message is: DBG:alias_db:alias_db_lookup: no alias found for R-URI >> >> Example settings: >> Server: a.domain.com >> IP of server: 1.2.3.4 >> >> User: 1...@a.domain.com >> >> Alias: +18085551...@a.domain.com >> >> A call to +18085551...@1.2.3.4 fails when using >> alias_db_lookup("dbaliases");. >> >> I also can't add both aliases to the dbaliases table: >> # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com >> INFO: +18085551234 alias already in dbaliases table >> >> Thanks, >> Julian >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > -- > Alex Balashov > Evariste Systems > Web: http://www.evaristesys.com/ > Tel: (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > Mobile : (+1) (678) 237-1775 > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
Alias_db has a literal - not a virtual (i.e. uri == myself style, aka all DNS aliases and locally homed IP interfaces) - approach to domains, as does auth_db and others. One domain, and it must literally match the one in the RURI. Julian Yap wrote: > Using the alias_db module, if I look up an alias by the IP address as > the domain, it doesn't work. The alias table however does not let me > add the alias as an IP address as well as a domain. > > Error message is: DBG:alias_db:alias_db_lookup: no alias found for R-URI > > Example settings: > Server: a.domain.com > IP of server: 1.2.3.4 > > User: 1...@a.domain.com > > Alias: +18085551...@a.domain.com > > A call to +18085551...@1.2.3.4 fails when using alias_db_lookup("dbaliases");. > > I also can't add both aliases to the dbaliases table: > # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com > INFO: +18085551234 alias already in dbaliases table > > Thanks, > Julian > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] alias_db failing to look up alias for IP using multi_domain
Using the alias_db module, if I look up an alias by the IP address as the domain, it doesn't work. The alias table however does not let me add the alias as an IP address as well as a domain. Error message is: DBG:alias_db:alias_db_lookup: no alias found for R-URI Example settings: Server: a.domain.com IP of server: 1.2.3.4 User: 1...@a.domain.com Alias: +18085551...@a.domain.com A call to +18085551...@1.2.3.4 fails when using alias_db_lookup("dbaliases");. I also can't add both aliases to the dbaliases table: # opensipsctl alias_db add +18085551...@1.2.3.4 1...@a.domain.com INFO: +18085551234 alias already in dbaliases table Thanks, Julian ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] the echo of ourself voice
OpenSER/OpenSIPS is just a SIP proxy, it does not handle audio, so your problem must be somewhere else. Headphones are quite usually a good point to start looking for the echo source. -- Saúl -- "Nunca subestimes el ancho de banda de un camión lleno de disketes." http://www.saghul.net/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] the echo of ourself voice
Hi: I installed openser on a server and several xlite sip phones on clients.We can connect with sip phones togather,but we hear the echo of ourself voice on some xlite sip phones.How can I improve that? I'd appreciate any help. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users