Hi,
Can someone confirm there is not a way to do this with the standard commands before I write our own module.
a) Incoming call has no remote-party-id, but does have a numeric from address. Create a remote-party-id based on the from address.
Then...
b) Either we have a remote-party-id passed with the initial call, or the one we constructed in (a). Now prepend a digit string pulled from the database to the user part of the remote-party-id uri.
i.e. If no rpid, convert From: 12345@x.y to Remote-Party-ID: sip:12345@x.y then given Remote-Party-ID: sip:12345@x.y change to Remote-Party-ID: sip:100012345 (the 1000 pulled from the database)
Linus
Hello,
SER provides rpid_prefix, rpid_suffix, and append_rpid_hf with the auth module for handling remote-party-id. Here we use our own module that adds the rpid header to the INVITE's since we have some specific needs that cannot be acheived using the above said functions. Those values are pulled from the database.
Regards,
--- Linus Surguy linus@magrathea-telecom.co.uk wrote:
Hi,
Can someone confirm there is not a way to do this with the standard commands before I write our own module.
a) Incoming call has no remote-party-id, but does have a numeric from address. Create a remote-party-id based on the from address.
Then...
b) Either we have a remote-party-id passed with the initial call, or the one we constructed in (a). Now prepend a digit string pulled from the database to the user part of the remote-party-id uri.
i.e. If no rpid, convert From: 12345@x.y to Remote-Party-ID: sip:12345@x.y then given Remote-Party-ID: sip:12345@x.y change to Remote-Party-ID: sip:100012345 (the 1000 pulled from the database)
Linus
===== Girish Gopinath gr_sh2003@yahoo.com
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
BTW, very nice email domain -- magrathea-telecom ;-), I am sure you will like the Call-ID and CSeq we put into aliases table, see
http://lists.iptel.org/pipermail/serdev/2004-July/002465.html
for more details.
On 30-07 16:37, Linus Surguy wrote:
Hi,
Can someone confirm there is not a way to do this with the standard commands before I write our own module.
a) Incoming call has no remote-party-id, but does have a numeric from address. Create a remote-party-id based on the from address.
Stock ser makes it possible to create the remote-party-id based on the digest credentials username. When you perform digest authentication, it will retrieve the rpid value either from the database (subscriber table) or from radius server and create a new remote-party-id header field.
Then...
b) Either we have a remote-party-id passed with the initial call, or the one we constructed in (a). Now prepend a digit string pulled from the database to the user part of the remote-party-id uri.
If you prepend the same string to all numbers then you can configure it in the configuration file of ser using rpid_prefix and rpid_suffix parameters.
If you need it on per-subscriber basis then you can include the prefix directly in rpid column in subscriber table.
Jan.