<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Serusers] CPL</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Bogdan,</FONT>
</P>
<P><FONT SIZE=2>The version of ser is 0.8.13. (I will update from cvs today)</FONT>
<BR><FONT SIZE=2>About the timeout issue, ok, the proxy no answer works with the "tm" modparams.</FONT>
<BR><FONT SIZE=2>My question now is, how to configure a proxy no answer and busy for the same user who will upload the script?</FONT>
</P>
<P><FONT SIZE=2>Thanks again,</FONT>
<BR><FONT SIZE=2>Toni</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Bogdan-Andrei IANCU [<A HREF="mailto:iancu@fokus.fraunhofer.de">mailto:iancu@fokus.fraunhofer.de</A>]</FONT>
<BR><FONT SIZE=2>Sent: quinta-feira, 26 de Fevereiro de 2004 12:02</FONT>
<BR><FONT SIZE=2>To: Toni Barata</FONT>
<BR><FONT SIZE=2>Cc: 'serusers@lists.iptel.org'</FONT>
<BR><FONT SIZE=2>Subject: Re: [Serusers] CPL</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi Tony,</FONT>
</P>
<P><FONT SIZE=2>First one question: what ser version are you using?</FONT>
</P>
<P><FONT SIZE=2>The noanswer issue was previous disscused on the mailing list - here is </FONT>
<BR><FONT SIZE=2>some copy past :</FONT>
</P>
<P><FONT SIZE=2>Try to do the followings:</FONT>
<BR><FONT SIZE=2>modparam("tm","noisy_ctimer",1) # this will force timeout</FONT>
<BR><FONT SIZE=2>modparam("tm","fr_inv_timer",30) # sets the timeout for INVITE to 40 sec</FONT>
<BR><FONT SIZE=2>(default is 120)</FONT>
</P>
<P><FONT SIZE=2>Please tell me if this works for you.</FONT>
</P>
<P><FONT SIZE=2>Toni Barata wrote:</FONT>
</P>
<P><FONT SIZE=2>> Hi Bogdan,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Thanks for the recomendation ;-)</FONT>
<BR><FONT SIZE=2>> But I still have some troubles with the script for "proxy if no answer".</FONT>
<BR><FONT SIZE=2>> If I upload the following script on the user, e.g. "client1", the </FONT>
<BR><FONT SIZE=2>> "proxy if no answer" works for the new url (in the first location tag):</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <cpl></FONT>
<BR><FONT SIZE=2>> <incoming></FONT>
<BR><FONT SIZE=2>> <location url="sip:client2@10.112.128.5"></FONT>
<BR><FONT SIZE=2>> <proxy></FONT>
<BR><FONT SIZE=2>> <noanswer></FONT>
<BR><FONT SIZE=2>> <location url="sip:client3@10.112.128.5"></FONT>
<BR><FONT SIZE=2>> <proxy /></FONT>
<BR><FONT SIZE=2>> </location></FONT>
<BR><FONT SIZE=2>> </noanswer></FONT>
<BR><FONT SIZE=2>> </proxy></FONT>
<BR><FONT SIZE=2>> </location></FONT>
<BR><FONT SIZE=2>> </incoming></FONT>
<BR><FONT SIZE=2>> </cpl> </FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> But if the "new" url is the same of the client who have uploaded the </FONT>
<BR><FONT SIZE=2>> script (client1), like in the following script, the ser respond with a </FONT>
<BR><FONT SIZE=2>> "too many hops error":</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>make sens to do so. If somebody calls user client1, it's script will do </FONT>
<BR><FONT SIZE=2>proxy to himself (to clinet1) and the request will hit again the proxy, </FONT>
<BR><FONT SIZE=2>the CPL script will be run again, and so one.....</FONT>
</P>
<P><FONT SIZE=2>> <cpl></FONT>
<BR><FONT SIZE=2>> <incoming></FONT>
<BR><FONT SIZE=2>> <location url="sip:client1@10.112.128.5"></FONT>
<BR><FONT SIZE=2>> <proxy></FONT>
<BR><FONT SIZE=2>> <noanswer></FONT>
<BR><FONT SIZE=2>> <location url="sip:client2@10.112.128.5"></FONT>
<BR><FONT SIZE=2>> <proxy /></FONT>
<BR><FONT SIZE=2>> </location></FONT>
<BR><FONT SIZE=2>> </noanswer></FONT>
<BR><FONT SIZE=2>> </proxy></FONT>
<BR><FONT SIZE=2>> </location></FONT>
<BR><FONT SIZE=2>> </incoming></FONT>
<BR><FONT SIZE=2>> </cpl></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> So my question is, how can i implement the script to activate the </FONT>
<BR><FONT SIZE=2>> proxy no answer to the user who will upload the script?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Many Thanks,</FONT>
<BR><FONT SIZE=2>> Toni</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Bogdan-Andrei IANCU [<A HREF="mailto:iancu@fokus.fraunhofer.de">mailto:iancu@fokus.fraunhofer.de</A>]</FONT>
<BR><FONT SIZE=2>> Sent: quarta-feira, 25 de Fevereiro de 2004 17:49</FONT>
<BR><FONT SIZE=2>> To: Toni Barata</FONT>
<BR><FONT SIZE=2>> Cc: 'serusers@lists.iptel.org'</FONT>
<BR><FONT SIZE=2>> Subject: Re: [Serusers] CPL</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Hi Toni,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> the problem is that your script is wrong. Please read carefully the</FONT>
<BR><FONT SIZE=2>> cpl-draft from ietf</FONT>
<BR><FONT SIZE=2>> <A HREF="http://www.ietf.org/internet-drafts/draft-ietf-iptel-cpl-08.txt" TARGET="_blank">http://www.ietf.org/internet-drafts/draft-ietf-iptel-cpl-08.txt</A> (there</FONT>
<BR><FONT SIZE=2>> are also several examples there).</FONT>
<BR><FONT SIZE=2>> Some hints: when you do proxy, your location set is empty - there is no</FONT>
<BR><FONT SIZE=2>> location or lookup tag before and for incoming processing the location</FONT>
<BR><FONT SIZE=2>> set is init as empty. That's the reason for this message:</FONT>
<BR><FONT SIZE=2>> (17752) DEBUG:run_proxy: location set found empty -> going on</FONT>
<BR><FONT SIZE=2>> failure/default branch</FONT>
<BR><FONT SIZE=2>> and as your proxy tag has no failure/default branch, the interpreter</FONT>
<BR><FONT SIZE=2>> will return to SER script (default behavior).</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> About timeout, yes indeed, it is not supported for the moment. This</FONT>
<BR><FONT SIZE=2>> parameter is totally ignored.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Regards,</FONT>
<BR><FONT SIZE=2>> Bogdan</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Toni Barata wrote:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> > Hi Bogdan,</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > We are experiencing some problems with the proxy no answer (timeout</FONT>
<BR><FONT SIZE=2>> > don't work?) and proxy on busy in our scripts.</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > script for proxy if busy on client "cliente1":</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL 1.0//EN' 'cpl.dtd'></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <cpl></FONT>
<BR><FONT SIZE=2>> > <incoming></FONT>
<BR><FONT SIZE=2>> > <proxy ordering="sequential"></FONT>
<BR><FONT SIZE=2>> > <busy></FONT>
<BR><FONT SIZE=2>> > <location url="sip:1234@10.112.128.5" /></FONT>
<BR><FONT SIZE=2>> > </busy></FONT>
<BR><FONT SIZE=2>> > </proxy></FONT>
<BR><FONT SIZE=2>> > </incoming></FONT>
<BR><FONT SIZE=2>> > </cpl></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > debug for proxy if busy:</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:cpl-c:get_dest_user: tring to get user from new_uri</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:cpl-c:get_dest_user: tring to get user from R_uri</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:get_user_script: fetching script for user</FONT>
<BR><FONT SIZE=2>> > <cliente1@10.112.128.5></FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:get_user_script: we got the script len=58</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG: t_check: msg id=12 global id=12 T start=0x422bb6a8</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG: t_check: T alredy found!</FONT>
<BR><FONT SIZE=2>> > 6(17752) parse_headers: flags=-1</FONT>
<BR><FONT SIZE=2>> > 6(17752) check_via_address(10.112.128.55, 10.112.128.55, 0)</FONT>
<BR><FONT SIZE=2>> > 6(17752) WARNING:vqm_resize: resize(0) called</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG: reply sent out. buf=0x80c9c98: SIP/2.0 1...,</FONT>
<BR><FONT SIZE=2>> > shmem=0x422bd0f8: SIP/2.0 1</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG: t_reply: finished</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:cpl_run_script: processing CPL node</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:cpl_run_script: processing proxy node</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:run_proxy: location set found empty -> going on</FONT>
<BR><FONT SIZE=2>> > failure/default branch !!!!!!!!!!!!!!!!?????????????</FONT>
<BR><FONT SIZE=2>> > 6(17752) DEBUG:cpl_c:cpl_run_script: running default action</FONT>
<BR><FONT SIZE=2>> > 6(17752) rewrite(): Rewriting Request-URI with</FONT>
<BR><FONT SIZE=2>> > 'sip:10.112.128.220:14045'</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > script for proxy if no answer on client "cliente1":</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL 1.0//EN' 'cpl.dtd'></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > <cpl></FONT>
<BR><FONT SIZE=2>> > <incoming></FONT>
<BR><FONT SIZE=2>> > <proxy ordering="sequential" timeout="5"></FONT>
<BR><FONT SIZE=2>> > <noanswer></FONT>
<BR><FONT SIZE=2>> > <location url="sip:666@10.112.128.5" /></FONT>
<BR><FONT SIZE=2>> > </noanswer></FONT>
<BR><FONT SIZE=2>> > </proxy></FONT>
<BR><FONT SIZE=2>> > </incoming></FONT>
<BR><FONT SIZE=2>> > </cpl></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > debug for proxy if no answer:</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:cpl-c:get_dest_user: tring to get user from new_uri</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:cpl-c:get_dest_user: tring to get user from R_uri</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:get_user_script: fetching script for user</FONT>
<BR><FONT SIZE=2>> > <cliente1@10.112.128.5></FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:get_user_script: we got the script len=62</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG: t_check: msg id=680 global id=680 T start=0x42355b88</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG: t_check: T alredy found!</FONT>
<BR><FONT SIZE=2>> > 5(17963) parse_headers: flags=-1</FONT>
<BR><FONT SIZE=2>> > 5(17963) check_via_address(10.112.128.55, 10.112.128.55, 0)</FONT>
<BR><FONT SIZE=2>> > 5(17963) WARNING:vqm_resize: resize(0) called</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG: reply sent out. buf=0x80cac78: SIP/2.0 1...,</FONT>
<BR><FONT SIZE=2>> > shmem=0x422e8a58: SIP/2.0 1</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG: t_reply: finished</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:cpl_run_script: processing CPL node</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:cpl_run_script: processing proxy node</FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:run_proxy: location set found empty -> going on</FONT>
<BR><FONT SIZE=2>> > failure/default branch (the same problem!!!!!!!!!!!!!!!)</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > 5(17963) DEBUG:cpl_c:cpl_run_script: running default action</FONT>
<BR><FONT SIZE=2>> > 5(17963) rewrite(): Rewriting Request-URI with</FONT>
<BR><FONT SIZE=2>> > 'sip:10.112.128.220:14045'</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Can you help us on these issues?</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Best regards,</FONT>
<BR><FONT SIZE=2>> > Toni</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>></FONT>
</P>
</BODY>
</HTML>