[SR-Users] Psuedo Variable.

2010-10-25 Thread David J.
Hello List; I was following along the Kamailio Asterisk Realtime Integration; I modified the script to get it working on Kamailio v 3.1. One area I had a question about was here... We have the following block; # Forward REGISTER to Asterisk route[REGFWD] { if(!is_method("REGISTER"))

Re: [SR-Users] Redirecting 302 problem

2010-10-25 Thread Iñaki Baz Castillo
(I forward and reply this mail to the maillist). 2010/10/26 Mino Haluz : > Maybe I have not explained it very clearly, but the issue was hidden > in using fix_nated_contact(). I commented it out and everything works > perfect :) Ok, that's a different problem. If you call fix_nated_contact() for

Re: [SR-Users] Redirecting 302 problem

2010-10-25 Thread Iñaki Baz Castillo
2010/10/22 Mino Haluz : > my kamailio receives 302 from ip 1.1.1.1 with a correct Contact-header > format 1...@kamailiohost , but when it forwards to my cisco as, it suddenly > changes the host part to 1.1.1.1 .. It is very strange because, this IP does > not have anything common with the callee nu

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Iñaki Baz Castillo
2010/10/25 Daniel-Constantin Mierla : >> Right, but IMHO it would make more sense it to be a flag and not a >> bflag (as the registrar server is processing the incoming transaction >> rather than generating an outgoing transaction). This is, the >> registrar set a flag(NATTED) before "save(location

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Daniel-Constantin Mierla
On 10/25/10 10:30 PM, Iñaki Baz Castillo wrote: 2010/10/25 Daniel-Constantin Mierla: PS: Perhaps would it make sense a constrain so setbflag(), isbflagset() and resetbflag() cannot be used in route and failure_route anymore? they are necessary in route to mark natted register Right, but IMHO

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Iñaki Baz Castillo
2010/10/25 Daniel-Constantin Mierla : >> PS: Perhaps would it make sense a constrain so setbflag(), >> isbflagset() and resetbflag() cannot be used in route and >> failure_route anymore? > > they are necessary in route to mark natted register Right, but IMHO it would make more sense it to be a fla

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Daniel-Constantin Mierla
On 10/25/10 10:08 PM, Iñaki Baz Castillo wrote: 2010/10/25 Daniel-Constantin Mierla: Looked in the code and I saw that only first branch inherits the branch flags from main route, the other takes only the value from location records. Ok, so better to be careful with this and use blfag just un

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Iñaki Baz Castillo
2010/10/25 Daniel-Constantin Mierla : > Looked in the code and I saw that only first branch inherits the branch > flags from main route, the other takes only the value from location records. Ok, so better to be careful with this and use blfag just under branch_route :) PS: Perhaps would it make s

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Daniel-Constantin Mierla
On 10/25/10 6:35 PM, Iñaki Baz Castillo wrote: 2010/10/25 Daniel-Constantin Mierla: why are you using "i:1"? The parameter must be just 1. Sorry, just a typo in the mail :) , so the bflag will be set for all the branches that could be generated for this incoming transaction. This also inv

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Iñaki Baz Castillo
2010/10/25 Daniel-Constantin Mierla : > why are you using "i:1"? The parameter must be just 1. Sorry, just a typo in the mail :) >> , so the bflag will be set >> for all the branches that could be generated  for this incoming >> transaction. This also involves creating new branches manually unde

Re: [SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Daniel-Constantin Mierla
Hello, On 10/25/10 6:25 PM, Iñaki Baz Castillo wrote: Hi, I know that handling bflags outside of branch_route is not a good idea. Anyhow I have a doubt: 1) In a normal route I set "setbflag(i:1)" why are you using "i:1"? The parameter must be just 1. , so the bflag will be set for all the b

[SR-Users] bflag under failure_route (kamailio 1.5)

2010-10-25 Thread Iñaki Baz Castillo
Hi, I know that handling bflags outside of branch_route is not a good idea. Anyhow I have a doubt: 1) In a normal route I set "setbflag(i:1)", so the bflag will be set for all the branches that could be generated for this incoming transaction. This also involves creating new branches manually und

