[SR-Users] Support

2012-12-17 Thread Murali Krish
Hi this is Murali krishnan i am final student of master degree in Dalhousie University, I am Working on my project, i m need of a sip server which can support H.264 codec video calls...I created an account in iptel sip account when i used the account it doesn't support video calls. If i use SER wil

Re: [SR-Users] Planning next minor release - v3.3.3

2012-12-17 Thread Daniel-Constantin Mierla
Hello, I will package v3.3.3 tomorrow afternoon, please make all wanted commits to branch 3.3 before noon GMT. Cheers, Daniel On 12/11/12 10:32 AM, Daniel-Constantin Mierla wrote: Hello, I am considering releasing next minor version from branch 3.3 at the beginning of next week, Monday or

Re: [SR-Users] From sip phone to provider trunk

2012-12-17 Thread andre second
Still no success.Shall I use auth module maybe? --- On Fri, 12/14/12, andre second wrote: From: andre second Subject: Re: [SR-Users] From sip phone to provider trunk To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" , mico...@gmail.com Date: Friday, Decemb

[SR-Users] Bug in uac_replace_from if used more than once?

2012-12-17 Thread Daniel Tryba
Apparantly it should be simple to mangle the From in request: http://kamailio.org/docs/modules/stable/modules_k/uac.html#id2525538 The task at hand is use the prefix 131 to suppress callerid for this call: if($rU=~"^131[0-9]+$") { strip(3); append_hf("Privacy: id\r\n"); uac_replace_from("anony

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Andreas Granig
Hi, This might sound like a silly question, but why don't you use lookup() instead? You can pass a PV also instead of just using $ru. Andreas On 12/17/2012 04:40 PM, Ali Jawad wrote: Seems the logic I used is flawed, problem is not all of the sip clients register their domain in the location

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
Seems the logic I used is flawed, problem is not all of the sip clients register their domain in the location table, alot of them have NULL as domain, so I need to rely on the socket column in location table to determine where to send the incoming call. Problem is I need to extract only the IP from

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Alex Balashov
Your reference to the row, column lacks $dbr() PV encapsulation. Ali Jawad wrote: >Thanks Alex, now it works if I do set the $ru manually, however if I do >set >it dynamically it still gives destination unresolvable, I do fetch a >SQL >statement and row 1,1 is hostname > > >whil

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
Thanks Alex, got it to work as follows : $ru = "sip:"+$xavp(ra=>username)+"@"+$xavp(ra=>domain); On Mon, Dec 17, 2012 at 3:33 PM, Ali Jawad wrote: > I did make it simpler as follows : > > sql_xquery("cb", "select username,domain from location where > username like 'support1' "

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
I did make it simpler as follows : sql_xquery("cb", "select username,domain from location where username like 'support1' " , "ra"); $ru = "sip:support1@$xavp(ra=>domain):5060"; xlog ("Pseudo destiantion is $xavp(ra=>domain)"); xlog actually does reply correctly with the v

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
Thanks Alex, now it works if I do set the $ru manually, however if I do set it dynamically it still gives destination unresolvable, I do fetch a SQL statement and row 1,1 is hostname while($var(i)<$dbr(ra=>rows)) { $var(j) = 0;

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Alex Balashov
Note: I was speaking of $ru, not $du. On 12/17/2012 06:06 AM, Ali Jawad wrote: Thanks Alex, I did try the following : $du = "sip:suppo...@ip.of.second.server:5060"; route(1); I am getting too many hops though, the alias on both servers is different and the hosts file include

Re: [SR-Users] dlg_manage() and add_contact_alias() problem

2012-12-17 Thread Pavel Miskov
Hi Daniel, sorry for delay, I was out of office. here are dialog attributes for this to cases, with ngrep output and configuration at the end. Thanks Pavel 1. add_contact_alias() ./kamctl fifo profile_list_dlgs caller dialog:: hash=3965:7641 state::

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
Thanks Alex, I did try the following : $du = "sip:suppo...@ip.of.second.server:5060"; route(1); I am getting too many hops though, the alias on both servers is different and the hosts file includes the alias for each server. Regards On Mon, Dec 17, 2012 at 12:45 PM, Alex Balasho

Re: [SR-Users] variable in rewritehost ?`

2012-12-17 Thread Alex Balashov
rewritehost doesn't accept PVs. It's a rather legacy function. Just modify the RURI directly, instead using $ru (and $rU, $rd, and $rp). For more information, see: http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables On 12/17/2012 04:51 AM, Ali Jawad wrote: Hi I am using slqops to

[SR-Users] variable in rewritehost ?`

2012-12-17 Thread Ali Jawad
Hi I am using slqops to get some user related info from location table, I want to use that info in rewritehost, however when I do use a variable in rewritehost I get an error "Unable to resolve variable". Is it possible to use a variable in rewritehost ? If not what is the workaround ? Thanks _