Hello there,
I need to strip away the first digit "0" from the username of the Header >From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
Thx
Michele
Hello,
On 10/19/07 11:05, malmic@alice.it wrote:
Hello there,
I need to strip away the first digit "0" from the username of the Header From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
you can use the substr transformation to get read of leading 0 in an avp/var, and then use the result in uac_replace_from. http://openser.org/dokuwiki/doku.php/transformations:1.2.x#s.substr_offset_l...
Cheers, Daniel
Thx
Michele
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi,
can I ask a question in regard to this thread. Is it valid according to standards to alter the From-header in a SIP INVITE?
Br, /Tobias
Daniel-Constantin Mierla said the following on 2007-10-19 14:41:
Hello,
On 10/19/07 11:05, malmic@alice.it wrote:
Hello there,
I need to strip away the first digit "0" from the username of the Header From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
you can use the substr transformation to get read of leading 0 in an avp/var, and then use the result in uac_replace_from. http://openser.org/dokuwiki/doku.php/transformations:1.2.x#s.substr_offset_l...
Cheers, Daniel
Thx
Michele
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
On 10/19/07 17:04, Tobias Lindgren wrote:
Hi,
can I ask a question in regard to this thread. Is it valid according to standards to alter the From-header in a SIP INVITE?
not recommended as some UAs use it to identify the dialog, but some time you are forced by the business you offer, In that case you should take care to restore it in the messages going opposite direction.
Daniel
Br, /Tobias
Daniel-Constantin Mierla said the following on 2007-10-19 14:41:
Hello,
On 10/19/07 11:05, malmic@alice.it wrote:
Hello there,
I need to strip away the first digit "0" from the username of the Header From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
you can use the substr transformation to get read of leading 0 in an avp/var, and then use the result in uac_replace_from. http://openser.org/dokuwiki/doku.php/transformations:1.2.x#s.substr_offset_l...
Cheers, Daniel
Thx
Michele
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
El Friday 19 October 2007 16:04:47 Tobias Lindgren escribió:
Hi,
can I ask a question in regard to this thread. Is it valid according to standards to alter the From-header in a SIP INVITE?
Is it not a typical way to define callerid num in calls to PSTN gateway? AFAIK is better using RPID header but...
SIP version 1 (2543) used From header to identify the dialog so it's not recommended to change the From header to be backwards compatible (is there any RFC 2543 SIP endpoint around??...). SIP Version 2 (RFC 3261) uses tags to identify dialogs so you should be able to change the FRom header except the tag.
Recently there was an RFC 4916 that specifies how to identify the connected identity and how to make a change in the From but I think this is far beyond what you are trying to achieve.
There are additional headers (Remote_PartyID, and related) that can be used to specify an identify of the calling party..
nice theory,
Sam.
2007/10/19, Iñaki Baz Castillo ibc@in.ilimit.es:
El Friday 19 October 2007 16:04:47 Tobias Lindgren escribió:
Hi,
can I ask a question in regard to this thread. Is it valid according to standards to alter the From-header in a SIP INVITE?
Is it not a typical way to define callerid num in calls to PSTN gateway? AFAIK is better using RPID header but...
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
El Friday 19 October 2007 18:30:09 samuel escribió:
SIP version 1 (2543) used From header to identify the dialog so it's not recommended to change the From header to be backwards compatible (is there any RFC 2543 SIP endpoint around??...). SIP Version 2 (RFC 3261) uses tags to identify dialogs so you should be able to change the FRom header except the tag.
Recently there was an RFC 4916 that specifies how to identify the connected identity and how to make a change in the From but I think this is far beyond what you are trying to achieve.
There are additional headers (Remote_PartyID, and related) that can be used to specify an identify of the calling party..
Thanks for the explanation.
El Friday 19 October 2007 18:30:09 samuel escribió:
Recently there was an RFC 4916 that specifies how to identify the connected identity
Sure is RFC 4916 ? It doesn't exist :( http://www.faqs.org/rfcs/rfc4916.html
http://tools.ietf.org/html/rfc4916
Iñaki Baz Castillo wrote:
El Friday 19 October 2007 18:30:09 samuel escribió:
Recently there was an RFC 4916 that specifies how to identify the connected identity
Sure is RFC 4916 ? It doesn't exist :( http://www.faqs.org/rfcs/rfc4916.html
El Friday 19 October 2007 19:09:19 Norman Brandinger escribió:
Thanks.
I appreciate all the discussion about this thread but there is someone that can help me how to strip the first digit "0" from the username from header (I have learnt that is safe to make it). Thx again Michele
________________________________
Da: users-bounces@openser.org per conto di malmic@alice.it Inviato: ven 19/10/2007 10.05 A: users@openser.org Oggetto: [OpenSER-Users] Manipulation of the From header username
Hello there,
I need to strip away the first digit "0" from the username of the Header >From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
Thx
Michele
Hi Michele,
you should be able to do this with the "Textops"-module in OpenSER: http://www.openser.org/docs/modules/1.2.x/textops.html
Take a closer look at the "subst"-function, there's an example with the "To"-header.
Br, /Tobias
malmic@alice.it said the following on 2007-10-22 11:16:
I appreciate all the discussion about this thread but there is someone that can help me how to strip the first digit "0" from the username from header (I have learnt that is safe to make it). Thx again Michele
*Da:* users-bounces@openser.org per conto di malmic@alice.it *Inviato:* ven 19/10/2007 10.05 *A:* users@openser.org *Oggetto:* [OpenSER-Users] Manipulation of the >From header username
Hello there,
I need to strip away the first digit "0" from the username of the Header From on an incoming INVITE message.I had already used the uac_replace_from when adding digits to the from field on outgoing INVITE but stripping a digit seems harder for me. Can somebody help me?
Thx
Michele
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users