[OpenSIPS-Users] registrar lookup
Hi Is there any way or known workaround to do a registrar lookup to retrieve all currently registered users for a given domain? As I understand it I can pass in an AOR to retrieve a specific user@domain, however I would like to to retrieve all users on a given domain. Regards Pete ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Change Digest username in Authorization Header in Register
Of course you can do it. In a similar way as below: if ($rd==abc.com) prefix(); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 24.06.2015 08:36, nirali soni wrote: Thank you Bogdan. But I still have query on how i could map between prefix and domain.If domain is acb.com http://acb.com then i apply prefix to user and if xyz,com then prefix would be .So is there any way to store in db and mapping of these both? so In asterisk it would like 1...@abc.com mailto:1...@abc.com and 1...@xyz.com mailto:1...@xyz.com. Thanks and Regards, Nirali Soni On Tue, Jun 23, 2015 at 10:34 PM, Bogdan-Andrei Iancu bog...@opensips.org mailto:bog...@opensips.org wrote: Hi, So what you want to do is basically to convert from 1234ABC@. into a...@domain1.com mailto:a...@domain1.com ? You can do simple scripting like: if ($rU=~^1234) { strip(4); $rd = domain1.com http://domain1.com; } or you can use the dialplan module to do in a scalable way, via DB. dp_translate(1,$rU/$ru) and in dialplan use: match_regexp : ^1234[0-9]+ subst_exp: ^1234([0-9]+) repl_exp: sip:\1...@domain1.com mailto:sip:%5...@domain1.com See more http://www.opensips.org/html/docs/modules/1.11.x/dialplan.html#id249304 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 19.06.2015 12:01, nirali soni wrote: Hello Bogdan, I am having different accounts with unique account code in asterisk.In asterisk peer is defined as [account code+extension] like 1234 is account code and 101 is extension.its like *[1234101].*So we have different account code with same extensions. i want to use opensips to map account code with domain.like 1234 having domain abc.com http://abc.com and 3456 having xyz.com.In http://xyz.com.In opensips subscriber table I want to insert user as 101 with doman abc.com http://abc.com. And its forwarded to asterisk with 1234101.How could I do this? Thanks and Regards, Nirali Soni On Thu, Jun 4, 2015 at 4:08 PM, Bogdan-Andrei Iancu bog...@opensips.org mailto:bog...@opensips.org wrote: Hi Nirali, Use the s.select transformation with the dot as separator: http://www.opensips.org/Documentation/Script-Tran-2-1#toc6 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 04.06.2015 08:46, nirali soni wrote: Hi, My domain is *www.cname.com http://www.cname.com*...I want only *cname * from that..How can i do this? Thanks and Regards, Nirali Soni On Wed, May 27, 2015 at 10:34 PM, Bogdan-Andrei Iancu bog...@opensips.org mailto:bog...@opensips.org wrote: Hi, you should get the body of the header, remove the header, do a subst (to change the username) and insert the hdr back: $var(body) = $hdr(Authorization); $var(new_body) = $(var(body){re.subst,reg_exp}) ; // see http://www.opensips.org/Documentation/Script-Tran-2-1#toc75 remove_hf(Authorization); append_hf(Authorization: $var(new_body)\r\n); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 27.05.2015 05:42, nirali soni wrote: Thank for reply But how could I do this with using regexp? On Tue, 26 May 2015 21:56 Bogdan-Andrei Iancu bog...@opensips.org mailto:bog...@opensips.org wrote: Hi Nirali, You could try to do it with some regexp and transformations, but your authentication will fail as the response will not match the username - the response is computed based in username, password, etc. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 26.05.2015 14:57, nirali soni wrote: Hi, I want to change Digest username in Register request.My use in opensips Subscribe table as 1001 and in asterisk sip.conf its lilke *1001_cname. *when I try to register to asterisk it sends 403 Forbidden. with user name mismatch. REGISTER sip:192.168.50.123:5060;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 192.168.50.43:5060;branch=z9hG4bKfa0a.ff2f5601.0 Via: SIP/2.0/UDP 192.168.50.30:50413;received=192.168.50.30;branch=z9hG4bK-524287-1---8343a748155f5d1c;rport=50413
[OpenSIPS-Users] Transparent Auth with WebRTC
All, I have special requirement which is little odd, I want to use WebRTC with Opensips but all REGISTER process will done by other SIP server, Example: [UA][WebRTC-Opensips]---[Asterisk/Freeswitch] UA will use WebRTC of Opensips but opensips forward all REGISTER request to Asterisk/Freeswitch and user will authenticate their... In short Opensips will just Proxy Auth request. How it will be possible? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Load Balancer
Hi, I have the following setup (the IP addresses are made up but should give an indication): 1 x opensips server with load balancer module - IP 192.168.0.1 2 x freeswitch servers - IP 192.168.0.2 192.168.0.3 All 3 servers have seperate external IP address routing to their internal IP via our firewall: 217.0.0.1 routed to 192.168.0.1 (Opensips) 217.0.0.2 routed to 192.168.0.2 (FS1) 217.0.0.3 routed to 192.168.0.3 (FS2) I have the load_balancer table with the following details: id, | group_id, | dst_uri,| resources, | probe_mode, | description '1', | '1', | 'sip:192.168.0.2:5080', | 'pstn=10', | '2', | 'FS1' '2', | '1', | 'sip:192.168.0.3:5080', | 'vm=1', | '2', | 'FS2' Now the initial invite goes through the usual steps, as shown below, but the issue arises when the ACK comes back from the SIP provider. Opensips is trying to forward the packet to the Freeswitch external IP address rather than the internal IP. This is due, I think, to the Contact details in the 200 response from Freeswitch containing the Freeswitch external IP. Is there a way of having Opensips take the external IP and route to the internal IP instead? Any help/suggestions would be much appreciated. No.TimeSourceDestinationProtocolLengthInfo425.827674SIP ProviderOpenSips InternalSIP/SDP873Request: INVITE sip:test@Opensips External | 435.828043OpenSips InternalSIP ProviderSIP397Status: 100 Giving a try | 445.828159OpenSips InternalFreeswitch InternalSIP/SDP1039Request: INVITE sip:test@Opensips External | 455.828605Freeswitch InternalOpenSips InternalSIP588Status: 100 Trying | 465.832171Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 545.833451OpenSips InternalSIP ProviderSIP/SDP1132Status: 200 OK | 555.836739SIP ProviderOpenSips InternalSIP522Request: ACK sip:test@Freeswitch External:5080;transport=udp | 615.838075OpenSips InternalFreeswitch ExternalSIP545Request: ACK sip:test@Freeswitch External:5080;transport=udp | 706.33254Freeswitch InternalOpenSips Internal SIP/SDP1221Status: 200 OK | 716.33265OpenSips InternalSIP ProviderSIP/SDP 1132Status: 200 OK | 807.332536Freeswitch InternalOpenSips InternalSIP/SDP 1221Status: 200 OK | 817.332666OpenSips InternalSIP ProviderSIP/SDP1132Status: 200 OK | 869.332576Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 879.332712OpenSips InternalSIP ProviderSIP/SDP1132Status: 200 OK | 13613.331858Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 15216.938621SIP ProviderOpenSips InternalSIP553Request: BYE sip:test@Freeswitch External:5080;transport=udp | 15816.939786OpenSips InternalFreeswitch ExternalSIP577Request: BYE sip:test@Freeswitch External:5080;transport=udp | 16017.33247Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 16117.37482OpenSips InternalFreeswitch ExternalSIP577Request: BYE sip:test@Freeswitch External:5080;transport=udp | 16317.937941SIP ProviderOpenSips InternalSIP553Request: BYE sip:test@Freeswitch External:5080;transport=udp | 16618.375894OpenSips InternalFreeswitch ExternalSIP577Request: BYE sip:test@Freeswitch External:5080;transport=udp | 17018.776373OpenSips InternalSIP ProviderSIP 415Status: 408 Request Timeout | 17821.332616Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 5.333161Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 25729.333884Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 28333.334482Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | 30637.335049Freeswitch InternalOpenSips InternalSIP/SDP1221Status: 200 OK | ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Transparent Auth with WebRTC
just t_relay the request to your other server... OpenSIPS wont automatically challenge anything On 06/24/2015 07:22 AM, Satish Patel wrote: All, I have special requirement which is little odd, I want to use WebRTC with Opensips but all REGISTER process will done by other SIP server, Example: [UA][WebRTC-Opensips]---[Asterisk/Freeswitch] UA will use WebRTC of Opensips but opensips forward all REGISTER request to Asterisk/Freeswitch and user will authenticate their... In short Opensips will just Proxy Auth request. How it will be possible? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] registrar lookup
Hi Pete, Do you want to do this from script or via MI ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 24.06.2015 11:48, Pete Kelly wrote: Hi Is there any way or known workaround to do a registrar lookup to retrieve all currently registered users for a given domain? As I understand it I can pass in an AOR to retrieve a specific user@domain, however I would like to to retrieve all users on a given domain. Regards Pete ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
# opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
Hi, What OpenSIPS version do you have ? also, note that you need also to install OpenSIPS with the TLS option on, otherwise the tls directory will not be created. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 24.06.2015 17:14, Nabeel wrote: # opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
Hi, I am using the latest version of OpenSIPS, 2.1, downloaded from here: http://opensips.org/pub/opensips/latest/src/ I used the 'menuconfig' feature with proto_tls and db_mysql enabled, so the tls directory should have been created, but it is empty. Please advise how I can get those files. On 24 Jun 2015 15:30, Bogdan-Andrei Iancu bog...@opensips.org wrote: Hi, What OpenSIPS version do you have ? also, note that you need also to install OpenSIPS with the TLS option on, otherwise the tls directory will not be created. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developerhttp://www.opensips-solutions.com On 24.06.2015 17:14, Nabeel wrote: # opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
Where are the 'example' openssl certificates as mentioned in the link above? In the source files folder, there is no /etc/tls folder, and there are no example certificates in the [source]/examples folder either. On 25 June 2015 at 00:26, Nabeel nabeelshik...@gmail.com wrote: I tried installing OpenSIPS two more times, once through the menuconfig interface with TLS enabled, and another time with TLS=1 make install command. Both times, the /etc/opensips/tls directory only has empty directories, with no files inside. The following directories are created with no files inside: [installdirectory]/etc/opensips/tls [installdirectory]/etc/opensips/tls/rootCA [installdirectory]/etc/opensips/tls/user [installdirectory]/etc/opensips/tls/rootCA/certs [installdirectory]/etc/opensips/tls/rootCA/private All these directories are empty? Is this normal? At the following link I see someone refer to an OpenSIPS source which has tls included opensips-1.9.1-tls. Is this a specific source tarball with TLS enabled? Is there one for version 2.1? https://github.com/antonraharja/book-opensips-101/blob/master/content/3.2.%20SIP%20TLS%20Secure%20Calling.mediawiki On 24 June 2015 at 15:30, Bogdan-Andrei Iancu bog...@opensips.org wrote: Hi, What OpenSIPS version do you have ? also, note that you need also to install OpenSIPS with the TLS option on, otherwise the tls directory will not be created. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developerhttp://www.opensips-solutions.com On 24.06.2015 17:14, Nabeel wrote: # opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
I just installed version 1.11.5 of OpenSIPS and this version does have all the TLS files included. I should have downloaded this version all along because version 2.1 clearly needs to be fixed. On 25 June 2015 at 00:36, Nabeel nabeelshik...@gmail.com wrote: Where are the 'example' openssl certificates as mentioned in the link above? In the source files folder, there is no /etc/tls folder, and there are no example certificates in the [source]/examples folder either. On 25 June 2015 at 00:26, Nabeel nabeelshik...@gmail.com wrote: I tried installing OpenSIPS two more times, once through the menuconfig interface with TLS enabled, and another time with TLS=1 make install command. Both times, the /etc/opensips/tls directory only has empty directories, with no files inside. The following directories are created with no files inside: [installdirectory]/etc/opensips/tls [installdirectory]/etc/opensips/tls/rootCA [installdirectory]/etc/opensips/tls/user [installdirectory]/etc/opensips/tls/rootCA/certs [installdirectory]/etc/opensips/tls/rootCA/private All these directories are empty? Is this normal? At the following link I see someone refer to an OpenSIPS source which has tls included opensips-1.9.1-tls. Is this a specific source tarball with TLS enabled? Is there one for version 2.1? https://github.com/antonraharja/book-opensips-101/blob/master/content/3.2.%20SIP%20TLS%20Secure%20Calling.mediawiki On 24 June 2015 at 15:30, Bogdan-Andrei Iancu bog...@opensips.org wrote: Hi, What OpenSIPS version do you have ? also, note that you need also to install OpenSIPS with the TLS option on, otherwise the tls directory will not be created. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developerhttp://www.opensips-solutions.com On 24.06.2015 17:14, Nabeel wrote: # opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist
I tried installing OpenSIPS two more times, once through the menuconfig interface with TLS enabled, and another time with TLS=1 make install command. Both times, the /etc/opensips/tls directory only has empty directories, with no files inside. The following directories are created with no files inside: [installdirectory]/etc/opensips/tls [installdirectory]/etc/opensips/tls/rootCA [installdirectory]/etc/opensips/tls/user [installdirectory]/etc/opensips/tls/rootCA/certs [installdirectory]/etc/opensips/tls/rootCA/private All these directories are empty? Is this normal? At the following link I see someone refer to an OpenSIPS source which has tls included opensips-1.9.1-tls. Is this a specific source tarball with TLS enabled? Is there one for version 2.1? https://github.com/antonraharja/book-opensips-101/blob/master/content/3.2.%20SIP%20TLS%20Secure%20Calling.mediawiki On 24 June 2015 at 15:30, Bogdan-Andrei Iancu bog...@opensips.org wrote: Hi, What OpenSIPS version do you have ? also, note that you need also to install OpenSIPS with the TLS option on, otherwise the tls directory will not be created. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developerhttp://www.opensips-solutions.com On 24.06.2015 17:14, Nabeel wrote: # opensipsctl tls rootCA ERROR: root CA config file (/usr/local//etc/opensips//tls/ca.conf) does not exist In fact, that whole tls directory is empty, even though my OpenSIPS instance has been compiled with tls support. Where can I download the CA files? ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Ack without To tag
Let me add some more details which I noticed. As i explained in previous post in the same subject, we receive ACK without to tag from one UA, since it will not match any dialog, I tried to route it to destination with topology_hiding but topology hiding used different branch tag than the 200 OK received (It only replaced .0 with .2). I think this is happening because I am also using drouting module and UAC which use branches. I can post trace also if someone wants to have a look. On Wed, Jun 24, 2015 at 10:06 PM, John Nash john.nash...@gmail.com wrote: I am using opensips 2.1 with topology_hiding module. I have an issue only with one SIP endpoint. This endpoint sends Ack message (after 200 OK to Invite) without any to tag because of that it is not matching with In dialog request section. Can a UA send ACK without to tag?...If yes any way I can match it with ongoing dialog? John ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Ack without To tag
I am using opensips 2.1 with topology_hiding module. I have an issue only with one SIP endpoint. This endpoint sends Ack message (after 200 OK to Invite) without any to tag because of that it is not matching with In dialog request section. Can a UA send ACK without to tag?...If yes any way I can match it with ongoing dialog? John ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensipsctl fifo rl_list
When executing opensipsctl fifo rl_list, Does the counter integer represent CPS or do I need to divide that number by the ratelimit modules' interval i.e. 10 by default? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users