[OpenSIPS-Users] How to limit number of AOR for user

2014-11-13 Thread Лытаев Антон Викторович

Hi!

There is a need to limit the maximum number of AOR for the user.
To do so:

modparam("registrar", "max_contacts", 1)
modparam("auth_db", "load_credentials", 
"$avp(loadedip)=domain;$avp(subscriber_username)=username;maxaor")


[user@opensips]# opensipsctl db show subscriber
id  usernamedomain  passwordemail_address ha1 
ha1brpidmaxaor  quota
1202020  77.66.55.44  123456 f665ec129cd4556aeed95f3b204ff002 
888f4df11367b3f2859c4993a4ad7dd3NULL 1 1


Where: maxaor - maximum number of AOR (max limit).

Next in the config:

if (is_method("REGISTER"))
{
if(client_nat_test("8"))
{
sl_send_reply("403", "Not working NAT");
www_challenge("", "0");
exit;
}
# authenticate the REGISTER requests (uncomment to enable auth)
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
if ($si!=$avp(loadedip))
{
www_challenge("", "0");
exit;
}
save("location","c($avp(maxaor))");
if (!db_check_to())
{
sl_send_reply("403","Forbidden auth ID");
exit;
}

if (!save("location"))
sl_reply_error();
exit;
}

But in the presence of 2 AOR record:

[user@opensips]# opensipsctl ul show 202020
Contact:: 
;q=;expires=1471;flags=0x0;cflags=0x0;socket=;callid=;methods=0x3F7F;user_agent=FRITZ!Box Fon WLAN 7140 Annex A 39.04.77 (Feb 14 2014)>
Contact:: 
;q=;expires=450;flags=0x0;cflags=0x0;socket=;callid=<5E7D-E2CA-46940374551E59A3ADE4-649@SipHost>;methods=0x;user_agent=<204 
12-37-1612531>


Why? What did I do wrong?

Added a check here:
if ($ct.fields(uri)=~'uniq')
{
sl_send_reply("403", "Wrong contact params");
www_challenge("", "0");
exit;
}
But it seems to me that this is not quite right.
Please help!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Fraud Detection in OpenSIPS 1.12

2014-11-06 Thread Лытаев Антон Викторович
This unit is compatible with version Opensips 1.11.2-tls (x86_64)? You 
can get a direct link?


02.09.2014 20:26, Răzvan Crainea wrote:

Hi all,

The second topic discussed during the last IRC meeting[1] was about 
building a Fraud Detection module that prevents PBX or accounts 
hijacking.

..




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] ISUP and SIP-I with Opensips

2014-10-13 Thread Лытаев Антон Викторович

Well, may be he Opensips endpoint? And generate ISUP messages messages?

13.10.2014 11:12, Bogdan-Andrei Iancu пишет:
SIP-I and SIP-T are extensions of SIP - and they are transparent for a 
SIP proxy. So OpenSIPS can route SIP-I and SIP-T. What is important is 
to have end-points which do understand these extensions. 




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] ISUP and SIP-I with Opensips

2014-10-12 Thread Лытаев Антон Викторович

Good time!
Tell me please: Opensips works with ISUP? ISUP messages can generate 
yourself? If yes, then how to use SIP-I to transfer some parameters such 
as CPC (Calling Party Category) or Numbering Plan Indicator?

Thanks!




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] ISUP and SIP-I with Opensips

2014-10-11 Thread Лытаев Антон Викторович

Good time!
Tell me - Opensips works with ISUP? ISUP messages can generate yourself? 
If yes, then how to use SIP-I to transfer some parameters such as CPC 
(Calling Party Category) or Numbering Plan Indicator?

Thanks!


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] problem with avpops_db_init

2014-08-22 Thread Лытаев Антон Викторович

Hello,
That's part of the config:

/loadmodule "nat_traversal.so"
loadmodule "avpops.so" //
//modparam("auth_db", "load_credentials", 
"$avp(loadedip)=domain;$avp(subscriber_username)=username;maxaor")

modparam("avpops","db_url",//
//"mysql://opensips:opensipsrw@127.0.0.1/opensips") //
//route[subscriberquota] {//
//avp_db_query("select quota from subscriber where 
username='$var(subscriber)'","$avp(subscriberquota)");//

//if ($avp(subscriberquota) == 0) {//
//xlog("Subscriberquota route, NO LIMIT FOR USER 
<$var(subscriber)>");//

//return;//
//}//
//$var(size) = 0;//
//get_profile_size("subscriberquota", "$var(subscriber)", 
"$var(size)");//

