[Kamailio-Users] aliases

asd xbt.dev at gmail.com
Tue Jul 14 15:41:18 CEST 2009


2009/7/14, Nick Warr <nick at mobilia.it>:
>
>>
>> Ok, I have another question left.
>> I haven't tried it yet, I'm just asking if it's possible or not.
>>
>> I'll install Asterisk and I'll add 7000 to it, so Asterisk will
>> register as 7000 in Kamailio.
>> it's possible to set outbound callerid in asterisk to 7002, even if I
>> call out from 7000?
>> So basically 7002 is an alias for 7000, and I would like to display 7002.
>>
>> Kind regards,
>> Dmitri
>>
>
> It would be better to control your RPID and P-Asserted headers in
> Kamailio, IMHO.
>
>

So basically like this?

                if ($fu =~ "^sip:7002+@") {
                    xlog("L_INFO", "Changing callerid\n");
                    uac_replace_from("$avp(s:display)","sip:7002 at domain.com");
                    ...
                    ...
                }
Sorry if it's sounds like a dumb question, I'm a beginner in Kamailio.

Kind regards,
Dmitri




More information about the sr-users mailing list