[Serusers] from & remote-party-id manipulation

Linus Surguy linus at magrathea-telecom.co.uk
Fri Jul 30 17:37:15 CEST 2004


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 at x.y to Remote-Party-ID: <sip:12345 at x.y>
then given Remote-Party-ID: <sip:12345 at x.y> change to Remote-Party-ID:
<sip:100012345> (the 1000 pulled from the database)

Linus




More information about the sr-users mailing list