//if( $var(size) >= $avp(subscriberquota) ){//
//sl_send_reply("503", "Simultaneous calls limit reached");//
//xlog("Subscriberquota route, Limit of $var(size) active calls 
has been reached for subscriber $var(subscriber)");//

//exit;//
//}//
//set_dlg_profile("subscriberquota","$var(subscriber)");//
//get_profile_size("subscriberquota", "$var(subscriber)", 
"$var(size)");//
//xlog("Subscriberquota route, there are now $var(size) active calls 
for subscriber $var(subscriber)");//

//return;//
//} //
/
on the test server (VM VirtualBox - Centos 6.5 32bit) everything works 
fine, but on the live server - startup error:


Aug 21 03:34:44 corp-32-45 opensips: WARNING:core:fix_socket_list: could 
not rev. resolve 172.16.5.4
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: NOTICE:core:main: 
version: opensips 1.11.2-tls (x86_64/linux)
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: 
NOTICE:signaling:mod_init: initializing module ...
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: 
WARNING:usrloc:mod_init: Integer flags are now deprecated! Use unique 
quoted strings!
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: 
WARNING:acc:mod_init: Integer flags are now deprecated! Use unique 
quoted strings!
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: 
WARNING:acc:mod_init: Integer flags are now deprecated! Use unique 
quoted strings!
Aug 21 03:34:44 corp-32-45 /usr/sbin/opensips[7263]: 
WARNING:acc:mod_init: Integer flags are now deprecated! Use unique 
quoted strings!
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:db_mysql:db_mysql_connect: driver error(2003): Can't connect to 
MySQL server on '127.0.0.1' (110)
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:db_mysql:db_mysql_connect: driver error(2003): Can't connect to 
MySQL server on '127.0.0.1' (110)
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:core:db_do_init: could not add connection to the pool
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:core:db_do_init: could not add connection to the pool
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:avpops:avpops_db_init: cannot initialize database connection for 
mysql://opensips:opensipsrw@127.0.0.1/opensips
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:avpops:avpops_db_init: cannot initialize database connection for 
mysql://opensips:opensipsrw@127.0.0.1/opensips
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:core:init_mod_child: failed to initializing module avpops, rank -2
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:core:init_mod_child: failed to initializing module avpops, rank 1
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7267]: 
ERROR:core:start_module_procs: error in init_child for PROC_MODULE
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7268]: 
ERROR:core:main_loop: init_child failed for UDP listener
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:db_mysql:db_mysql_connect: driver error(2003): Can't connect to 
MySQL server on '127.0.0.1' (110)
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:core:db_do_init: could not add connection to the pool
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:avpops:avpops_db_init: cannot initialize database connection for 
mysql://opensips:opensipsrw@127.0.0.1/opensips
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:core:init_mod_child: failed to initializing module avpops, rank 3
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:core:main_loop: init_child failed for UDP listener
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7270]: 
ERROR:core:main_loop: failed to send status code
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7287]: 
CRITICAL:core:receive_fd: EOF on 8
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7287]: 
CRITICAL:core:receive_fd: EOF on 9
Aug 21 03:35:47 corp-32-45 /usr/sbin/opensips[7287]: 
CRITIC

Re: [OpenSIPS-Users] registration for each subscriber ID and IP

2014-08-17 Thread Лытаев Антон Викторович

Bogdan, good time!
But the flag "C" does not alter the number of invites (to and from) the 
user that corresponds to a certain number of accounts (with the same 
flag "C"). How does it change?


30.07.2014 17:27, Bogdan-Andrei Iancu пишет:

Hi,

To limit the number of registered contacts, see "c" flag here :
http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294034

you can also load it from an additional field from DB and push it to 
the save() function.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer 




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] The request ACK not forwarded when using topology_hiding()

2014-08-09 Thread Лытаев Антон Викторович
Bogdan, please help, it is necessary to correctly use a bunch: 
topology_hiding () and match_dialog () with loose_route () design 
has_totag (). If I completely replace loose_route () function 
match_dialog (), then requests 487 and 404 from the upstream server - 
there is an invalid SIP-exchange


