[Kamailio-Users] how to change source number

BERGANZ François francois at acropolistelecom.net
Tue Sep 23 12:22:07 CEST 2008


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 at rosdev.ro] 
Envoyé : mardi 23 septembre 2008 12:01
À : BERGANZ François
Cc : users at 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





More information about the Users mailing list