Hi Iqbak,
it seams I got it in a different way. To do what you described here you
need to save for the callee the identity of the caller (if missed call):
avp_db_store("$ruri", "i:1000")
AVP i:1000 must contained the FROM URI. IMPORTANT: when doing save, be
sure the RURI is in canonical format (is not an alias or something else).
When callee dial the "last missed call" number do:
avp_db_load("$from", "i:1000")
and move the AVP i:1000 to RURI
Best regards,
Marian
Iqbal wrote:
I think I am missing the logic here.
If a caller dials, then if as below the caller number gets stored, then
when the calle dials 1471, then how will the correct caller number be
selected from thetable since there is no link between the second calle
and the first caller
i.e
First call A---> B so we store A's number
Second call (1471) B dials 1471, but in the DB all we have is A's
number, hence B will never find anyone ...or am I missing the point.
tks- I now its untested, but I am sure there is a way of doing it..if I
can send any 1471 calls, to do a lookup on a DB, and find all calls
which were written there which were meant for them
Iqbal
On 4/23/2005, "Marian Dumitru" <marian.dumitru(a)voice-sistem.ro> wrote:
>Hi Iqbal,
>
>The AVP will belong to the caller - so save it for him:
> avp_db_store("$from", "i:1000")
>AVP i:1000 must contained the dialled number which failed (use avp_write() )
>
>when the caller dials the re-dial number:
> avp_db_load("$from","i:1000")
>and move the AVP i:1000 to RURI (use avp_pushto() ).
>
>For details about these functions syntax, see the docs:
>
http://www.voice-system.ro/docs/avpops/
>
>Again, that is just an untested idea.
>
>Best regards,
>Marian
>