06.08.2014 19:22, Bogdan-Andrei Iancu пишет:

Hi,

Could you post a SIP capture of the call (showing both legs, on the 
opensips machine) ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 01.08.2014 21:40, Лытаев Антон Викторович wrote:
Alexander, you have solved the problem with an ACK message when using 
topology_hiding () and match_dialog ()?


02.04.2014 17:04, Александр Пучков пишет:

Hi!

When using the functions topology_hiding() and match_dialog() the 
request ACK not forwarded (link 2) to the nextscheme:


UAC --(link 1)--> OpenSIPS --(link 2)--> Asterisk

It must be so?

A little piece of config:

http://pastebin.com/39vV4eYT

--
С уважением,
Александр Пучков,
Системный администратор,
Тел.:  +7(496) 569-24-24 доб.тел. 255;
ООО "ПОИГ" (Интернет-провайдер г. Щелково)
Факс:  +7(496) 569-24-24 доб. 103;
Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;
WEB:   http://www.schelkovo-net.ru


___
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



___
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] The request ACK not forwarded when using topology_hiding()

2014-08-07 Thread Лытаев Антон Викторович

if use the topology_hiding() without match_dialog() in has_totag():

/# account only INVITEs//
//if (is_method("INVITE")) {//
//if (registered("location","$fu")&&!client_nat_test("8"))//
//{//
//topology_hiding();//
//setflag(1); # do accounting//
//}//
//else {//
//sl_send_reply("403","Forbidden auth ID bla");//
//exit;//
//}//
//  }//
//..//
//if (has_totag()) {//
//if (loose_route()) {//
//if (is_method("BYE")) {//
//setflag(1); # do accounting ...//
//setflag(3); # ... even if the transaction fails//
//} else if (is_method("INVITE")) {//
//record_route();//
//}//
//route(1);//
//} else {//
//if ( is_method("ACK") ) {//
//if ( t_check_trans() ) {//
//t_relay();//
//exit;//
//} else {//
//exit;//
//}//
//}//
//sl_send_reply("404","Not here blabla");//
//}//
//exit;//
//}..//
/
then capture of the call looks like this:



need to change has_totag (), adding match_dialog (), but how to do it right?

06.08.2014 19:22, Bogdan-Andrei Iancu пишет:

Hi,

Could you post a SIP capture of the call (showing both legs, on the 
opensips machine) ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] reINVITE

2014-08-04 Thread Лытаев Антон Викторович

Hi. Please help.

scheme:
MGW <- SIP / RTP ---> OpenSips 
<- SIP --> UAC

IP: Network-1 Iset-2 IP: Network 1 and Network 2 IP: network-2

In such a scheme - works only SIP, and RTP-traffic between MGW and UAC 
does not pass...



Can use reINVITE? then >

In network 1:
MGWOpensips
INVITE -->
But UAC is a network-2
302 <-
(about which user at the UAC with the IP of the network-2
 silence 

How to make do reINVITE MGW interface with network-2?

Either find a way to make MGWtransmit RTP on the second network, and the 
first SIP






___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] The request ACK not forwarded when using topology_hiding()

2014-08-01 Thread Лытаев Антон Викторович
Alexander, you have solved the problem with an ACK message when using 
topology_hiding () and match_dialog ()?


02.04.2014 17:04, Александр Пучков пишет:

Hi!

When using the functions topology_hiding() and match_dialog() the 
request ACK not forwarded (link 2) to the nextscheme:


UAC --(link 1)--> OpenSIPS --(link 2)--> Asterisk

It must be so?

A little piece of config:

http://pastebin.com/39vV4eYT

--
С уважением,
Александр Пучков,
Системный администратор,
Тел.:  +7(496) 569-24-24 доб.тел. 255;
ООО "ПОИГ" (Интернет-провайдер г. Щелково)
Факс:  +7(496) 569-24-24 доб. 103;
Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;
WEB:   http://www.schelkovo-net.ru


___
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] registration for each subscriber ID and IP

2014-07-27 Thread Лытаев Антон Викторович

For example: there are 50 subscribers with IP = telephone number and IP
Necessary to register the subscriber on 3 criteria: number + password + IP

here's what I found as an example:
loadmodule "permissions.so"
loadmodule "group.so"

