Hi,
Any hints how to make the send() function accepting a PV? I'm a bit lost where to start since it's a core function. Or is there an alternative to send() to forward a request without any modification (especially without adding a Via) based on a PV?
Thanks for any guides, Andreas
Hi,
On 11/06/2012 11:56 PM, Andreas Granig wrote:
Any hints how to make the send() function accepting a PV? I'm a bit lost where to start since it's a core function. Or is there an alternative to send() to forward a request without any modification (especially without adding a Via) based on a PV?
Following up on this to just get the most basic scenario working, if I do with a v3.3 exactly what is stated in http://www.kamailio.org/wiki/cookbooks/3.3.x/core#send :
send("10.10.10.10:5070");
... then I get this error:
<core> [proxy.c:278]: ERROR: mk_proxy: could not resolve hostname: "10.10.10.10:5070"
It looks like it works if I leave out the port part, but that isn't really any help either because I need a non-standard port. Hints what I'm doing wrong here?
Andreas
On 07.11.2012 12:26, Andreas Granig wrote:
send("10.10.10.10:5070");
... then I get this error:
<core> [proxy.c:278]: ERROR: mk_proxy: could not resolve hostname: "10.10.10.10:5070"
It looks like it works if I leave out the port part, but that isn't really any help either because I need a non-standard port. Hints what I'm doing wrong here?
I can confirm this broken behavior (tested with 3.3).
Klaus
Hello,
Can you try without double quotes?
Cheers, Daniel
Daniel-Constantin Mierla http://www.asipto.com
On 7 Nov 2012, at 13:17, Klaus Darilion klaus.mailinglists@pernau.at wrote:
On 07.11.2012 12:26, Andreas Granig wrote:
send("10.10.10.10:5070");
... then I get this error:
<core> [proxy.c:278]: ERROR: mk_proxy: could not resolve hostname: "10.10.10.10:5070"
It looks like it works if I leave out the port part, but that isn't really any help either because I need a non-standard port. Hints what I'm doing wrong here?
I can confirm this broken behavior (tested with 3.3).
Klaus
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Hello,
The runtime code for it is in action.c. To accept pv as parameter, you should change in cfg.y as well.
But the best is to move it in corex module, which was created for this purpose - relocate core functions to get pv parameters.
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com
On 6 Nov 2012, at 23:56, Andreas Granig agranig@sipwise.com wrote:
Hi,
Any hints how to make the send() function accepting a PV? I'm a bit lost where to start since it's a core function. Or is there an alternative to send() to forward a request without any modification (especially without adding a Via) based on a PV?
Thanks for any guides, Andreas
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Hi Daniel,
On 11/10/2012 08:29 AM, Daniel-Constantin Mierla wrote:
The runtime code for it is in action.c. To accept pv as parameter, you should change in cfg.y as well.
But the best is to move it in corex module, which was created for this purpose - relocate core functions to get pv parameters.
Ah, that sounds like a plan, thanks!
Andreas