Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-27 Thread Spinov Evgeniy
Looking good. I've rewrited variables and it parses well. Script continues to run just after call of msg_apply_changes(). ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.o

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-25 Thread Klaus Darilion
Am 25.03.2011 13:30, schrieb Spinov Evgeniy: > Question is execution of script will continue just after this call with > reparsed packet or will run the script again? Debug shows that will > continue from that point, but I'm unsure that I'm working with reparsed > packet. AFAIK it continues. Just

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-25 Thread Spinov Evgeniy
On Thu, 2011-03-24 at 14:14 +0100, Daniel-Constantin Mierla wrote: > Are you calling msg apply changes after record_route()? Try to do > record_route() after since it tries to discover the outgoing local > interface which might not be set at that point. This has fixed the problem. Also I'm wond

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-24 Thread Daniel-Constantin Mierla
Are you calling msg apply changes after record_route()? Try to do record_route() after since it tries to discover the outgoing local interface which might not be set at that point. Btw, is Kamailio bridging between two networks? The output with '-E -ddd' will be helpful anyhow. Cheers, Daniel

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-24 Thread Spinov Evgeniy
On Thu, 2011-03-24 at 07:42 +0100, Daniel-Constantin Mierla wrote: > Hello, > > if you watch the SIP traffic with ngrep, do you see the message sent out? First of all I would like to thank you your time devoted to this problem. To not flood mail with long text, I've written it in short, without

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Daniel-Constantin Mierla
Hello, if you watch the SIP traffic with ngrep, do you see the message sent out? Can you reproduce this case easily? If yes, can you start kamailio with extra parameters '-E -ddd' and send here all the debug messages printed for such case, from the moment the SIP request is received. Cheers,

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Spinov Evgeniy
On Wed, 2011-03-23 at 15:16 +0100, Daniel-Constantin Mierla wrote: Well, unfortunately no. When I use msg_apply_changes() and I see this messages, signalization doesn't work fine. Actually call is not being established - it's just getting timeouts from K and failure routes are being executed. As

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Daniel-Constantin Mierla
Hello, I have to look into the sources and doubel check, but the log messages seem to be harmless. For the moment, you can just set a flag when you change something in the message and then call msg_apply_changes() only when the flag is set, e.g., remove_hf("From"); setflag(20); ... if(isf

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Spinov Evgeniy
Hi, I've installed, as you advised Kamailio 3.1.2 and used msg_apply_changes(). However, even when I'm not changing anything in the packet and just calling msg_apply_changes() I get errors from K: 7(31755) : [msg_translator.c:519]: ERROR: lump_check_opt: null send socket 7(31755) : [msg_trans

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-02-11 Thread Klaus Darilion
Am 11.02.2011 14:51, schrieb Spinov Evgeniy: >> Hello, > >> with the latest version there are alternatives you can use: > >>> On 12/10/09 5:06 PM, David wrote: >>> Hey, >>> >>> I won't pretend to be an expert in Kamailio, someone will probably >>> suggest a better way. But here is how I rewrot

[SR-Users] [Kamailio-Users] Rewrite $tU

2011-02-11 Thread Spinov Evgeniy
>Hello, >with the latest version there are alternatives you can use: >> On 12/10/09 5:06 PM, David wrote: >> Hey, >> >> I won't pretend to be an expert in Kamailio, someone will probably >> suggest a better way. But here is how I rewrote my SIP packet's TO >> header before relaying it to the ne