if(!check_source_address("0")){
if (!proxy_authorize("", "subscriber")) {
proxy_challenge("", "0");
exit;
}
if (!idb_check_from()) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
consume_credentials();
}

I have to link the "username" (from еable "Subscriber") and IP from the 
table "address " This bundle comes group.so tools module and table 
table "grp"?

and how to add (for example) of the user using opensipsctl
add ?
Thanks!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Fwd: Re: Opensips1.7 with MediaProxy

2014-03-06 Thread Лытаев Антон Викторович

Hi, H.Yavari.
Please give an example of its connection diagrams: UAC-OPENSIPS-MGW...
Show which modules and options you ordered in.cfg?
In your example: "rtpproxy_offer (" ro ");" - that is "ro"?
And as a part of the code:
if ( src_ip==XXY ) {
 route(5);
 exit;
 }
 else {
 if (!(registered("location","$fu"))) {
xlog("Caller:$fu is NOT Registered so NOT AUTHORIZED\n");
sl_send_reply("403", "Forbidden auth ID");
 exit;
 }
 route(4);
 exit;
}
here: src_ip - what source: MGW or UAC?
And:
route [4] {
rewritehostport ("XX");
route (relay);
}
here: rewritehostport ("XX"); - host and port UAC?

06.03.2014 16:59, H Yavari writes :

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips1.7 with MediaProxy

2014-03-06 Thread Лытаев Антон Викторович

Hi, H.Yavari
To begin with, if you can - share your config please.
And, if not difficult - setting rtpproxy.
that was where to start ...
Thanks so.

06.03.2014 13:49, H Yavari writes:

Thanks so.




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips1.7 with MediaProxy

2014-03-05 Thread Лытаев Антон Викторович
In the incoming message to the UAC "183" can be seen: the prefix and IP 
gateway.

Gateway waits INVITE from everyone.
Therefore, it is necessary at least to hide this information!!!
There is a suggestion - use the full proxy SIP and RTP traffic from the UAC.
Necessary: MGW hide behind opensips-server:
UAC(85.85.85.95)>OPENSIPS(85.85.85.85, 
192.168.0.85)-->MGW(192.168.0.11)


1. What better use for the full RTP-traffic hiding: rtpproxy or mediaproxy?
2. I need help setting: mediaproxy or rtpproxy.
3. Example configuration file "opensips.cfg" such interaction: 
opensips-mediaproxy or opensips-rtpproxy.



that is for today:
[root@x ~]# ps ax | grep rtpp
17445 ?Ssl0:00 rtpproxy
17451 pts/2S+ 0:00 grep rtpp
30335 ?Ssl0:13 rtpproxy -u rtpproxy
[root@x ~]# ps ax | grep disp
17456 pts/2S+ 0:00 grep disp
30008 ?SL 0:00 python ./media-dispatcher
[root@x ~]# ps ax | grep rel
17458 pts/2S+ 0:00 grep rel
30016 ?SL 0:35 python ./media-relay
and opensips 1.7

eth.0 ip=85.85.85.85
eth.1 ip=192.168.0.85

4. if we use rtpproxy, then iptables configuration is needed ..
5. if we use mediaproxy then where are the config files? and how to set 
them  for the "dispatcher" and "relay".?
6. In logic OPENSIPS not need to use checks: if the client is behind NAT 
on the remote end, and vice versa - do not allow the registration of 
such users!


05.03.2014 20:48, Bogdan-Andrei Iancu writes:

If you have any particular questions on the setup, I will try to help you.




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips1.7 + MediaProxy

2014-02-27 Thread Лытаев Антон Викторович

Here is an example CFG-file that works now:
The message "183" prefix and visible IP gateway. And that could be a 
threat of fraud.
Here: if you use the function topology_hiding (); it does not happen a 
fair exchange:

"BYE" comes to the message "404", "Not here" rather than "200 OK"
I use client_nat_test to cut off all requests for registration are NAT, 
but it does not work!



port=5060
listen=udp:85.85.85.85:5060 #Opensips-server
route{
if (has_totag()) {
if (loose_route()) {
if (is_method("BYE")) {
setflag(1);
setflag(3);}
else if (is_method("INVITE")) {
#topology_hiding();
record_route();}
route(1);}
else {
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
t_relay();
exit;}
else {
exit;
}}
sl_send_reply("404","Not here");
}
exit;
}

