Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name
I think that I have to use another function to change the source number, but which function?
Thank you
Cordialement
BERGANZ François
http://www.acropolistelecom.net http://www.acropolistelecom.net/
Hi,
BERGANZ François wrote:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name…
I think that I have to use another function to change the source number, but which function?
try: $avp(s:236) = "sip:33" + $fU + "@" + $fd; uac_replace_from("", "$avp(s:236)");
Regards, Ramona
In fact, it change my $fn and I just want to change the $fu
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : Elena-Ramona Modroiu [mailto:ramona@rosdev.ro] Envoyé : mardi 23 septembre 2008 12:01 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to change source number
Hi,
BERGANZ François wrote:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name
I think that I have to use another function to change the source number, but which function?
try: $avp(s:236) = "sip:33" + $fU + "@" + $fd; uac_replace_from("", "$avp(s:236)");
Regards, Ramona
BERGANZ François wrote:
In fact, it change my $fn and I just want to change the $fu
then use uac_replace_from("$fn", "$avp(s:236)");
Regards, Ramona
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : Elena-Ramona Modroiu [mailto:ramona@rosdev.ro] Envoyé : mardi 23 septembre 2008 12:01 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to change source number
Hi,
BERGANZ François wrote:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name…
I think that I have to use another function to change the source number, but which function?
try: $avp(s:236) = "sip:33" + $fU + "@" + $fd; uac_replace_from("", "$avp(s:236)");
Regards, Ramona
I tryed but
$fn= "berganz francois" $avp(s:246)= sip:33179977998@myserver:5067
My phone screen the number and not my name!
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : Elena-Ramona Modroiu [mailto:ramona@rosdev.ro] Envoyé : mardi 23 septembre 2008 12:24 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to change source number
BERGANZ François wrote:
In fact, it change my $fn and I just want to change the $fu
then use uac_replace_from("$fn", "$avp(s:236)");
Regards, Ramona
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : Elena-Ramona Modroiu [mailto:ramona@rosdev.ro] Envoyé : mardi 23 septembre 2008 12:01 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to change source number
Hi,
BERGANZ François wrote:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name
I think that I have to use another function to change the source number, but which function?
try: $avp(s:236) = "sip:33" + $fU + "@" + $fd; uac_replace_from("", "$avp(s:236)");
Regards, Ramona
Hi!
Sorry, I do not understand what you want to achieve.
Can you give us an example what you want to achieve - e.g. the original From header and then the desired from header.
klaus
BERGANZ François schrieb:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name…
I think that I have to use another function to change the source number, but which function?
Thank you
Cordialement
BERGANZ François
http://www.acropolistelecom.net http://www.acropolistelecom.net/
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
My users can use a from-number for local calls... but I need to translate theses from-numbers in e.164 (for France 33XXXX...) But when I insert in the from sip:33XXX@myserver, my phone have at screen sip:33XXX@myserver and I need to see my name on the screen as before!
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : Klaus Darilion [mailto:klaus.mailinglists@pernau.at] Envoyé : mardi 23 septembre 2008 12:04 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to change source number
Hi!
Sorry, I do not understand what you want to achieve.
Can you give us an example what you want to achieve - e.g. the original From header and then the desired from header.
klaus
BERGANZ François schrieb:
Hello, I need to change the source number, to have an international format (e164) but when I use :
$avp(s:245)=$fu;
avp_subst("$avp(s:245)/$avp(s:246)/d", "/sip:/sip:33/");
uac_replace_from("", "$avp(s:246)");
in fact, my phone have in the screen sip:33..., before, it have my name
I think that I have to use another function to change the source number, but which function?
Thank you
Cordialement
BERGANZ François
http://www.acropolistelecom.net http://www.acropolistelecom.net/
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users