<DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>Jiri,</P>
<P>If you want failure_route to be evoked only for some calls, then<BR>set t_on_failure_route for such. You already do so in your script,<BR>don't you?<BR>**************** Yes, t_on_failure is only set for calls to internal network addresses. VM works great for users that aren't logged in.</P>
<P><BR>There is other problem though -- the failure_route logic for VM should be different<BR>from that in route block -- you can't create transaction state two times<BR>(first time with t_relay, second time with t_newtran). SER will certainly<BR>complain with some error message in your logs.<BR>*********&nbsp; THIS is the big questioin. SER certainly does complain with error messages. <STRONG>What should the failure route logic for VM be?</STRONG> I can't find any examples of this in the documentation. I've tried calling the vm command without the t_newtran() function in front of it but that results in another error&nbsp;in the logs.&nbsp;(see below)</P><sip:6508466600@mydomain.com><FONT size=2>
<P>Sep 25 19:46:49 jiffypop /usr/local/sbin/ser[23840]: submit_query(): You have an error in your SQL syntax. C</P>
<P>heck the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1</P>
<P>Sep 25 19:46:49 jiffypop /usr/local/sbin/ser[23840]: submit_query(): Error while submitting query</P>
<P>Sep 25 19:46:49 jiffypop /usr/local/sbin/ser[23840]: ERROR: vm: db_query() failed.</P>
<P>Sep 25 19:46:49 jiffypop /usr/local/sbin/ser[23840]: ERROR: vm: vm_get_user_info failed</P>
<P>Sep 25 19:46:49 jiffypop /usr/local/sbin/ser[23840]: route[3]:vm:voicemail failed</P>
<P>So what's the work around? Is there a way to get around this? What should the failure_route logic be?</P>
<P>Thanks,</P>
<P>G.</P></FONT></BLOCKQUOTE></DIV></sip:6508466600@mydomain.com><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search