#initial requests
if (is_method("CANCEL")){
if (t_check_trans())
t_relay();
exit;}

t_check_trans();

# authenticate if from local subscriber (uncomment to enable auth)
# authenticate all initial non-REGISTER request that pretend to be
# generated by local subscriber (domain from FROM URI is local)

if (!(method=="REGISTER") && from_uri==myself) #/*no multidomain version*/
{if (!proxy_authorize("", "subscriber"))
{proxy_challenge("", "0");
exit;}
if (!db_check_from())
{sl_send_reply("403","Forbidden auth ID");
exit;}
consume_credentials();
}

# preloaded route checking
if (loose_route())
{xlog("L_ERR","Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]");
if (!is_method("ACK"))sl_send_reply("403","Preload Route denied");
exit;
}

# record routing
if (!is_method("REGISTER|MESSAGE")) record_route();

# account only INVITEsif (is_method("INVITE"))
{
# if (!src_ip=="85.85.85.11") #CISCO MGW IP
#{
#topology_hiding();
#}
setflag(1); # do accounting
}

if (!uri==myself)## replace with following line if multi-domain 
support is used

{
route(1);}

# requests for my domain
if (is_method("PUBLISH")){
sl_send_reply("503", "Service Unavailable");
exit;}

if (is_method("REGISTER")){
#if(client_nat_test("3"))
#{
#sl_send_reply("403", "Not working NAT");
#exit;
#}

# authenticate the REGISTER requests (uncomment to enable auth)
if (!www_authorize("", "subscriber")){
www_challenge("", "0");
exit;}
if (!db_check_to()) {
sl_send_reply("403","Forbidden auth ID");
exit;}
if (!save("location"))
sl_reply_error();
exit;
}

if ($rU==NULL) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
exit;
}

# do lookup with method filtering
if ((src_ip=="85.85.85.11") && (!lookup("location")))
{
switch ($retcode) {
case -1:
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not Allowed");
exit;
}}

# when routing via usrloc, log the missed calls also
setflag(2);

if (src_ip=="85.85.85.11") {
route(1);}
route(3);
}

route[1] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {
t_on_branch("2");
t_on_reply("2");
t_on_failure("1");}
if (!t_relay()) {
sl_reply_error();};
exit;}

route[3] {
prefix("");
rewritehostport("85.85.85.11:5060");
if (!t_relay()) {
sl_reply_error();
};exit;
}

branch_route[2] { xlog("new branch at $ru\n");}
onreply_route[2] { xlog("incoming reply\n"); }

failure_route[1] {
if (t_was_cancelled()) {exit;}}


27.02.2014 9:09, pavel@:

Ok, i try to post some config lines today.


2014-02-27 11:05 GMT+06:00 LAVer:

not yet. Has not yet received ...
27.02.2014 6:57, pavel@ :

Did you get answer or example?




___
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


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips1.7 + MediaProxy

2014-02-26 Thread Лытаев Антон Викторович

Thank you! I Would really appreciate!


27.02.2014 9:09, pa...@eremina.net пишет:

Ok, i try to post some config lines today.




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips1.7 + MediaProxy

2014-02-26 Thread Лытаев Антон Викторович

not yet. Has not yet received ...
27.02.2014 6:57, pavel@ :

Did you get answer or example?




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Initializing SIP messages from routing

2014-02-25 Thread Лытаев Антон Викторович

Sorry, but if not more difficult, please help.
I need configured Rtpproxy or mediaproxy B2B and to work with such a scheme:
UAC---si,rtp>(IP1 Opensips IP2)sip,rtp->(MGW accepts all 
INVITE with prefix)TDM--->PSTN

Please helpwith CFG-file and rtp-proxy configurate.


26.02.2014 11:22, H Yavari пишет:

Dear Razvan,
Thanks for your reply. RTPproxy and OpenSIPS have communication with 
each other and all of call's RTP streams passed from RTPproxy. So 
there isn't any problem between them.In logs only exist this info:  
DBG:rtpproxy:force_rtp_proxy_body: proxy reply: 57548 192.168.1.20#012
and nothing for : rtpproxy_stream2uas("/var/rtpproxy/prompts/test", 
"-1") or any errors.
"What do you mean the function does not work properly?" I mean this 
function not work for me and not send any command to RTPproxy.

