[SR-Users] Can this be done with xhttp module (3.1 devel)?
Andrei Pelinescu-Onciul
andrei at iptel.org
Sat Oct 2 09:55:43 CEST 2010
On Oct 02, 2010 at 09:39, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
> Hello,
>
> On 10/2/10 1:49 AM, Sergey Okhapkin wrote:
> >I never checked with datagram/RPC, I use MI FIFO for that in production
> >environment.
>
> you can use t_uac_dlg MI command via XMLRPC. That is done via http.
>
> This command is a bit special, doing a wait until the reply comes,
> blocking working process, so use it carefully.
>
> Just load mi_rpc module and then you can run any mi command via xmlrpc.
> http://kamailio.org/docs/modules/devel/modules/mi_rpc.html
The same can be achieved with RPCs. Load the xmlrpc module and use
tm.t_uac_wait.
$ sercmd help tm.t_uac_wait
starts a tm uac and waits for the final reply, using a list of string
parameters: method, ruri, dst_uri send_sock, headers (CRLF separated)
and body (optional)
Examples on how to send xmlrpc commands in perl or python are in
modules/xmlrpc/examples.
Andrei
More information about the sr-users
mailing list