[Serusers] How to use record route to change path of BYE messages

İlker Aktuna (Koç.net) ilkera at koc.net
Thu May 4 23:08:49 CEST 2006


Hi,
 
Thanks for your reply but this is totally a different case.
In my case the problem is not CANCEL messages but BYE and ACK messages.
 
BYE message (and also ACK) is sent to the contact of the RTP stream instead of the SER proxy.
But I want these messages to be sent to SER.
That's why I should somehow make them to be sent to SER.
 
So It should be done by either recording route or changing contact header.
How can I do that ?
 
Thanks,
ilker

________________________________

From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On Behalf Of fay butt
Sent: Thursday, May 04, 2006 7:08 PM
To: serusers at lists.iptel.org
Subject: Re: [Serusers] How to use record route to change path of BYE messages


hi,
   i had that problem a time ago.
  I just put this messege and now it's working fine.
  if (method == "CANCEL" )
              {   
             if (uri =~"^sip:4[0-9]*@localhost") {
               forward ( asterisk , 5060 );  
               t_relay();
               break;
               };
              };

"Ýlker Aktuna (Koç.net)" <ilkera at koc.net> wrote: 

	Hi,
	
	For voice communication I use a SIP+RTP proxy together with SER.
	For PSTN calls SER routes the INVITE messages to the RTP proxy.
	
	Everything works fine there, but when the call is ended by one client (which is connected to SER) or the PSTN user, the BYE message does not arrive to SER. If our RTP proxy does not see the message coming from SER, call doesn't end.
	
	That's why I need all of the BYE messages to go through SER.
	How can I do that ?
	In the default configuration there is a record route process for every message other than REGISTER.
	But still BYE and ACK messages are not sent to SER.
	
	Should I change the contact header of the messages arriving from RTP proxy ?
	If so, how can I do it ?
	
	What does following configuration block do ?
	
	        if (loose_route()) {
	                # mark routing logic in request
	                append_hf("P-hint: rr-enforced\r\n");
	                route(1);
	                break;
	        };
	
	
	Thanks,
	ilker
	
	_____________________________________________________________________________________________________________________________________________
	Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,  icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz  ve  tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.  Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. 
	This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential  information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,  sender  cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
	_____________________________________________________________________________________________________________________________________________
	_______________________________________________
	Serusers mailing list
	serusers at lists.iptel.org
	http://lists.iptel.org/mailman/listinfo/serusers
	


________________________________

How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>  

 <http://387555.sigclick.mailinfo.com/sigclick/02090504/06074F06/04084E03/21121323.jpg>
_____________________________________________________________________________________________________________________________________________
Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,  icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz  ve  tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.  Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. 
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential  information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,  sender  cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
_____________________________________________________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060505/6b9cde99/attachment.htm>


More information about the sr-users mailing list