If you can, give me a choice to use your patch.
Thanks so.

Best Regards,
H.Yavari

PS:
I enabled the RTPproxy logging and this is result of calling the 
method :rtpproxy_stream2uas("/var/rtpproxy/prompts/092", "-1") :::


DBUG:handle_command: received command "6387_7 P-1 
562e15da4cdd600161336f3235ce8213@192.168.1.116 
/var/rtpproxy/prompts/092.8 session as5f218e73;1 "

ERR:handle_play: can't create player
DBUG:doreply: sending reply "6387_7 E6

Hi!

What do you mean the function does not work properly? It doesn't send
any command to RTPProxy? Can you trace the communication between
OpenSIPS and RTPProxy?
Also, have you checked the RTPProxy logs for errors? I am not sure how
you can detect this, but if I remember correctly, I had to patch
RTPProxy to properly inject media in early stage. If you want me, I can
provide that patch for you so you can give it a try.

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com 

On 02/24/2014 08:03 AM, H Yavari wrote:
> Hi,
> I used Opensips with RTPproxy and now RTP goes from RTPproxy. But
> rtpproxy_stream2uac() function not work properly. my cfg:
>
> if (is_method("INVITE")) {
>  rtpproxy_offer("ro");
> rtpproxy_stream2uas("/var/rtpproxy/prompts/test", "-1");
>  }
>
> There isn't any info in logs about this function. what is the problem?
> 
>

___
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




___
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] Opensips1.7 with MediaProxy

2014-02-25 Thread Лытаев Антон Викторович

can be used B2BUA mode?
users do not need to see the MGW!
To no avail. TCPdumpshows no exchange between OPENSIPS and MGW(Cisco).
I installed Mdiaproxy and RTPproxy...ineffectually
Please help with configuration.


Hi. Please help.
We have:
1.One server consists of: CenOS6.5 + Opensips1.7 + MediaProxy2.5
2.One MGW: Cisco AS5350
3.UserID=telephone number and registration on OpenSips through MySQL
4.Call to PSTN pass through MGW with prefix :
route[4] {  prefix("");
  rewritehostport("192.168.0.3:5060 ");
  if (!t_relay()) { sl_reply_error(); };
exit;}

Now, such a scheme works:

(UAC   )>sip->Opensips 1.7--->SIP--->MGW Cisco
192.168.0.65   192.168.0.2 192.168.0.3
RTP---
>MGW Cisco>PSTN

In this topology visible

It's not safe, it's necessary to build a new wiring diagram:
(UAC  )--->sip,RTP>(Opensips--->rtp,SIP-->)->MGW 
Cisco--->PSTN

85.85.85.85(85.85.85.2 192.168.0.2) 192.168.0.3

questions:
1. to hide the network topology from the users (can be used dialog 
module, function: topology_hiding?)
2. hide RTP traffic to MGW for Opensips-server (can be used MediaProxy 
or rtpproxy)?

Please, give examples opensips.cfg-file ?


___
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] Opensips1.7 with MediaProxy

2014-02-24 Thread Лытаев Антон Викторович

Hi. Please help.
We have:
1.One server consists of: CenOS6.5 + Opensips1.7 + MediaProxy2.5
2.One MGW: Cisco AS5350
3.UserID=telephone number and registration on OpenSips through MySQL
4.Call to PSTN pass through MGW with prefix :
route[4] {  prefix("");
  rewritehostport("192.168.0.3:5060 ");
  if (!t_relay()) { sl_reply_error(); };
exit;}

Now, such a scheme works:

(UAC   )>sip->Opensips 1.7--->SIP--->MGW Cisco
192.168.0.65   192.168.0.2 192.168.0.3
RTP---
>MGW Cisco>PSTN

In this topology visible

It's not safe, it's necessary to build a new wiring diagram:
(UAC  )--->sip,RTP>(Opensips--->rtp,SIP-->)->MGW 
Cisco--->PSTN

85.85.85.85(85.85.85.2 192.168.0.2) 192.168.0.3

questions:
1. to hide the network topology from the users (can be used dialog 
module, function: topology_hiding?)
2. hide RTP traffic to MGW for Opensips-server (can be used MediaProxy 
or rtpproxy)?

Please, give examples opensips.cfg-file ?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users