[Serusers] A question about t_uac_dlg
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>Mar 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 -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of the University of Stirling shall be understood as neither given nor endorsed by it.
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
participants (2)
-
Andrei Pelinescu-Onciul -
srm@cs.stir.ac.uk