Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#296 Mediaproxy dialog problem after opensips restart

1.6.x
open
Dan Pascu
modules (454)
5
2010-07-13
2010-07-08
cando
No

When using engage_media_proxy() and opensips server is restarted, mediaproxy does not tear down hangup calls that where started before opensips was restarted.
When the RTP times out the dispatcher shows "error: failed to end dialog: 404 Requested Dialog not found".

I'm thinking this may be a problem that dispatcher does not save to the db the callback hooks that other modules have subscribed to for a call.

opensips version info:
version: opensips 1.6.2-tls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: unknown
@(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
main.c compiled on 18:01:30 Jun 30 2010 with gcc 4.4.1

Discussion

  • what db_mode are you using for the dialog module ?

    Regards,
    Bogdan

     
  • cando
    cando
    2010-07-13

    Oops. Was meaning to say "...problem that dialog (not dispatcher) does not save to the db the callback hooks..."

     
  • cando
    cando
    2010-07-13

    bd_mode is 3 - write on shutdown
    db is postgresql
    I added a xlog entry with $DLG_status in it for BYE/CANCEL messages and it showed that there was a dialog for the call after restarting opensips.

     
    • assigned_to: nobody --> dan_pascu
     
  • that is correct (the db_mode) - I will let Dan to check this further.....

    Regards,
    Bogdan