Hi List, Is it possible to add diffrent CPC(calling party catagory) for diffrent type of the number in the INVITE before sending out to an upstream SIP server?
INVITE ----> Kamailio(add CPC) -------> SIP_Proxy_2
Thanks,
Asim
El Viernes, 29 de Enero de 2010, Asim Riaz escribió:
Hi List, Is it possible to add diffrent CPC(calling party catagory)
What is "calling party catagory"? How is such option set (which header)?
It is an ISUP parameter. It is useful for SS7 interconnection. More info here: http://tools.ietf.org/html/draft-mahy-iptel-cpc-06
Inserting/removing/modifying the cpc parameter is possible via uri/textops transformations. http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x#uri_transfor... http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x#parameters_l... Hope this helps.
Regards, Ovidiu Sas
On Sat, Jan 30, 2010 at 4:18 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Viernes, 29 de Enero de 2010, Asim Riaz escribió:
Hi List, Is it possible to add diffrent CPC(calling party catagory)
What is "calling party catagory"? How is such option set (which header)?
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hi Iñaki, Its an ISUP parameter, it appear in sip INVITE like below;
From:unavailable<sip:unavailable;cpc=operator@10.129.39.59
;tag=95ffcd055e0f78f7d5d397020e89288d78a1
or
From:unavailable<sip:unavailable@10.129.39.59sip%3Aunavailable@10.129.39.59 ;cpc=operator>;tag=95ffcd055e0f78f7d5d397020e89288d78a1
Thanks,
Asim
On Sat, Jan 30, 2010 at 9:18 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Viernes, 29 de Enero de 2010, Asim Riaz escribió:
Hi List, Is it possible to add diffrent CPC(calling party catagory)
What is "calling party catagory"? How is such option set (which header)?
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
El Domingo, 31 de Enero de 2010, Asim Riaz escribió:
Hi Iñaki, Its an ISUP parameter, it appear in sip INVITE like below;
From:unavailable<sip:unavailable;cpc=operator@10.129.39.59
;tag=95ffcd055e0f78f7d5d397020e89288d78a1
or
From:unavailable<sip:unavailable@10.129.39.59<sip%3Aunavailable@10.129.39.5 9> ;cpc=operator>;tag=95ffcd055e0f78f7d5d397020e89288d78a1
Well, both approachs are not equivalent as the first one means a SIP userinfo paramenter while the second one means a SIP uri parameter.
However you can achieve it by using the uac module to replace the From header value, but it could be not really funny. Would be valid to add such parameter in the P-Asserted-Identity header?
Yes its valid to add such parameter into Remote-part-ID and P-Asserted-Identity heade, do I need to use Textops ? I also need to add diffrent cpc for diffrent calling party types e.g mobile, landline etc.
Thanks, Asim
On Sun, Jan 31, 2010 at 1:41 AM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Domingo, 31 de Enero de 2010, Asim Riaz escribió:
Hi Iñaki, Its an ISUP parameter, it appear in sip INVITE like below;
From:unavailable<sip:unavailable;cpc=operator@10.129.39.59
;tag=95ffcd055e0f78f7d5d397020e89288d78a1
or
From:unavailable<sip:unavailable@10.129.39.59sip%3Aunavailable@10.129.39.59
<sip%3Aunavailable@10.129.39.5 sip%253Aunavailable@10.129.39.5
9> ;cpc=operator>;tag=95ffcd055e0f78f7d5d397020e89288d78a1
Well, both approachs are not equivalent as the first one means a SIP userinfo paramenter while the second one means a SIP uri parameter.
However you can achieve it by using the uac module to replace the From header value, but it could be not really funny. Would be valid to add such parameter in the P-Asserted-Identity header?
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
El Lunes, 1 de Febrero de 2010, Asim Riaz escribió:
Yes its valid to add such parameter into Remote-part-ID and P-Asserted-Identity heade, do I need to use Textops ? I also need to add diffrent cpc for diffrent calling party types e.g mobile, landline etc.
Remote-Party-ID can be added using some functions in textops module (I think, or perhaps they are in other module). However it's easier just to create P- Asserted-Identity (which is the real standard rather than Remote-Party-Id) from scrath:
append_hf("P-Asserted-Identity: sip:$AVP(SOME_AVP)@MY_DOMAIN\r\n");
You can add there the required parameters.
you mean adding the required parameters in AVP? is it possible to to emplain how can i add diffrent cpc into p-asserted-id based on calling party number? e.g if the calling party is mobile then cpc is mobile
Thanks,
Asim
On Mon, Feb 1, 2010 at 10:44 AM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Lunes, 1 de Febrero de 2010, Asim Riaz escribió:
Yes its valid to add such parameter into Remote-part-ID and P-Asserted-Identity heade, do I need to use Textops ? I also need to add diffrent cpc for diffrent calling party types e.g mobile, landline etc.
Remote-Party-ID can be added using some functions in textops module (I think, or perhaps they are in other module). However it's easier just to create P- Asserted-Identity (which is the real standard rather than Remote-Party-Id) from scrath:
append_hf("P-Asserted-Identity: sip:$AVP(SOME_AVP)@MY_DOMAIN\r\n");
You can add there the required parameters.
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
El Lunes, 1 de Febrero de 2010, Asim Riaz escribió:
you mean adding the required parameters in AVP? is it possible to to emplain how can i add diffrent cpc into p-asserted-id based on calling party number? e.g if the calling party is mobile then cpc is mobile
I don't think it's so hard to undersand. But please, you need to read the documentation first to know how to use AVP's, variables, how to do a simple "if" or "switch" to check if the calling number is a mobile or fixed or whatever, and so on.
IMHO you are asking for a given solution. Read the documentation, try it by yourself, and ask again when you have specific doubts ;)
thats ok, I know how to use atleast simple if and switch :) I was just trying to understand what can be done. anyway thanks for the feedback.
Thanks, Asim
On Mon, Feb 1, 2010 at 12:09 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Lunes, 1 de Febrero de 2010, Asim Riaz escribió:
you mean adding the required parameters in AVP? is it possible to to emplain how can i add diffrent cpc into p-asserted-id based on calling party number? e.g if the calling party is mobile then cpc is mobile
I don't think it's so hard to undersand. But please, you need to read the documentation first to know how to use AVP's, variables, how to do a simple "if" or "switch" to check if the calling number is a mobile or fixed or whatever, and so on.
IMHO you are asking for a given solution. Read the documentation, try it by yourself, and ask again when you have specific doubts ;)
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users