[Serusers] missed caller call back
Marian Dumitru
marian.dumitru at voice-sistem.ro
Sat Apr 23 12:12:47 CEST 2005
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
Iqbal wrote:
> Okay let me see if I got this right:
>
> Call comes in , turns out no one answers it writes to missed_call table
> (am using serweb), but I also call avp_db_store
>
> eg avp_db_store("$to","i:1000");
>
>
>
> Now i havent used db_store so I am guessing that this would store
> username at domain from the TO header when call is not answered.
>
> If this is the case, then when a user dials 1471 (although I would like
> it "speak" the number, but thats for another day :-)) it would then do
>
> avp_db_load("$from","i:1000")
>
> this should load all that match user at domain in the from header
>
> and then use this to make the call I guess.
>
> Iqbal
>
>
> On 4/21/2005, "Marian Dumitru" <marian.dumitru at voice-sistem.ro> wrote:
>
>
>>Hi Iqbal,
>>
>>Just a basic idea, you could try to store in an AVP the last missed call
>>URI (via avp_db_store from avpops) and when 1472 is dial, just load it
>>(via avp_db_load).
>>Of course there are some race conditions if you allow multiple
>>registrations.....
>>
>>Best regards,
>>Marian
>>
>>
>>Iqbal wrote:
>>
>>>Hi
>>>
>>>Has anyone ever managed to play around with dialing a missed caller.
>>>
>>>EG in the UK 1472 will replay the last caller
>>>
>>>So if in SER we did something like this
>>>
>>>if {prefix 1471} {route 7;}
>>>
>>>route[7] {
>>>lookup in missed_calls, then make a call to it, if [xx] dialed
>>>}
>>>
>>>Iqbal
>>
>>
>>--
>>Voice System
>>http://www.voice-system.ro
>>
>>
>
>
--
Voice System
http://www.voice-system.ro
More information about the sr-users
mailing list