Hi all,
Is there any way to modify the "From" portion of the Invite request?
My objective is to expand my organizations 3 digit numbering scheme to a national numbering scheme by prepending digits before releasing them to the PSTN gateway.
Sincerely, Peter
Peter Rex Drescher writes:
Is there any way to modify the "From" portion of the Invite request?
My objective is to expand my organizations 3 digit numbering scheme to a national numbering scheme by prepending digits before releasing them to the PSTN gateway.
rather than modifying from, you can add remote-party-id header to the invite request.
-- juha
Thank you very much - the question is now: How do I do that?
I would really like to use the SER to do this as my scenario also includes some Post-Paid billing so being able to lookup their Remote-Party ID in e.g. the mySQL database would be really nice and then attach it to the Invite request.
The case is that the UserAgent should not be able to modify this as it is used as the basis for billing. So when the user registers using his username and password, I get to assign a CLID to him which is then used for bílling purposes.
/Peter
----- Original Message ----- From: "Juha Heinanen" jh@tutpro.com To: "Peter Rex Drescher" peter@drescher.dk Cc: serusers@lists.iptel.org Sent: Tuesday, May 04, 2004 2:26 PM Subject: [Serusers] Modifying the "From" part of the Invite
Peter Rex Drescher writes:
Is there any way to modify the "From" portion of the Invite request?
My objective is to expand my organizations 3 digit numbering scheme to a national numbering scheme by prepending digits before releasing them to the PSTN gateway.
rather than modifying from, you can add remote-party-id header to the invite request.
-- juha
Peter Rex Drescher writes:
I would really like to use the SER to do this as my scenario also includes some Post-Paid billing so being able to lookup their Remote-Party ID in e.g. the mySQL database would be really nice and then attach it to the Invite request.
rpid is returned from radius when user is authenticated. something similar is possible with mysql authentication, but i have no personal experience with it. auth module also includes append_rpid_hf script function. see README file or read the code.
-- juha
At 02:15 PM 5/4/2004, Peter Rex Drescher wrote:
Is there any way to modify the "From" portion of the Invite request?
No. We don't recommend to try to change content of From header field by proxy servers. Doing so can harm interoperability and generaly introduce confusion.
If you are for whatever reasons interested in mangling SIP protocol elements, you will be safer off with an element called B2BUA (back-to-back user agent).
You may also use Remote-Party-ID to append user's secondary identity (typicaly PSTN number) to INVITE requests.
-jiri
-- Jiri Kuthan http://iptel.org/~jiri/