[Kamailio-Users] HOWTO rewrite to: header
alexander merkulov
arheops at gmail.com
Wed Mar 4 23:31:31 CET 2009
thats work for invite nice, but not work fro cancel
even this (very simple form) not change cancel
if (method == "BYE" || method == "CANCEL") {
# xlog("bye\n");a
xlog("L_INFO", "CANCEL - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n");
if(t_check_trans()){
xlog("triing to rewrite");
if ( subst('/192/aaa/ig') ) {};
t_relay();
exit;
}else{
xlog("no trans");
exit;
}
2009/3/4 alexander merkulov <arheops at gmail.com>
> unfortanly it not work after
> location()
> known limitation: use non-rewrited message.
>
> 2009/3/4 Ovidiu Sas <osas at voipembedded.com>
>
> Take a look at textops module:
>> http://www.kamailio.net/docs/modules/1.5.x/textops.html#id2467719
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Wed, Mar 4, 2009 at 4:20 PM, alexander merkulov <arheops at gmail.com>
>> wrote:
>> > here is correct reqwest and reqwest via kamailio
>> >
>> > is there any way to rewrite To: field in kamailio
>> > because now it nto work
>> >
>> > correct reqwest(asterisk)
>> > RECEIVING FROM: 69.70.173.195:5060
>> > CANCEL sip:34249 at 193.110.78.12:8484 SIP/2.0
>> > Via: SIP/2.0/UDP 192.168.1.180:5060;branch=z9hG4bK4c97bd4a
>> > From: "Unknown" <sip:Unknown at voip1.bravotelecom.com<sip%3AUnknown at voip1.bravotelecom.com>
>> >;tag=as366a0ba0
>> > To: <sip:34249 at 193.110.78.12:8484>
>> > Call-ID: 322db75c71be4ba45a61c7666b93e6be at voip1.bravotelecom.com
>> > CSeq: 102 CANCEL
>> > User-Agent: Asterisk PBX
>> > Max-Forwards: 70
>> > Content-Length: 0
>> >
>> > incorrect reqwest(multi-homed kamailio, asterisk originate to internal
>> eth)
>> >
>> > RECEIVING FROM: 69.70.173.195:5060
>> > CANCEL sip:34249 at 193.110.78.12:8484 SIP/2.0
>> > Via: SIP/2.0/UDP 69.70.173.195;branch=z9hG4bK1b1b.3c42cea6.0
>> > From: "Unknown" <sip:Unknown at 69.70.173.195<sip%3AUnknown at 69.70.173.195>
>> >;tag=as6075df60
>> > Call-ID: 4d784fa972c4e9c9795032417f46cb26 at voip1.bravotelecom.com
>> > To: <sip:34249 at 192.168.2.170 <sip%3A34249 at 192.168.2.170>>
>> > CSeq: 102 CANCEL
>> > Max-Forwards: 70
>> > asterisk
>> > Content-Length: 0
>> >
>> > --
>> > Merkulov Alexander
>> >
>> > _______________________________________________
>> > Kamailio (OpenSER) - Users mailing list
>> > Users at lists.kamailio.org
>> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>> >
>>
>
>
>
> --
> Merkulov Alexander
>
--
Merkulov Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090305/c737f26e/attachment.htm
More information about the Users
mailing list