Re: [OpenSIPS-Users] QoS Module

2009-05-08 Thread Bogdan-Andrei Iancu
Hi Ovidiu,

 From the QoS module perspective, do you think I will be able to reuse 
it for the load balancer module to get bandwidth info to be used in the 
LB process? What I have in mind is to expand the LB module to work not 
only with load like number of channels, but to work with load and used 
bandwidth per peer...what do you think?

Regards,
Bogdan

Ovidiu Sas wrote:
 Hello k1028,

 For now, the qos modules just keeps track of the SDP sessions
 established inside a dialog.
 You can inspect the established SDP sessions via the mi interface.
 There are no modules using the qos API.  You will need to write your
 own module and do whatever you want to do on that module.
 If something is unclear on the doc file, let me know and I will improve it.


 Regards,
 Ovidiu Sas

 On Thu, May 7, 2009 at 3:33 PM, k1028 mrprotoc...@gmail.com wrote:
   
 I tried to google around and look through all the documentation but I am
 still unclear how the QoS module work to test it on my staging network.
 According to the module documenation it keep track of the SDP session and
 provide API to be use by other module. Which other module use the QoS
 module?
 --
 View this message in context: 
 http://n2.nabble.com/QoS-Module-tp2835356p2835356.html
 Sent from the OpenSIPS - Users mailing list archive at Nabble.com.


 ___
 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] load_balancer module retcode

2009-05-08 Thread Bogdan-Andrei Iancu
Hi,

I think there is a error in your scriptthe $retcode returns the 
return code of the last used function, but your LB function is much, 
much above the retcode testing

Regards,
Bogdan

