Hi,
I'd like to know if there is a way to retrieve the information from the carrierroute module in AVPs. Example: - a prefix has matched, and I'd like to get the field "description" associated with this route and add it in the SIP header - a prefix has matched, and I'd like to get the field "rewrite_host" associated with this route and use it with xlog
Thanks,
rod.
On Fri, December 19, 2008 2:58 pm, rod wrote:
I'd like to know if there is a way to retrieve the information from the carrierroute module in AVPs. Example: - a prefix has matched, and I'd like to get the field "description" associated with this route and add it in the SIP header - a prefix has matched, and I'd like to get the field "rewrite_host" associated with this route and use it with xlog
Hello Rod,
currently there is only the dest_avp parameter available, to get the rewritten host value. Is this the information you referred in the first case?
For the description value there is actually no such a facility. One option would be to change the code that writes the AVP at the moment to also include the information you need. Another, more general approach would be to make this configurable..
Cheers,
Henning
Henning,
For the rewrite host I was looking for, I got it using $rd pseudovariable.
Thanks for your support, Regards, rod
Henning Westerholt wrote:
On Fri, December 19, 2008 2:58 pm, rod wrote:
I'd like to know if there is a way to retrieve the information from the carrierroute module in AVPs. Example: - a prefix has matched, and I'd like to get the field "description" associated with this route and add it in the SIP header - a prefix has matched, and I'd like to get the field "rewrite_host" associated with this route and use it with xlog
Hello Rod,
currently there is only the dest_avp parameter available, to get the rewritten host value. Is this the information you referred in the first case?
For the description value there is actually no such a facility. One option would be to change the code that writes the AVP at the moment to also include the information you need. Another, more general approach would be to make this configurable..
Cheers,
Henning
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Hello Henning,
Can we change the name of the avp and retrieve the content of the "descritpion" field in it?
Regards, Ovidiu Sas
On Tue, Dec 23, 2008 at 9:50 AM, Henning Westerholt henning.westerholt@1und1.de wrote:
On Fri, December 19, 2008 2:58 pm, rod wrote:
I'd like to know if there is a way to retrieve the information from the carrierroute module in AVPs. Example: - a prefix has matched, and I'd like to get the field "description" associated with this route and add it in the SIP header - a prefix has matched, and I'd like to get the field "rewrite_host" associated with this route and use it with xlog
Hello Rod,
currently there is only the dest_avp parameter available, to get the rewritten host value. Is this the information you referred in the first case?
For the description value there is actually no such a facility. One option would be to change the code that writes the AVP at the moment to also include the information you need. Another, more general approach would be to make this configurable..
Cheers,
Henning
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
On Mon, December 29, 2008 4:47 pm, Ovidiu Sas wrote:
Hello Henning,
Can we change the name of the avp and retrieve the content of the "descritpion" field in it?
Hi Ovidiu,
if the rewrite_host can be also reliable read from some PVs, then this should be possible. Let me do some tests first, then i can change the code in question.
Cheers,
Henning
Hello Henning,
I can conform that the rewrite_host can be reliable read from $rd. Thank you for looking into this.
Regards, Ovidiu Sas
On Tue, Dec 30, 2008 at 8:08 AM, Henning Westerholt henning.westerholt@1und1.de wrote:
On Mon, December 29, 2008 4:47 pm, Ovidiu Sas wrote:
Hello Henning,
Can we change the name of the avp and retrieve the content of the "descritpion" field in it?
Hi Ovidiu,
if the rewrite_host can be also reliable read from some PVs, then this should be possible. Let me do some tests first, then i can change the code in question.
Cheers,
Henning