| In regards to your log:
| You seem to be processing this reply (600 Policy Server Msg) in the
| route block of your config script. This is not possible because the
| route block can process requests only, it is never executed
| for replies.
| That is the reason why you get the error message from
| parse_sip_msg_uri,
| this function parses Request URI which is not there because it is a
| reply. parse_sip_msg_uri gets called either by your module directly or
| by some other function that follows in the script.
Managed the Parsing now. I see your point with respect to the response, but
how would I handle the following case then:
1) Proxy received Request from UA and should respond to the UA swallowing
the original message (that is my module generates a response message) -- as
I tried above.
2) Proxy receives response from terminating side UA/Proxy and should respond
to them, that is generate a new request without the response bubbling up to
the UA.
3) Proxy creates a number of responses/requests to be send.
I do not need stateful routing.
I was assuming to find a functions like send_request(msg) and
send_response(msg) or send_msg(msg) that can be used by modules to send msg
to the proxy and leave the routing to the proxy according to ser.cfg
instructions, but ignoring instructions in the route block *before* the call
to the module -- which probably should allow me to do all of the above.
thanks,
Stephan
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.