Hi Doug,
indeed, t_check_status() is a stateful function. If you want to check
the reply code from the default reply route (no stateful processing
required), you may use "status" see:
http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#status
but this is an old, obsolete approach. You may find more useful to use
pseudo-variables $rr (for reply code) and %rs (for reply status).
http://www.openser.org/docs/pseudo-variables-1.1.x.html#pv_rr
http://www.openser.org/docs/pseudo-variables-1.1.x.html#pv_rs
regards,
bogdan
Douglas Garstang wrote:
How can I check for SIP responses, say
'Decline' for example? Do I have to use t_check_status()? I tried but I think it
wants me to create a transaction first, and seeing as though the OpenSER docs are so bad,
I don't know how to do this. Is there a stateless way to check for a SIP response?
In general, it seems as though you can't check SIP response messages. There's the
'if method = <something>' approach, say for example 'if method ==
INVITE', but I have not seen any examples of how you can check for SIP response
messages just as easy in a stateless fashion. Say, something like 'if response ==
DECLINE' or 'if response == 'Not Found'. How can this be done???
Thanks,
Doug.
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users