Re: [SR-Users] Regex Transformations

2010-07-05 Thread Daniel-Constantin Mierla
Hello, On 7/4/10 9:23 AM, Brandon Armstead wrote: Hello, I am trying to match a multi-line psuedo variable, i.e. $rb However I am wishing to pull out the payload values i.e. "0 18 101" "18 101" etc.. etc... I am having trouble matching this. Any help would be appreciated. One part t

Re: [SR-Users] Cancel rtp proxy changes to SDP

2010-07-05 Thread Henning Westerholt
On Friday 02 July 2010, David wrote: > At this point, it would be wasteful to use the RTP Proxy as the audio will > be between two devices on the same network. Hi David, depending on your resource situation and the number of calls in the specific scenario you may find it easier to just proxy th

[SR-Users] $rU rewrite problem

2010-07-05 Thread Dmitri Korotkov
Hello, I have problems with rewriting $rU. Kamailio 3.0.1 on debian squeeze x86_64 In config file I have: $avp(s:dnumber) = $(ru{re.subst,/^sip:\*99\*(.*)@.*/\1/}); $rU=$avp(s:dnumber); And log file shows following warnings: Jul 5 17:22:30 voice /usr/sbin/kamailio[23641]: WARNING: [rvalue.

Re: [SR-Users] $rU rewrite problem

2010-07-05 Thread Alex Balashov
Dmitri, Why not do this instead? if($rU =~ "^99") strip(2); -- Alex Balashov - Principal Evariste Systems LLC 1170 Peachtree Street 12th Floor, Suite 1200 Atlanta, GA 30309 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ On Jul 5, 2010, at 10:38 AM, Dmitri Korotko

Re: [SR-Users] LCR, problem with routing (prefix, from_uri, grp_id)

2010-07-05 Thread Maciej Bylica
Hi Juha, > no you can't.  searching for longest matching prefix would not really > slow if prefix could be regex. > > dialplan module supports regexs.  perhaps you can you that to produce an > attribute that you can match to lcr prefixes. What do You mean by saying that? How to produce an attribu

Re: [SR-Users] LCR, problem with routing (prefix, from_uri, grp_id)

2010-07-05 Thread Juha Heinanen
Maciej Bylica writes: > > dialplan module supports regexs.  perhaps you can you that to produce an > > attribute that you can match to lcr prefixes. > > What do You mean by saying that? > How to produce an attribute that may be matched to lcr prefixes? if dp_translate matches a dialplan match_ex

Re: [SR-Users] $rU rewrite problem

2010-07-05 Thread Dmitri Korotkov
Hi Alex, There was a simplified example in my previous message. In real I have to use regexp to extract two parts from the $rU and use one as new $rU and other one for system purporses. Br, Dmitri 05.07.2010 17:52, Alex Balashov пишет: Dmitri, Why not do this instead? if($rU =~ "^99") str

Re: [SR-Users] LCR, problem with routing (prefix, from_uri, grp_id)

2010-07-05 Thread Maciej Bylica
> if dp_translate matches a dialplan match_exp then corresponding attr > value is assigned to attrs_pvar.  you can then prefix $rU with that > value and call load_gws(). > Thanks Juha. I am about to implement what You've said. Maciej. ___ SIP Express R

Re: [SR-Users] Regex Transformations

2010-07-05 Thread Brandon Armstead
Hello, An example $rb body would be: v=0#015#012o=- 5 2 IN IP4 192.168.3.100#015#012s= CounterPath Bria#015#012c=IN IP4 174.37.XX.XXX#015#012t=0 0#015#012m=audio 64192 RTP/AVP 107 0 8 18 101#015#012a=sendrecv#015#012a=rtpmap:107 BV32/16000#015#012a=rtpmap:18 G729/8000#015#012a=fmtp:18 annexb=

Re: [SR-Users] CANCEL before INVITE

2010-07-05 Thread David
Hello, I upgraded to Kamailio 3.0 and the CANCEL is being sent after it receives a 100 Trying, as mentioned in RFC3261 section 9. I stripped down the config file to the bare minimum so that it is easier to debug ( see attached kamailio.cfg ) I have included my config file as well as a packet

Re: [SR-Users] CANCEL before INVITE

2010-07-05 Thread David
Hello, Here are the corrected attachments, I sent the email from Window's wordpad which set it to RTF by default. Here are proper txt logs. David On 2010-07-05 17:47, David wrote: Hello, I upgraded to Kamailio 3.0 and the CANCEL is being sent after it receives a 100 Trying, as mentio

[SR-Users] About setflag()'s parameter

2010-07-05 Thread zhou tianjun
Hi all, I'm in doubt of the means of setflag()'s parameter. I have looked for it everywhere including internet and the ser source code, but no any docs explained it in detail. can anybody tell me about it ? -- With best regards by sunone ___ SIP Expres

Re: [SR-Users] About setflag()'s parameter

2010-07-05 Thread Alex Balashov
On 07/05/2010 09:59 PM, zhou tianjun wrote: I'm in doubt of the means of setflag()'s parameter. I have looked for it everywhere including internet and the ser source code, but no any docs explained it in detail. can anybody tell me about it ? It sets bits in a 32-bit integer (it may be 64-bit