[Users] 'To' header field and redirect

Michel Zenone zenone at telip.com
Mon Sep 11 12:22:02 CEST 2006


Ok, thanks! I will probably try in this way!
So, I must suppose that 'exec_dset' only adds a new Sip address to the
'To' header field without removing the last one?

Regards,

Michel

On Mon, 2006-09-11 at 13:17 +0300, Daniel-Constantin Mierla wrote:
> Returned uri from your script has bad format. The error comes when the 
> module tries to add the result of your script as R-URI. Check you shell 
> script.
> 
> If you want to append it to reply and use a database to store that value 
> + openser v1.1.0, then you can use avp_db_query(0 to pull the value from 
> database and avp_pushto() function to push the resutl fo the SQL query 
> in R-RUI. See the readme of avpops module for more.
> 
> Cheers,
> Daniel
> 
> 
> On 09/11/06 13:07, Michel Zenone wrote:
> > So here is a part of my openser.cfg:
> >
> > 		...
> > 		exec_dset("NEWURI=$$(/usr/local/openser-1.1.0-tls/uri-folder/uri_def
> > $$SIP_USER $fu);echo $$NEWURI");
> >
> > 		exec_msg("echo $$(date)': new uri def: ' $$SIP_RURI 'from '$fu  $$SIP_DID|cat >>/root/Memos/openrec_uri.txt");	
> >
> > 		sl_send_reply("300", "Redirect");
> > 		return;
> > 		...
> >
> > And this is a part of '/var/log/messages':
> >
> > Sep 11 12:05:32 localhost /usr/local/sbin/openser[1674]: ERROR: parse_uri: bad port in uri (error at char @ in state 8) parsed: <sip:testeur at 192.168.0.102 sip:352000000>(39) /<sip:testeur at 192.168.0.102 sip:352000000 at 192.168.0.102> (53) 
> > Sep 11 12:05:32 localhost /usr/local/sbin/openser[1674]: WARNING: append_var: URI not parsed 
> > Sep 11 12:05:39 localhost /usr/local/sbin/openser[1680]: ERROR: exec_msg: cmd echo 'select pn_md1_l1_ring from pn where pn_phonenumber=352000000' |cat >>/root/Memos/openrec_uri.txt failed. exit_status=-1, errno=32: Broken pipe 
> > Sep 11 12:05:39 localhost /usr/local/sbin/openser[1677]: ERROR: parse_uri: bad port in uri (error at char t in state 8) parsed: <sip:testeur3 at 192.168.0.102 sip:>(31) /<sip:testeur3 at 192.168.0.102 sip:testeur at 192.168.0.120:5080> (57) 
> > Sep 11 12:05:39 localhost /usr/local/sbin/openser[1677]: WARNING: append_var: URI not parsed 
> >
> > Not very good..!
> >
> > Regards,
> >
> > Michel
> >
> >
> >   
> 





More information about the Users mailing list