[OpenSER-Users] CPL doesn't allow "redirect" to url="http://webpage"

Iñaki Baz Castillo ibc at aliax.net
Sun Dec 16 17:59:35 CET 2007


Hi, I want to set a redirect to a web page in CPL but I get error:

<cpl>
	<incoming>
		<lookup source="registration">
			<success>
				<proxy />
			</success>
			<notfound>
				<location url="http://google.es">
					<redirect />
				</location>
			</notfound>
		</lookup>
	</incoming>
</cpl>


~# openserctl fifo LOAD_CPL sip:user at domain /etc/openser/cpl/user at domain.xml
500 Bad CPL file
Log:: Error: Encoding of the CPL script failed


It works if I set (as usual):
  <location url="sip:user2 at domain">

Why doesn't CPL module allow redirection to non SIP target?


-- 
Iñaki Baz Castillo




More information about the sr-users mailing list