Hi,
I am trying to use t_uac_dlg to send a new message from a module. It does not send the message, and I get the following in my log: Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: mk_proxy: could not resolve hostname: "cs.stir.ac.uk"Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: t_relay: bad host name in URI sip:srm@cs.stir.ac.ukMar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: uri2sock: Can't create a dst proxyMar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: t_uac_dlg: no socket found The code in my module is as follows, where all the ps_ things are str* variables, with values as indicated by comments: tmb.t_uac_dlg( // send request ps_req_type, // INVITE NULL, PROTO_UDP , ps_req_uri, // sip:srm@cs.stir.ac.uk ps_req_to, // srm@cs.stir.ac.uk ps_req_from, // mrs@cs.stir.ac.uk NULL, NULL, NULL, NULL, ps_req_headers, // NULL ps_req_body, // NULL NULL, // transaction_cb callback param // optional NULL // void* callback pointer // optional );
Any hints? I might have misunderstood what is expected from a request uri. If so, an example would be very welcome. thanks
Stephan
On Mar 21, 2003 at 14:58, srm@cs.stir.ac.uk srm@cs.stir.ac.uk wrote:
Hi,
I am trying to use t_uac_dlg to send a new message from a module. It does not send the message, and I get the following in my log: Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: mk_proxy: could not resolve hostname: "cs.stir.ac.uk"Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: t_relay: bad host name in URI <sip:srm@cs.stir.ac.uk
The hostname (cs.stir.ac.uk) cannot be resolved from your local machine. t_uac_dlg tries to send your message to the host part of the uri, but cannot resolve it. Check your resolver config (ussually /etc/resolv.conf).
Andrei