Hello,
I'm back with Kamailio ;) I would like to know if there is a issue to store media informations, like codecs, Ip, ports of a the caller and the callee.. I've been looking to TM module, but it doesn't seem to be possible to manipulate media parameters !?
Thanks in advance,
Karhu
Ho about using the textops module? You could use search_body function for example...
On Tue, Jun 16, 2009 at 10:40 AM, karhuyoannks@gmail.com wrote:
Hello,
I'm back with Kamailio ;) I would like to know if there is a issue to store media informations, like codecs, Ip, ports of a the caller and the callee.. I've been looking to TM module, but it doesn't seem to be possible to manipulate media parameters !?
Thanks in advance,
Karhu
View this message in context: http://www.nabble.com/Media-information-in-stateful-mode-tp24050009p24050009... Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Yeah right, i've been thinking about that, but don't really know if we can work out.. cause this function just searc in the body and doesn't store what i am searching..you know what i mean !?
search_body("m=audio ([0-9]+)"); that will store the port number if m=audio in the body exist, but is there possibility to use this port number outside the search_body function !?
On Tue, Jun 16, 2009 at 11:09 AM, karhuyoannks@gmail.com wrote:
Yeah right, i've been thinking about that, but don't really know if we can work out.. cause this function just searc in the body and doesn't store what i am searching..you know what i mean !?
Oh, I get your pint now.... I don't know if search function returns the matched value although :-/
On Dienstag, 16. Juni 2009, karhu wrote:
I'm back with Kamailio ;) I would like to know if there is a issue to store media informations, like codecs, Ip, ports of a the caller and the callee.. I've been looking to TM module, but it doesn't seem to be possible to manipulate media parameters !?
Hi Karhu,
you already looked into the dialog module? I think its allows access to at least some of the values you want in the script:
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#dlg_attr
If you just want to do it manually you can of course just use search_body and then store this in an $avp, which is then stored along with the SIP transaction.
Cheers,
Henning