Re: [OpenSIPS-Users] About Nat Traversal and Stun

2010-10-13 Thread Paul Smith
Hi, stun module allows you to run a stun server on the opensips platform... so your device sith the stun client uses your proxy ip(s) to access a stun server. Paul CheeWii wrote: > Hi, > >I want to solve the nat traversal problem, and I read the great > book "Building Telephony System wit

Re: [OpenSIPS-Users] fail2ban and opensips

2010-09-30 Thread Paul Smith
Hi Jeff I think xlog was a separate module in 1.4, but merged into core by 1.6. The example you are looking at is not loading the module, hence you get the error. http://www.opensips.org/html/docs/modules/1.4.x/xlog.html If you follow the doc in the above link it should get you up and running

Re: [OpenSIPS-Users] Extract value from SIP Content? - SOLVED

2010-09-29 Thread Paul Smith
ll line :) > > so, do: > > avp_subst("$avp(s:msg)/$avp(s:dtmf)/g","/(^.*Signal=)([\+\#0-9]+)(.*$)/\2 : > /s"); > > > See the "s" flag at the end for ignoring new lines in subst > > Regards, > Bogdan > > > Paul Smith wrote: &

Re: [OpenSIPS-Users] Extract value from SIP Content?

2010-09-29 Thread Paul Smith
Hi Bogdan, Thanks for all the support, should I raise a bug report somewhere? Paul. Bogdan-Andrei Iancu wrote: Hi Paul, Paul Smith wrote: Hi Bogdan, There is something else going on. I tried the match you suggested and see the same result as previously in my log: extracted

Re: [OpenSIPS-Users] Extract value from SIP Content?

2010-09-28 Thread Paul Smith
properly. Regards, Paul Bogdan-Andrei Iancu wrote: > Hi Paul, > > the subst is too permissive and the string to the end is matched by the > second token. > > try: > > avp_subst("$avp(s:msg)/$avp(s:dtmf)/g","/(^.*Signal=)([0-9]+)(.*$)/\2 : /"); > > R

[OpenSIPS-Users] Extract value from SIP Content?

2010-09-28 Thread Paul Smith
Sorry I replied to "Opensips Cluster thread"... obviously this is unrelated! I have made a little more progress but the avp_subst is still not behaving as I expect. if I use the following code: # look for "Signal=" and append following character to collected dtmfs $avp(s:msg)=$rb;

[OpenSIPS-Users] Extract value from SIP Content?

2010-09-28 Thread Paul Smith
Hi, I am sure this is trivial... but I'm getting lost again. I would like to extract and log a value from the Content of a SIP INFO message... for example during a call I can send DTMF as SIP-INFO messages, how can I extract the value of the key pressed from the message? The relevant bit of th

Re: [OpenSIPS-Users] Runtime avp substitution

2010-09-27 Thread Paul Smith
is performance killer for DB. Paul Smith wrote: OK I have a working solution now... code still needs tidying up and optimizing but I'll post it here in case anyone comes looking for this in the future. The significant bit is that avp_db_query() can run any MYSQL SELECT query, a

Re: [OpenSIPS-Users] Runtime avp substitution

2010-09-25 Thread Paul Smith
7; and domain='$fd' and '\$pU' REGEXP expcallerid","$avp(s:callerid)"); xlog("preferred callerid $pU tested, using callerid: $avp(s:callerid)"); } xlog("callerid now set to $avp(s:callerid)"); Thanks for

Re: [OpenSIPS-Users] Runtime avp substitution

2010-09-23 Thread Paul Smith
wrote: Hi Paul, you need a substitution, replacement or simply matching ? Regards, Bogdan Paul Smith wrote: Hi Bogdan, Thanks for the reply. I am using dialplan module for mangling the dialled number to local valid service codes and e164 destinations. I was hoping to use a simple field

Re: [OpenSIPS-Users] Runtime avp substitution

2010-09-22 Thread Paul Smith
id (P-Preferred-Identity) ranges. I'll have to have a think about how to use dialplan to do this, and still keep my simple user provisioning gui... *Paul Smith | Technical Director | Clarity Telecom* Number One, Lanyon Quay, Belfast, BT1 3LG Phone: 0800 91 21 000 | 1800 855 111 FAX:

[OpenSIPS-Users] Runtime avp substitution

2010-09-22 Thread Paul Smith
How can I do a regular expression substitution on an avp where the pattern is loaded from the user subsrciption or usr_preference table? For example I need to limit callerid presented to a pre-determined range owned by my customer, and perform substitution eg add a prefix. If a UAC sets P-Pref

[OpenSIPS-Users] force_rtp_proxy content-length error

2010-09-14 Thread Paul Smith
message body 476 with length 476 Sep 14 16:52:25 echo /sbin/opensips[30442]: length 476 I am obviously wrong but the way I read it the opensips server is receiving an invite with content-length of 476. 476 is recorded in the header, and 476 is the length of the received body $rb string....how