Re: [SR-Users] Drouting usage

2010-10-25 Thread marius zbihlei
On 10/25/2010 04:16 PM, Javier Gallart wrote: Hello sorry if this sounds too "newbie". I'm interested in the drouting module. The first INVITE is correctly forwarded to the gw foudn in the drouting table: if (is_method("INVITE") && !has_totag()) { do_routing("0");

[SR-Users] PSTN call

2010-10-25 Thread michel freiha
Dear All, Can someone help me to connect my kamilio in order to make a PSTN call by rewriting host tp PSTN gateway? I changed my config in a manner to do that...The line is ringing but as soon as I open the line on other side the call will hangup...Please find the piece of code # RTPProxy control

[SR-Users] Drouting usage

2010-10-25 Thread Javier Gallart
Hello sorry if this sounds too "newbie". I'm interested in the drouting module. The first INVITE is correctly forwarded to the gw foudn in the drouting table: if (is_method("INVITE") && !has_totag()) { do_routing("0"); record_route(); } However for subsequen

Re: [SR-Users] Outbound load balancing

2010-10-25 Thread Lee Archer
Thanks, I'm currently using 3.0.4 but I will have a play. Regards Lee From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: 25 October 2010 10:01 To: Lee Archer Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Outbound load balancing On 10/25/10 10:24 AM, Lee A

Re: [SR-Users] Debug xmpp module with kamailio 3.0.4

2010-10-25 Thread Huy Nguyen
Hi Robert and list, @Robert: thank you so much. After change some things as the guide of Robert, i can see more LM_DBG from other modules as: tm, core (msg_parser.c, t_lookup.c.. )...but what i need is the log from xmpp module (e.g xmpp.c, xmpp_component.c..). As the guide on xmpp

Re: [SR-Users] Debug xmpp module with kamailio 3.0.4

2010-10-25 Thread Robert Verspuy
On 10/25/2010 12:31 PM, Huy Nguyen wrote: log_facility=LOG_LOCAL0 How can I check all LM_DBG logs in some files as xmpp.c, xmpp_component.c to view the registration processing of kamailio to local jabberd s erver ? Huy, In the default syslog.conf of centos you have a line: *.info;mail

[SR-Users] SMS module not found parameter.

2010-10-25 Thread peter_green lion
hi all, i am a new bie in kamailio. i use SMS module to send message to GSM net work. my kamailio.cfg is : modparam("sms", "modems", "wavecom[d=/dev/ttyS;c=+8490022;b=57600; m=new;l=20]") modparam("sms", "networks", "D1[m=10]; d2[m=10]") modparam("sms", "links", "wavecom[D1;d2]") modparam("

[SR-Users] Debug xmpp module with kamailio 3.0.4

2010-10-25 Thread Huy Nguyen
Hi all, About xmpp module on kamailio 3.0.4 (Centos server). I enabled DEBUG mode with level 7, but when check on /var/log/message I don't see any log from xmpp module (LM_DBG): #!ifdef WITH_DEBUG debug=7 log_stderror=no #!else debug=2 log_stderror=no #!endif memdbg=5 memlog=5 log_facility=L

Re: [SR-Users] Outbound load balancing

2010-10-25 Thread Daniel-Constantin Mierla
On 10/25/10 10:24 AM, Lee Archer wrote: Hi, doesKamailio support any sort of outbound load balancing where youcanset the resources available at a gatewayand the system keeps a list of what's in use? Kamailio 3.1 dispatcher module has support for load balancing based on weight or call load

Re: [SR-Users] Outbound load balancing

2010-10-25 Thread Alex Balashov
On 10/25/2010 04:24 AM, Lee Archer wrote: Hi, doesKamailio support any sort of outbound load balancing where youcanset the resources available at a gatewayand the system keeps a list of what’s in use? Opensips has something similar but does kamailio? Yes, very much so. Look into the 'dialog'

[SR-Users] Outbound load balancing

2010-10-25 Thread Lee Archer
Hi, does Kamailio support any sort of outbound load balancing where you can set the resources available at a gateway and the system keeps a list of what's in use? Opensips has something similar but does kamailio? Thanks Lee ___ SIP Express Router (SER)