Hi, I am able to successfully connect to a PSTN gw from Kamailio. Now, he says I need to prepend a value (eg.123123) before the number(ENUM) and then only terminate the calls. Where do I add this? Can somebody help me?
thanks Ganesh Kumar
Hi, for this kind of operations you really have a lot of possible choices with kamailio. Some examples:
1) operating directly on $ru, since it is a r/w pseudovariable ( http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#ru_-_request_ur... ) 2) use textops module's susbst_uri function http://www.kamailio.org/docs/modules/devel/modules/textops.html#textops.f.su... 3) use avp_pushto from avpops module ( http://www.kamailio.org/docs/modules/devel/modules/avpops.html#avpops.f.avp_... ) 4) use dialplan module
Hope this helps.
Regards,
Federico
On Mon, Oct 5, 2015 at 12:06 PM, Infinicalls Infinicalls < infinicalls@gmail.com> wrote:
Hi, I am able to successfully connect to a PSTN gw from Kamailio. Now, he says I need to prepend a value (eg.123123) before the number(ENUM) and then only terminate the calls. Where do I add this? Can somebody help me?
thanks Ganesh Kumar
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I would also add prefix() function available in the core.
http://www.kamailio.org/wiki/cookbooks/4.2.x/core#prefix
Regards, Cezary
On 05/10/2015 14:43, Federico Cabiddu wrote:
Hi, for this kind of operations you really have a lot of possible choices with kamailio. Some examples:
- operating directly on $ru, since it is a r/w pseudovariable
(http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#ru_-_request_ur...) 2) use textops module's susbst_uri function http://www.kamailio.org/docs/modules/devel/modules/textops.html#textops.f.su... 3) use avp_pushto from avpops module (http://www.kamailio.org/docs/modules/devel/modules/avpops.html#avpops.f.avp_...) 4) use dialplan module
Hope this helps.
Regards,
Federico
On Mon, Oct 5, 2015 at 12:06 PM, Infinicalls Infinicalls <infinicalls@gmail.com mailto:infinicalls@gmail.com> wrote:
Hi, I am able to successfully connect to a PSTN gw from Kamailio. Now, he says I need to prepend a value (eg.123123) before the number(ENUM) and then only terminate the calls. Where do I add this? Can somebody help me? thanks Ganesh Kumar _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi, Thanks. I added directly to $ru and it worked.
Thanks again.
regards Ganesh Kumar
On 10/5/15, Infinicalls Infinicalls infinicalls@gmail.com wrote:
Hi, I am able to successfully connect to a PSTN gw from Kamailio. Now, he says I need to prepend a value (eg.123123) before the number(ENUM) and then only terminate the calls. Where do I add this? Can somebody help me?
thanks Ganesh Kumar