k1028 wrote:
 I am playing with the Load_balancer module at this time. The retcode does not
 return a negative value for me instead it return 18446744073709551614 when
 it reach the pstn limit

 I tried with pstn=1 and pstn=2 using 1 peer and 2 peer. All come back with
 the same retcode. 

 I also tried my route script as well as the one from opensips tutorial. Also
 tried google, search forum and looked up tracker not able to find anything.
 Any help would be greatly appreciated

 version: opensips 1.5.1-notls (x86_64/linux)

 this is my route script
 # - Dialog params -
 modparam(dialog, dlg_flag, 5)   
 modparam(dialog, timeout_avp, $avp(i:4242))   #Set
 AVP timeout variable

 # - SST params -
 modparam(sst, sst_flag, 6)  #Set
 SST flag
 modparam(sst, timeout_avp, $avp(i:4242))  
 modparam(sst, min_se, 10800)#Min
 Session Timer

 # - QOS params -
 modparam(qos, qos_flag, 7)  #Set
 QoS falg


 route{

 if(msg:len  max_len)
 {
 sl_send_reply(513, Message Too Big);
 exit;
 }

 if (!mf_process_maxfwd_header(3)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 # record routing
 if (!has_totag()) {
 # initial request
 record_route();
 } else {
 # sequential request - obey Route indication
 loose_route();
 t_relay();
 exit;
 }

 if ( is_method(INVITE) ) {
 if (sstCheckMin(1)) {
 xlog(L_ERR, 422 Session Timer Too Small reply
 sent.\n);
 exit;
 }
 # track the session timers via the dialog module
 setflag(5);
 setflag(6);
 setflag(7);
 }

 if ( uri=~sip:[0-9][0-...@.* ) {
 load_balance(40,pstn);
 xlog(L_INFO,Selected destination is: $du = $du AND
 retcode = $retcode \n\n);
 route(3);
 }

 route[3] {

 t_on_reply(1);

 # LB function returns negative if no suitable destination (for
 requested resources) is found,
 # or if all destinations are full
 if ($retcode0 ) {
 sl_send_reply(500,Service full);
 exit;
 }

 # send it out
 if (!t_relay()) {
 sl_reply_error();
 }

 onreply_route[1]
 {
 xlog(L_INFO, Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n\n);
 exit;

 }


 exit;
 }


 Level 6 debug message 
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: found requested
 (0) resource pstn
 May  7 19:59:19 [30633] DBG:dialog:build_new_dlg: new dialog 0x7f77ae5740a0
 (c=2b56f9b707a0f7bb7585ab1655349...@xxx,f=sip:x...@xx,t=sip:xx...@xxx,ft=as4634cbd6)
 on hash 2403
 May  7 19:59:19 [30633] DBG:dialog:populate_leg_info: route_set , contact
 sip:x...@x, cseq 102 and bind_addr udp:x:5060
 May  7 19:59:19 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 0x7f77ae5740a0: tag=as4634cbd6 rr= ct=sip:xx...@xxx cseq=102
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: destination
 sip: selected for LB set with free=1 (max=1)
 xlog Selected destination is: $du = sip: AND retcode =1 
 May  7 19:59:31 [30633] DBG:dialog:build_new_dlg: new dialog 0x7f77ae578410
 (c=291ea90b4956416b47e7932f06753...@xxx,f=sip:x...@x,t=sip:xx...@xx,ft=as718571da)
 on hash 2865
 May  7 19:59:31 [30633] DBG:core:parse_headers: flags=400
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: content_length=357
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: found end of header
 May  7 19:59:31 [30633] DBG:dialog:populate_leg_info: route_set , contact
 sip:xx...@xxx, cseq 102 and bind_addr udp:xxx:5060
 May  7 19:59:31 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 0x7f77ae578410: tag=as718571da rr= ct=sip:x...@xx cseq=102
 May  7 19:59:31 [30633] DBG:dialog:link_dlg: ref dlg 0x7f77ae578410 with 3
 - 3
 May  7 19:59:31 [30633] DBG:rr:add_rr_param: adding (;did=13b.f0a11e75)
 0x780150
 May  7 19:59:31 [30633] DBG:load_balancer:
 d_balance: destination sip: selected for LB set with free=0
 (max=0)
 May  7 19:59:31 [30633] DBG:load_balancer:do_load_balance: no destination
 found
 May  7 19:59:31 [30633] DBG:core:pv_get_dsturi: no destination URI
 Selected destination is: $du = null AND retcode = 18446744073709551614 
   



[OpenSIPS-Users] Question about dialog max timeout...

2009-05-08 Thread Marc Leurent
Hello all, I have juste a small question about the dialog module, I have set 
the parameters below for OpenSIPs dialog module with a default_timeout,  to 3 
hours,

# - dialog params -
modparam(dialog, enable_stats, 1)   # If the 
statistics support should be enabled or not.
#modparam(dialog, hash_size, 4096)  # The size of 
the hash table internally used to keep the dialogs.
modparam(dialog, rr_param, did)   # Name of the 
Record-Route parameter to be added with the dialog cookie.
modparam(dialog, dlg_flag, 4)   # Flag to be 
used for marking if a dialog should be constructed for the current request.
#modparam(dialog, buy_on_timeout_flag, 6)   # Message falg 
to be set if you want the dialog module to automatically send BYE requests (in 
both directions) when the dialog give timeout.
#modparam(dialog, timeout_avp, $avp(i:10))# The 
specification of an AVP to contain a custom timeout (in seconds) for the dialog.
modparam(dialog, default_timeout, 10800)# The default 
dialog timeout (in seconds) if no custom one is set.
#modparam(dialog, dlg_extra_hdrs, Hint: credit expired\r\n)   # A 
string containing the extra headers to be added in the requests generated
modparam(dialog, dlg_match_mode, 0) # The match is 
done exclusively based on DID;
modparam(dialog, db_url, 
mysql://opensips:uwefwefwef...@localhost/opensips)
modparam(dialog, db_mode, 1)# Describe how 
to push into the DB the dialogs' information from memory.
modparam(dialog, db_update_period, 30)  # The interval 
(seconds) at which to update dialogs' information if you chose to store.
#modparam(dialog, profiles_with_value, caller ; my_profile)   # List 
of names for profiles with values.
#modparam(dialog, profiles_no_value, inbound ; outbound)  # List 
of names for profiles without values.

but I have some dialogs that have a superior timeout like this one..
Have you got any idea how to see where this timeout is defined and how to force 
it to a lower value!
Because of this, I reach my snmpstats, dlg_minor_threshold, 900 very quickly
Thanks!

dialog::  hash=1768:1584216798
state:: 3
user_flags:: 0
timestart:: 124105
timeout:: 16267
callid:: zaltktgtpqzd...@leonhart.interne
from_uri:: sip:0213115...@212.147.46.91
from_tag:: ooctt
caller_contact:: sip:0213115...@194.38.160.113:5070
caller_cseq:: 960
caller_route_set::
caller_bind_addr:: udp:212.147.46.91:5060
to_uri:: sip:0213115...@212.147.46.91
to_tag:: as79ae919b
callee_contact:: sip:0213115...@212.147.46.81:5060
callee_cseq:: 960
callee_route_set::
callee_bind_addr:: udp:212.147.46.91:5060


-- 
-- --
Marc LEURENT
lf...@leurent.eu

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


Re: [OpenSIPS-Users] Question about dialog max timeout...

2009-05-08 Thread Marc Leurent
Do you think it could it be linked with bug id #2787654 ?? I don't think so but 
I will rebuild my OpenSIPs with trunk version...
https://sourceforge.net/tracker/?func=detailatid=1086412aid=2787654group_id=232389
Thanks

-- 
-- --
Marc LEURENT
lf...@leurent.eu


Le Friday 08 May 2009 13.06:18 Marc Leurent, vous avez écrit :
 Hello all, I have juste a small question about the dialog module, I have set 
 the parameters below for OpenSIPs dialog module with a default_timeout,  to 
 3 hours,
 
 # - dialog params -
 modparam(dialog, enable_stats, 1)   # If the 
 statistics support should be enabled or not.
 #modparam(dialog, hash_size, 4096)  # The size of 
 the hash table internally used to keep the dialogs.
 modparam(dialog, rr_param, did)   # Name of the 
 Record-Route parameter to be added with the dialog cookie.
 modparam(dialog, dlg_flag, 4)   # Flag to be 
 used for marking if a dialog should be constructed for the current request.
 #modparam(dialog, buy_on_timeout_flag, 6)   # Message 
 falg to be set if you want the dialog module to automatically send BYE 
 requests (in both directions) when the dialog give timeout.
 #modparam(dialog, timeout_avp, $avp(i:10))# The 
 specification of an AVP to contain a custom timeout (in seconds) for the 
 dialog.
 modparam(dialog, default_timeout, 10800)# The default 
 dialog timeout (in seconds) if no custom one is set.
 #modparam(dialog, dlg_extra_hdrs, Hint: credit expired\r\n)   # A 
 string containing the extra headers to be added in the requests generated
 modparam(dialog, dlg_match_mode, 0) # The match 
 is done exclusively based on DID;
 modparam(dialog, db_url, 
 mysql://opensips:uwefwefwef...@localhost/opensips)
 modparam(dialog, db_mode, 1)# Describe 
 how to push into the DB the dialogs' information from memory.
 modparam(dialog, db_update_period, 30)  # The 
 interval (seconds) at which to update dialogs' information if you chose to 
 store.
 #modparam(dialog, profiles_with_value, caller ; my_profile)   # 
 List of names for profiles with values.
 #modparam(dialog, profiles_no_value, inbound ; outbound)  # 
 List of names for profiles without values.
 
 but I have some dialogs that have a superior timeout like this one..
 Have you got any idea how to see where this timeout is defined and how to 
 force it to a lower value!
 Because of this, I reach my snmpstats, dlg_minor_threshold, 900 very 
 quickly
 Thanks!
 
 dialog::  hash=1768:1584216798
 state:: 3
 user_flags:: 0
 timestart:: 124105
 timeout:: 16267
 callid:: zaltktgtpqzd...@leonhart.interne
 from_uri:: sip:0213115...@212.147.46.91
 from_tag:: ooctt
 caller_contact:: sip:0213115...@194.38.160.113:5070
 caller_cseq:: 960
 caller_route_set::
 caller_bind_addr:: udp:212.147.46.91:5060
 to_uri:: sip:0213115...@212.147.46.91
 to_tag:: as79ae919b
 callee_contact:: sip:0213115...@212.147.46.81:5060
 callee_cseq:: 960
 callee_route_set::
 callee_bind_addr:: udp:212.147.46.91:5060
 


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


Re: [OpenSIPS-Users] Question about dialog max timeout...

2009-05-08 Thread Marc Leurent
Sorry for the 3rd email.. but I think it's interesting, because the dialog 
timeout of my transactions seems to increase with OpenSIPs uptime!
So my shm memory increase all the time. Does any one have the same problem with 
OpenSIPs 1.5.1?
Thanks

opensipsctl fifo dlg_list | grep timeout | sort -nr
timeout:: 20395
timeout:: 20340
timeout:: 20285
timeout:: 20230
timeout:: 20175
timeout:: 20120
timeout:: 20064
timeout:: 20009
timeout:: 19954
timeout:: 19899
...

and just after
opensipsctl fifo dlg_list | grep timeout | sort -nr
timeout:: 20450
timeout:: 20395
timeout:: 20340
timeout:: 20285
timeout:: 20230
timeout:: 20175
timeout:: 20120
timeout:: 20064
timeout:: 20009
timeout:: 19954
timeout:: 19899
...

PS: I'm using
opensips -V
version: opensips 1.5.1-notls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, 
SHM_MMAP, PKG_MALLOC, F_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_lt, epoll_et, sigio_rt, select.
svnrevision: unknown
@(#) $Id: main.c 5469 2009-03-18 12:43:10Z bogdan_iancu $
main.c compiled on 19:03:00 Apr 30 2009 with gcc 4.1.2


Le Friday 08 May 2009 13.06:18 Marc Leurent, vous avez écrit :
 Hello all, I have juste a small question about the dialog module, I have set 
 the parameters below for OpenSIPs dialog module with a default_timeout,  to 
 3 hours,
 
 # - dialog params -
 modparam(dialog, enable_stats, 1)                           # If the 
 statistics support should be enabled or not.
 #modparam(dialog, hash_size, 4096)                          # The size of 
 the hash table internally used to keep the dialogs.
 modparam(dialog, rr_param, did)                           # Name of the 
 Record-Route parameter to be added with the dialog cookie.
 modparam(dialog, dlg_flag, 4)                               # Flag to be 
 used for marking if a dialog should be constructed for the current request.
 #modparam(dialog, buy_on_timeout_flag, 6)                   # Message 
 falg to be set if you want the dialog module to automatically send BYE 
 requests (in both directions) when the dialog give timeout.
 #modparam(dialog, timeout_avp, $avp(i:10))                # The 
 specification of an AVP to contain a custom timeout (in seconds) for the 
 dialog.
 modparam(dialog, default_timeout, 10800)                    # The default 
 dialog timeout (in seconds) if no custom one is set.
 #modparam(dialog, dlg_extra_hdrs, Hint: credit expired\r\n)       # A 
 string containing the extra headers to be added in the requests generated
 modparam(dialog, dlg_match_mode, 0)                         # The match 
 is done exclusively based on DID;
 modparam(dialog, db_url, 
 mysql://opensips:uwefwefwef...@localhost/opensips)
 modparam(dialog, db_mode, 1)                                # Describe 
 how to push into the DB the dialogs' information from memory.
 modparam(dialog, db_update_period, 30)                      # The 
 interval (seconds) at which to update dialogs' information if you chose to 
 store.
 #modparam(dialog, profiles_with_value, caller ; my_profile)       # 
 List of names for profiles with values.
 #modparam(dialog, profiles_no_value, inbound ; outbound)          # 
 List of names for profiles without values.
 
 but I have some dialogs that have a superior timeout like this one..
 Have you got any idea how to see where this timeout is defined and how to 
 force it to a lower value!
 Because of this, I reach my snmpstats, dlg_minor_threshold, 900 very 
 quickly
 Thanks!
 
 dialog::  hash=1768:1584216798
         state:: 3
         user_flags:: 0
         timestart:: 124105
         timeout:: 16267
         callid:: zaltktgtpqzd...@leonhart.interne
         from_uri:: sip:0213115...@212.147.46.91
         from_tag:: ooctt
         caller_contact:: sip:0213115...@194.38.160.113:5070
         caller_cseq:: 960
         caller_route_set::
         caller_bind_addr:: udp:212.147.46.91:5060
         to_uri:: sip:0213115...@212.147.46.91
         to_tag:: as79ae919b
         callee_contact:: sip:0213115...@212.147.46.81:5060
         callee_cseq:: 960
         callee_route_set::
         callee_bind_addr:: udp:212.147.46.91:5060
 



-- 
-- --
Marc LEURENT
lf...@leurent.eu
Le Friday 08 May 2009 13.20:54 Marc Leurent, vous avez écrit :


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


Re: [OpenSIPS-Users] QoS Module

2009-05-08 Thread Ovidiu Sas
Hello Bogdan,

The qos module was written with this purpose in mind.
The qos context of each dialog can be inspected via the mi commands.
Via a similar mechanism as mi, variables from the qos context can be
exposed to the dialog module.
For the specific scenario that you have in mind, the required
bandwidth for up/down-stream can be consolidated per dialog profiles
and used in routing decisions.
Some clients provide the required bw inside sdp, but for some others
it will need to be computed based on advertised codecs.  We need to
keep in mind that the required bw is a guess, since from a signaling
point of view, we don't know which codec will be used from a list of
multiple codec offer.

The qos module is keeping track of negotiated sdp sessions via
INVITE/200ok, 200ok/ACK.  Support for UPDATE is present but not
implemented.
Support for early media is available.


Regards,
Ovidiu Sas

On Fri, May 8, 2009 at 3:18 AM, Bogdan-Andrei Iancu
bog...@voice-system.ro wrote:
 Hi Ovidiu,

 From the QoS module perspective, do you think I will be able to reuse it for
 the load balancer module to get bandwidth info to be used in the LB process?
 What I have in mind is to expand the LB module to work not only with load
 like number of channels, but to work with load and used bandwidth per
 peer...what do you think?

 Regards,
 Bogdan

 Ovidiu Sas wrote:

 Hello k1028,

 For now, the qos modules just keeps track of the SDP sessions
 established inside a dialog.
 You can inspect the established SDP sessions via the mi interface.
 There are no modules using the qos API.  You will need to write your
 own module and do whatever you want to do on that module.
 If something is unclear on the doc file, let me know and I will improve
 it.


 Regards,
 Ovidiu Sas

 On Thu, May 7, 2009 at 3:33 PM, k1028 mrprotoc...@gmail.com wrote:


 I tried to google around and look through all the documentation but I am
 still unclear how the QoS module work to test it on my staging network.
 According to the module documenation it keep track of the SDP session and
 provide API to be use by other module. Which other module use the QoS
 module?
 --
 View this message in context:
 http://n2.nabble.com/QoS-Module-tp2835356p2835356.html
 Sent from the OpenSIPS - Users mailing list archive at Nabble.com.


 ___
 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


[OpenSIPS-Users] presence pua_dialoginfo ERROR:presence:update_presentity: No E_Tag match

2009-05-08 Thread Piotr Sobolewski
Hello

I'm using pua_dialoginfo and presence_dialoginfo module.
When there is change in dialog module and PUBLISH is send to
presence_server (built into the proxy) pua responds with

127.0.0.1 - 127.0.0.1 SIP Status: 412 Conditional request failed

In logs there is error from presence.

ERROR:presence:update_presentity: No E_Tag match


By not acepting PUBLISH, the state is not updated and lamp flashes on SPA942.
Afrer one hour it stops.
This doesn't happend all the time, for most time it works just fine.


Is this error acures due to bad configuration or perhaps it is an bug?


-- 
Piotr Sobolewski
sobolew...@gmail.com

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


Re: [OpenSIPS-Users] ACK message loops while behind firewall

2009-05-08 Thread Shehzad

I am sending calls from SIPP and Asterisk (as Caller gateway).
SIPP calls are creating ACK message to loop locally on Opensips server as
described in previous post.
But when Opensips receive ACK message from Asterisk Caller, It does not
route it back to terminator thus terminator re-transmit 200OK. 
I am attaching SIP trace (which is take on firewall system)
http://n2.nabble.com/file/n2845440/Ast.Noackback.200.retrans.log
Ast.Noackback.200.retrans.log 

Does any body has faced such issue. Let me know what should i try to solve
this and set Opensips to handle Asterisk calls properly behind firewall?
Feel free to comment if any.

Thanks,
msp

Shehzad wrote:
 
 Hello,
 I have attached a whole trace as below. 
  http://n2.nabble.com/file/n2818688/MAILING_10.10.2.5_ACK_sipp.log
 MAILING_10.10.2.5_ACK_sipp.log 
 
 Some IP as referenced in the above trace are as below:
 Caller_IP : IP address of Caller Gateway
 Opensips_local_IP : IP address of Opensips Server
 Firewall_Public_IP : IP address of Firewall 
 Called_IP : IP address of provider
 
 Thanks,
 msp
 
 
 Bogdan-Andrei Iancu wrote:
 
 Hi,
 
 You need to post the whole trace (from the begining of the calls) to see 
 what the problem is.
 
 Regards,
 Bogdan
 
 msp wrote:
 Hi all,

 My Opensips server is behind firewall. All the messages comes at port 
 5060 on firewall are routed to Opensips Server. Then calls are routed 
 based on LCR. See below:

 Caller  ===  |   |
  | Firewall   | Opensips Server
 Callee ===  ||

 Currently calls are being routed properly from caller server to 
 callee, but when Caller sends ACK in respond to callee 's 200-OK, 
 Opensips doesn't route it back to Callee, and ACK message is sent to 
 Opensips Server itself which creates loop. At the end Opensips server 
 responds to Caller 483-Too many hops as maximum hops reaches.

 Have any body done anything like this before. Let me know what should 
 be missing or possible fault.

 thanks,
 msp.

 

 ___
 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
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/ACK-message-loops-while-behind-firewall-tp2753844p2845440.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.


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


[OpenSIPS-Users] Location table and received field

2009-05-08 Thread Mauro Davi'
Hi All,

 

I would to know how the save function store the received field in the
location table.

 

With same client this field is present correctly with the received
SIP:IP:PORT value, but in some circumstances this field is NULL.

 

Could anyone can tell me why?

 

I have a SIP server behind a SIP Proxy e when the server invoke the
lookup function seems that the Destination URI isn't always correct.

 

Thanks in advance

MD

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


Re: [OpenSIPS-Users] load_balancer module retcode

2009-05-08 Thread k1028

I tried everything possible and couldn't get the return code to return a
negative value when it reach the limiation. I have the same problem with the
sample script from Opensips tutorial for load_balancer.so. The retcode is
always return back as 18446744073709551614 and instead of negative value. 


Bogdan-Andrei Iancu wrote:
 
 Hi,
 
 I think there is a error in your scriptthe $retcode returns the 
 return code of the last used function, but your LB function is much, 
 much above the retcode testing
 
 Regards,
 Bogdan
 
 k1028 wrote:
 I am playing with the Load_balancer module at this time. The retcode does
 not
 return a negative value for me instead it return 18446744073709551614
 when
 it reach the pstn limit

 I tried with pstn=1 and pstn=2 using 1 peer and 2 peer. All come back
 with
 the same retcode. 

 I also tried my route script as well as the one from opensips tutorial.
 Also
 tried google, search forum and looked up tracker not able to find
 anything.
 Any help would be greatly appreciated

 version: opensips 1.5.1-notls (x86_64/linux)

 this is my route script
 # - Dialog params -
 modparam(dialog, dlg_flag, 5)   
 modparam(dialog, timeout_avp, $avp(i:4242))  
 #Set
 AVP timeout variable

 # - SST params -
 modparam(sst, sst_flag, 6) 
 #Set
 SST flag
 modparam(sst, timeout_avp, $avp(i:4242))  
 modparam(sst, min_se, 10800)   
 #Min
 Session Timer

 # - QOS params -
 modparam(qos, qos_flag, 7) 
 #Set
 QoS falg


 route{

 if(msg:len  max_len)
 {
 sl_send_reply(513, Message Too Big);
 exit;
 }

 if (!mf_process_maxfwd_header(3)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 # record routing
 if (!has_totag()) {
 # initial request
 record_route();
 } else {
 # sequential request - obey Route indication
 loose_route();
 t_relay();
 exit;
 }

 if ( is_method(INVITE) ) {
 if (sstCheckMin(1)) {
 xlog(L_ERR, 422 Session Timer Too Small reply
 sent.\n);
 exit;
 }
 # track the session timers via the dialog module
 setflag(5);
 setflag(6);
 setflag(7);
 }

 if ( uri=~sip:[0-9][0-...@.* ) {
 load_balance(40,pstn);
 xlog(L_INFO,Selected destination is: $du = $du AND
 retcode = $retcode \n\n);
 route(3);
 }

 route[3] {

 t_on_reply(1);

 # LB function returns negative if no suitable destination (for
 requested resources) is found,
 # or if all destinations are full
 if ($retcode0 ) {
 sl_send_reply(500,Service full);
 exit;
 }

 # send it out
 if (!t_relay()) {
 sl_reply_error();
 }

 onreply_route[1]
 {
 xlog(L_INFO, Reply - S=$rs D=$rr F=$fu T=$tu IP=$si
 ID=$ci\n\n);
 exit;

 }


 exit;
 }


 Level 6 debug message 
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: found
 requested
 (0) resource pstn
 May  7 19:59:19 [30633] DBG:dialog:build_new_dlg: new dialog
 0x7f77ae5740a0
 (c=2b56f9b707a0f7bb7585ab1655349...@xxx,f=sip:x...@xx,t=sip:xx...@xxx,ft=as4634cbd6)
 on hash 2403
 May  7 19:59:19 [30633] DBG:dialog:populate_leg_info: route_set , contact
 sip:x...@x, cseq 102 and bind_addr udp:x:5060
 May  7 19:59:19 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 0x7f77ae5740a0: tag=as4634cbd6 rr= ct=sip:xx...@xxx cseq=102
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: destination
 sip: selected for LB set with free=1 (max=1)
 xlog Selected destination is: $du = sip: AND retcode =1 
 May  7 19:59:31 [30633] DBG:dialog:build_new_dlg: new dialog
 0x7f77ae578410
 (c=291ea90b4956416b47e7932f06753...@xxx,f=sip:x...@x,t=sip:xx...@xx,ft=as718571da)
 on hash 2865
 May  7 19:59:31 [30633] DBG:core:parse_headers: flags=400
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: content_length=357
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: found end of header
 May  7 19:59:31 [30633] DBG:dialog:populate_leg_info: route_set , contact
 sip:xx...@xxx, cseq 102 and bind_addr udp:xxx:5060
 May  7 19:59:31 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 0x7f77ae578410: tag=as718571da rr= ct=sip:x...@xx cseq=102
 May  7 19:59:31 [30633] DBG:dialog:link_dlg: ref dlg 0x7f77ae578410 with
 3
 - 3
 May  7 19:59:31 [30633] DBG:rr:add_rr_param: adding (;did=13b.f0a11e75)
 0x780150
 May  7 19:59:31 [30633] 

[OpenSIPS-Users] Acc table

2009-05-08 Thread Ron
Hi Guys,

Newbie on opensips, i was able to mysql accounting, but when i looked at 
the table logs:

+++++--+--+--+-+
| id | method | from_tag   | to_tag | callid 
| sip_code | sip_reason   | time 
 |
+++++--+--+--+-+
|  1 | INVITE | 8d9f7e51   | as619fe46d | 
NDAwYzQ4NDMxMGU2Y2UxYzg3Njk0OWJhYzYwMjhlMTg. | 183  | Session 
Progress | 2009-05-09 00:11:51 |
|  2 | INVITE | 8d9f7e51   | as619fe46d | 
NDAwYzQ4NDMxMGU2Y2UxYzg3Njk0OWJhYzYwMjhlMTg. | 200  | OK 
| 2009-05-09 00:11:57 |


I noticed that username of the caller and the number called are not on 
that table, is there another table i should link to the acc? i looked at 
dialog table but there's nothing on it.

anything i missed? thanks in advanced.

regards,
ron

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


Re: [OpenSIPS-Users] Acc table

2009-05-08 Thread k1028

You need to use db_extra in order to capture the username and callednumber to
log extra value that are not default. You also need to add the field in to
the database. 

Look in acc module db_extra and Pseudo Variables
http://www.opensips.org/Resources/DocsCoreVar15#varpv  to log extra
variables

This is from my modparam for db_extra. 
modparam(acc, db_extra, from_uri=$fU; to_uri=$tU; ip=$si;
ua=$hdr(User-Agent))
$fU is from username variables and from_uri is the databse table field
$tu is to URI variable and to_uri is the databse table field
$si is source Ip and ip is the database table field
$hdr(Use-Agent) is user agent headr informaiton and ua is the database table
field.

hope this help 


Nhadie wrote:
 
 Hi Guys,
 
 Newbie on opensips, i was able to mysql accounting, but when i looked at 
 the table logs:
 
 +++++--+--+--+-+
 | id | method | from_tag   | to_tag | callid 
 | sip_code | sip_reason   | time 
  |
 +++++--+--+--+-+
 |  1 | INVITE | 8d9f7e51   | as619fe46d | 
 NDAwYzQ4NDMxMGU2Y2UxYzg3Njk0OWJhYzYwMjhlMTg. | 183  | Session 
 Progress | 2009-05-09 00:11:51 |
 |  2 | INVITE | 8d9f7e51   | as619fe46d | 
 NDAwYzQ4NDMxMGU2Y2UxYzg3Njk0OWJhYzYwMjhlMTg. | 200  | OK 
 | 2009-05-09 00:11:57 |
 
 
 I noticed that username of the caller and the number called are not on 
 that table, is there another table i should link to the acc? i looked at 
 dialog table but there's nothing on it.
 
 anything i missed? thanks in advanced.
 
 regards,
 ron
 
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Acc-table-tp2846361p2846421.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.


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


Re: [OpenSIPS-Users] load_balancer module retcode

2009-05-08 Thread k1028

I got it to work using 

if ( !load_balance(40,pstn) {
sl_send_reply(500,Service FUll);
xlog(L_INFO,Service Full);
exit;
} 

instead of

load_balance(40,pstn) {
if ($retcode0 ) {
 sl_send_reply(500,Service full);
 exit;
}


k1028 wrote:
 
 I tried everything possible and couldn't get the return code to return a
 negative value when it reach the limiation. I have the same problem with
 the sample script from Opensips tutorial for load_balancer.so. The retcode
 is always return back as 18446744073709551614 and instead of negative
 value. 
 
 
 Bogdan-Andrei Iancu wrote:
 
 Hi,
 
 I think there is a error in your scriptthe $retcode returns the 
 return code of the last used function, but your LB function is much, 
 much above the retcode testing
 
 Regards,
 Bogdan
 
 k1028 wrote:
 I am playing with the Load_balancer module at this time. The retcode
 does not
 return a negative value for me instead it return 18446744073709551614
 when
 it reach the pstn limit

 I tried with pstn=1 and pstn=2 using 1 peer and 2 peer. All come back
 with
 the same retcode. 

 I also tried my route script as well as the one from opensips tutorial.
 Also
 tried google, search forum and looked up tracker not able to find
 anything.
 Any help would be greatly appreciated

 version: opensips 1.5.1-notls (x86_64/linux)

 this is my route script
 # - Dialog params -
 modparam(dialog, dlg_flag, 5)   
 modparam(dialog, timeout_avp, $avp(i:4242))  
 #Set
 AVP timeout variable

 # - SST params -
 modparam(sst, sst_flag, 6) 
 #Set
 SST flag
 modparam(sst, timeout_avp, $avp(i:4242))  
 modparam(sst, min_se, 10800)   
 #Min
 Session Timer

 # - QOS params -
 modparam(qos, qos_flag, 7) 
 #Set
 QoS falg


 route{

 if(msg:len  max_len)
 {
 sl_send_reply(513, Message Too Big);
 exit;
 }

 if (!mf_process_maxfwd_header(3)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 # record routing
 if (!has_totag()) {
 # initial request
 record_route();
 } else {
 # sequential request - obey Route indication
 loose_route();
 t_relay();
 exit;
 }

 if ( is_method(INVITE) ) {
 if (sstCheckMin(1)) {
 xlog(L_ERR, 422 Session Timer Too Small reply
 sent.\n);
 exit;
 }
 # track the session timers via the dialog module
 setflag(5);
 setflag(6);
 setflag(7);
 }

 if ( uri=~sip:[0-9][0-...@.* ) {
 load_balance(40,pstn);
 xlog(L_INFO,Selected destination is: $du = $du AND
 retcode = $retcode \n\n);
 route(3);
 }

 route[3] {

 t_on_reply(1);

 # LB function returns negative if no suitable destination (for
 requested resources) is found,
 # or if all destinations are full
 if ($retcode0 ) {
 sl_send_reply(500,Service full);
 exit;
 }

 # send it out
 if (!t_relay()) {
 sl_reply_error();
 }

 onreply_route[1]
 {
 xlog(L_INFO, Reply - S=$rs D=$rr F=$fu T=$tu IP=$si
 ID=$ci\n\n);
 exit;

 }


 exit;
 }


 Level 6 debug message 
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: found
 requested
 (0) resource pstn
 May  7 19:59:19 [30633] DBG:dialog:build_new_dlg: new dialog
 0x7f77ae5740a0
 (c=2b56f9b707a0f7bb7585ab1655349...@xxx,f=sip:x...@xx,t=sip:xx...@xxx,ft=as4634cbd6)
 on hash 2403
 May  7 19:59:19 [30633] DBG:dialog:populate_leg_info: route_set ,
 contact
 sip:x...@x, cseq 102 and bind_addr udp:x:5060
 May  7 19:59:19 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 0x7f77ae5740a0: tag=as4634cbd6 rr= ct=sip:xx...@xxx cseq=102
 May  7 19:59:19 [30633] DBG:load_balancer:do_load_balance: destination
 sip: selected for LB set with free=1 (max=1)
 xlog Selected destination is: $du = sip: AND retcode =1 
 May  7 19:59:31 [30633] DBG:dialog:build_new_dlg: new dialog
 0x7f77ae578410
 (c=291ea90b4956416b47e7932f06753...@xxx,f=sip:x...@x,t=sip:xx...@xx,ft=as718571da)
 on hash 2865
 May  7 19:59:31 [30633] DBG:core:parse_headers: flags=400
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: content_length=357
 May  7 19:59:31 [30633] DBG:core:get_hdr_field: found end of header
 May  7 19:59:31 [30633] DBG:dialog:populate_leg_info: route_set ,
 contact
 sip:xx...@xxx, cseq 102 and bind_addr udp:xxx:5060
 May  7 19:59:31 [30633] DBG:dialog:dlg_set_leg_info: set leg 0 for
 

[OpenSIPS-Users] Reminder: Please Respond to kishore's Invitation

2009-05-08 Thread kishore kumar
kishore kumar wants you to join Yaari!

Is kishore your friend?

a 
href=http://yaari.com/?controller=useraction=mailregisterfriend=1sign=YaariJNG350EWB494UIF799VPD476;Yes,
 kishore is my friend!/a a 
href=http://yaari.com/?controller=useraction=mailregisterfriend=0sign=YaariJNG350EWB494UIF799VPD476;No,
 kishore isn't my friend./a

Please respond or kishore may think you said no :(

Thanks,
The Yaari Team
font 
color=#505050---/font
font color=#808080Yaari Inc., 358 Angier Ave NE Atlanta, GA 30312/font
a href=http://yaari.com/?controller=privacy;Privacy Policy/a | a 
href=http://yaari.com/?controller=absnaction=addoptoutemail=us...@lists.openser.org;Unsubscribe/a
 | a href=http://yaari.com/?controller=termsofserviceaction=index;Terms of 
Service/a

YaariJNG350EWB494UIF799VPD476

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


[OpenSIPS-Users] Reminder: Please Respond to kishore's Invitation

2009-05-08 Thread kishore kumar
kishore kumar wants you to join Yaari!

Is kishore your friend?

a 
href=http://yaari.com/?controller=useraction=mailregisterfriend=1sign=YaariOFY543MGQ980UTO932OPB505;Yes,
 kishore is my friend!/a a 
href=http://yaari.com/?controller=useraction=mailregisterfriend=0sign=YaariOFY543MGQ980UTO932OPB505;No,
 kishore isn't my friend./a

Please respond or kishore may think you said no :(

Thanks,
The Yaari Team
font 
color=#505050---/font
font color=#808080Yaari Inc., 358 Angier Ave NE Atlanta, GA 30312/font
a href=http://yaari.com/?controller=privacy;Privacy Policy/a | a 
href=http://yaari.com/?controller=absnaction=addoptoutemail=us...@lists.opensips.org;Unsubscribe/a
 | a href=http://yaari.com/?controller=termsofserviceaction=index;Terms of 
Service/a

YaariOFY543MGQ980UTO932OPB505

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


[OpenSIPS-Users] Help with MediaProxy running under OpenVZ...

2009-05-08 Thread Totally Useless
I'm not sure if this is possible, maybe that's why I am having such a 
hard time with it..

I am trying to run MediaProxy on Debian 5.0 in an OpenVZ container.

On my OpenVZ controller, I added iptable_nat to the IPTABLES list and 
/etc/init.d/vz restarted

When trying to start MediaProxy, I get:

May  8 17:59:23 mediaproxy01 media-relay[472]: Starting MediaProxy Relay 
2.3.4
May  8 17:59:23 mediaproxy01 media-relay[472]: Set resource limit for 
maximum open file descriptors to 11000
May  8 17:59:23 mediaproxy01 media-relay[472]: fatal error: failed to 
create MediaProxy Relay: No such file or directory
May  8 17:59:23 mediaproxy01 media-relay[472]: Traceback (most recent 
call last):
May  8 17:59:23 mediaproxy01 media-relay[472]: --- exception caught 
here ---
May  8 17:59:23 mediaproxy01 media-relay[472]:   File 
/usr/bin/media-relay, line 58, in module
May  8 17:59:23 mediaproxy01 media-relay[472]: relay = MediaRelay()
May  8 17:59:23 mediaproxy01 media-relay[472]:   File 
/var/lib/python-support/python2.5/mediaproxy/relay.py, line 340, in 
__init__
May  8 17:59:23 mediaproxy01 media-relay[472]: self.session_manager 
= SessionManager(self, Config.port_range.start, Config.port_range.end)
May  8 17:59:23 mediaproxy01 media-relay[472]:   File 
/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py, line 
601, in __init__
May  8 17:59:23 mediaproxy01 media-relay[472]: self.watcher = 
_conntrack.ExpireWatcher()
May  8 17:59:23 mediaproxy01 media-relay[472]: 
mediaproxy.interfaces.system._conntrack.Error: No such file or directory

Any idea what this is caused from?  Not much help on Google for that 
error...


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


Re: [OpenSIPS-Users] Help with MediaProxy running under OpenVZ...

2009-05-08 Thread Darren Sessions

Have you got the libnetfilter-conntrack and libnfnetlink libs  
installed with the proper version?



On May 8, 2009, at 12:14 PM, Totally Useless wrote:

 I'm not sure if this is possible, maybe that's why I am having such a
 hard time with it..

 I am trying to run MediaProxy on Debian 5.0 in an OpenVZ container.

 On my OpenVZ controller, I added iptable_nat to the IPTABLES list  
 and
 /etc/init.d/vz restarted

 When trying to start MediaProxy, I get:

 May  8 17:59:23 mediaproxy01 media-relay[472]: Starting MediaProxy  
 Relay
 2.3.4
 May  8 17:59:23 mediaproxy01 media-relay[472]: Set resource limit for
 maximum open file descriptors to 11000
 May  8 17:59:23 mediaproxy01 media-relay[472]: fatal error: failed to
 create MediaProxy Relay: No such file or directory
 May  8 17:59:23 mediaproxy01 media-relay[472]: Traceback (most recent
 call last):
 May  8 17:59:23 mediaproxy01 media-relay[472]: --- exception caught
 here ---
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /usr/bin/media-relay, line 58, in module
 May  8 17:59:23 mediaproxy01 media-relay[472]: relay =  
 MediaRelay()
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /var/lib/python-support/python2.5/mediaproxy/relay.py, line 340, in
 __init__
 May  8 17:59:23 mediaproxy01 media-relay[472]:  
 self.session_manager
 = SessionManager(self, Config.port_range.start, Config.port_range.end)
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /var/lib/python-support/python2.5/mediaproxy/mediacontrol.py, line
 601, in __init__
 May  8 17:59:23 mediaproxy01 media-relay[472]: self.watcher =
 _conntrack.ExpireWatcher()
 May  8 17:59:23 mediaproxy01 media-relay[472]:
 mediaproxy.interfaces.system._conntrack.Error: No such file or  
 directory

 Any idea what this is caused from?  Not much help on Google for that
 error...


 ___
 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] Help with MediaProxy running under OpenVZ...

2009-05-08 Thread Totally Useless
# apt-cache show libnetfilter-conntrack1
Package: libnetfilter-conntrack1
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 132
Maintainer: netfilter maintainers netfilter-maintain...@ned.snow-crash.org
Architecture: i386
Source: libnetfilter-conntrack
Version: 0.0.99-1

# apt-cache show libnfnetlink0
Package: libnfnetlink0
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 72
Maintainer: netfilter maintainers netfilter-maintain...@ned.snow-crash.org
Architecture: i386
Source: libnfnetlink
Version: 0.0.41-1

# apt-get install libnetfilter-conntrack1 libnfnetlink0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnetfilter-conntrack1 is already the newest version.
libnfnetlink0 is already the newest version.



Darren Sessions wrote:

 Have you got the libnetfilter-conntrack and libnfnetlink libs 
 installed with the proper version?



 On May 8, 2009, at 12:14 PM, Totally Useless wrote:

 I'm not sure if this is possible, maybe that's why I am having such a
 hard time with it..

 I am trying to run MediaProxy on Debian 5.0 in an OpenVZ container.

 On my OpenVZ controller, I added iptable_nat to the IPTABLES list and
 /etc/init.d/vz restarted

 When trying to start MediaProxy, I get:

 May  8 17:59:23 mediaproxy01 media-relay[472]: Starting MediaProxy Relay
 2.3.4
 May  8 17:59:23 mediaproxy01 media-relay[472]: Set resource limit for
 maximum open file descriptors to 11000
 May  8 17:59:23 mediaproxy01 media-relay[472]: fatal error: failed to
 create MediaProxy Relay: No such file or directory
 May  8 17:59:23 mediaproxy01 media-relay[472]: Traceback (most recent
 call last):
 May  8 17:59:23 mediaproxy01 media-relay[472]: --- exception caught
 here ---
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /usr/bin/media-relay, line 58, in module
 May  8 17:59:23 mediaproxy01 media-relay[472]: relay = MediaRelay()
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /var/lib/python-support/python2.5/mediaproxy/relay.py, line 340, in
 __init__
 May  8 17:59:23 mediaproxy01 media-relay[472]: self.session_manager
 = SessionManager(self, Config.port_range.start, Config.port_range.end)
 May  8 17:59:23 mediaproxy01 media-relay[472]:   File
 /var/lib/python-support/python2.5/mediaproxy/mediacontrol.py, line
 601, in __init__
 May  8 17:59:23 mediaproxy01 media-relay[472]: self.watcher =
 _conntrack.ExpireWatcher()
 May  8 17:59:23 mediaproxy01 media-relay[472]:
 mediaproxy.interfaces.system._conntrack.Error: No such file or directory

 Any idea what this is caused from?  Not much help on Google for that
 error...


 ___
 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] $fd core variable in 1.5

2009-05-08 Thread Alex G
can u check an ip based from domain in this variable? when I try to
match a fqdn in this variable with an if statement, I get the proper
result. If it try to match an ip, I do not get a result


if($fd == XXX.XXX.XXX.XXX) { do this;}does not work

if($fd == abc.com) {do this;}  does work

any thoughts?

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


[OpenSIPS-Users] need help with opensips.cfg

2009-05-08 Thread VIP Carrier
Hello Guys,
I need some help creating opensips.cfg

We are using Asterisk 1.4 + MySQL in realtime
We have a table called devices in that table we store information about
our user's devices.

I need help creating opensips.cfg file with correct mapping to the devices
table to take from there username and password information as well as the
rest of information.

Could some one please contact me off list and help me to do this.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] $fd core variable in 1.5

2009-05-08 Thread Iñaki Baz Castillo
El Viernes, 8 de Mayo de 2009, Alex G escribió:
 can u check an ip based from domain in this variable? when I try to
 match a fqdn in this variable with an if statement, I get the proper
 result. If it try to match an ip, I do not get a result


 if($fd == XXX.XXX.XXX.XXX) { do this;}does not work

 if($fd == abc.com) {do this;}  does work

 any thoughts?

$fd means From domain, just it. If you want to match the source IP use $si.

-- 
Iñaki Baz Castillo i...@aliax.net

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


Re: [OpenSIPS-Users] need help with opensips.cfg

2009-05-08 Thread Iñaki Baz Castillo
El Sábado, 9 de Mayo de 2009, VIP Carrier escribió:
 Could some one please contact me off list and help me to do this.

There are consultance services for that (not free).

-- 
Iñaki Baz Castillo i...@aliax.net

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


Re: [OpenSIPS-Users] need help with opensips.cfg

2009-05-08 Thread VIP Carrier
I have no problems to pay for it! I just need to get it done

On Fri, May 8, 2009 at 10:04 PM, Iñaki Baz Castillo i...@aliax.net wrote:

 El Sábado, 9 de Mayo de 2009, VIP Carrier escribió:
  Could some one please contact me off list and help me to do this.

 There are consultance services for that (not free).

 --
 Iñaki Baz Castillo i...@aliax.net

 ___
 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] need help with opensips.cfg

2009-05-08 Thread VIP Carrier
in our extconfig.conf
we have the following settings

iaxusers = mysql,switch,devices
iaxpeers = mysql,switch,devices
sipusers = mysql,switch,devices
sippeers = mysql,switch,devices
realtime_ext = mysql,switch,extlines
voicemail = mysql,switch,voicemail_boxes

please some one contact me I really need help with opensips to get it going

On Fri, May 8, 2009 at 10:14 PM, VIP Carrier vipcarr...@gmail.com wrote:

 I have no problems to pay for it! I just need to get it done


 On Fri, May 8, 2009 at 10:04 PM, Iñaki Baz Castillo i...@aliax.net wrote:

 El Sábado, 9 de Mayo de 2009, VIP Carrier escribió:
  Could some one please contact me off list and help me to do this.

 There are consultance services for that (not free).

 --
 Iñaki Baz Castillo i...@aliax.net

 ___
 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] ACK timout OpenSIPS MediaProxy Integration using MySQL db

2009-05-08 Thread Khan
Hi everyone,

I am having trouble running OpenSIPS, while back I had same problem,
this problem is surfaced back again, I am sure there is something I am
missing in my configuration.
Currently i am trying to do followings:
UAC1  MyOpenSIPS Server  MySQL auth   MediaProxy  UAC2

At this point, I don't have anything else running except OpenSIPS,
MySQL, and MediaProxy.

My connections are such...
ISP Modem -- *MyRouter --- MyServerBox

* MyRouter has open ports, 80,22,5060, 1-13000, 5-6
My Goals is to Integrate OpenSIPS. MySQL, and MediaProxy and make it
functional...

I started mediaproxy as follows:

root# media-dispatcher --no-fork
Starting MediaProxy Dispatcher 2.3.4
Twisted is using epollreactor
mediaproxy.dispatcher.RelayFactory starting on 50100
mediaproxy.dispatcher.OpenSIPSControlFactory starting on
'/var/run/mediaproxy/dispatcher.sock'
mediaproxy.dispatcher.ManagementControlFactory starting on 25061


Problem is that MediaProxy is not working with my configuration, I
don't know what is going on. I can see both MediaProxy and OpenSIPS is
running on my server BUT UAC outside my network still giving me the
same problem as in the beginning.  I constantly receive OPTIONS/SUBSCRIBE
from softphone outside my network since it doesn't received ACK, thus
generate error...

I made a call which lasted 35 seconds and got cut off giving UAC of
other party an error of network failure.

I have produced WS trace, please look at it and guide me what is wrong
with this situation, also my configuration is on the following link as
of today... http://pastebin.com/m3cf2769e

Thanks for all your help,


-- 
Khan


VoIP Rookie
Every beginning has an end regardless we believe it or not...

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


Re: [OpenSIPS-Users] ACK timout OpenSIPS MediaProxy Integration using MySQL db

2009-05-08 Thread Khan
Sorry forgot the attachment of WS...

Please Help...

On Fri, May 8, 2009 at 9:56 PM, Khan khansfri...@gmail.com wrote:

 Hi everyone,

 I am having trouble running OpenSIPS, while back I had same problem,
 this problem is surfaced back again, I am sure there is something I am
 missing in my configuration.
 Currently i am trying to do followings:
 UAC1      MyOpenSIPS Server      MySQL auth   MediaProxy  UAC2

 At this point, I don't have anything else running except OpenSIPS,
 MySQL, and MediaProxy.

 My connections are such...
 ISP Modem -- *MyRouter --- MyServerBox

 * MyRouter has open ports, 80,22,5060, 1-13000, 5-6
 My Goals is to Integrate OpenSIPS. MySQL, and MediaProxy and make it
 functional...

 I started mediaproxy as follows:
 
 root# media-dispatcher --no-fork
 Starting MediaProxy Dispatcher 2.3.4
 Twisted is using epollreactor
 mediaproxy.dispatcher.RelayFactory starting on 50100
 mediaproxy.dispatcher.OpenSIPSControlFactory starting on
 '/var/run/mediaproxy/dispatcher.sock'
 mediaproxy.dispatcher.ManagementControlFactory starting on 25061
 

 Problem is that MediaProxy is not working with my configuration, I
 don't know what is going on. I can see both MediaProxy and OpenSIPS is
 running on my server BUT UAC outside my network still giving me the
 same problem as in the beginning.  I constantly receive OPTIONS/SUBSCRIBE
 from softphone outside my network since it doesn't received ACK, thus
 generate error...

 I made a call which lasted 35 seconds and got cut off giving UAC of
 other party an error of network failure.

 I have produced WS trace, please look at it and guide me what is wrong
 with this situation, also my configuration is on the following link as
 of today... http://pastebin.com/m3cf2769e

 Thanks for all your help,


 --
 Khan


 VoIP Rookie
 Every beginning has an end regardless we believe it or not...




-- 
Khan


VoIP Rookie
Every beginning has an end regardless we believe it or not...


0507WStrace.pcap
Description: application/cap
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users