[Serdev] exec_msg in reply route

Chris Thompson sip.developer at ceejaysolutions.com
Fri Jun 24 11:50:01 UTC 2005


Please help,

Does anyone know a way to call exec_msg within the reply route block.

I have looked at exporting the functions from within the module using
various settings but it has not worked.

#endif
        "exec",
        cmds,           /* Exported functions */
        params,         /* Exported parameters */
        mod_init,       /* initialization module */
        1/yes/cmds,           /* response function */
        exec_shutdown,  /* destroy function */
        0,              /* oncancel function */
        0               /* per-child init function */
};


I desperately need to be able to pass the reply to an outside application
to set up firewalling and need to extract the return contact IP address.

I do not know C well enough to change the code itself so wanted to use
exec_msg to dump the message to a file then call an external file to parse
the file and extract the data.

This is a quick fix only, I will need to get up to speed with C and see if
I can't create a new module to do this properly but for now I need to get
it working today and this seems the best way.

I appreciate any and all comments.

Regards

Chris




More information about the Serdev mailing list