Asterisk CallerID plugin continues (1 Viewer)

charli181

Retired Team Member
  • Premium Supporter
  • August 3, 2007
    800
    111
    Sydney
    Home Country
    Australia Australia
    I have checked out the logs you provided and can see the connection succesful and then 2 minutes later it fails and trys to reconnect. If you can turn MediaPortal logging level to Debug (via MediaPortal Configurtion), we maybe able to see the exception which is causing this failure.

    In the other thread (https://forum.team-mediaportal.com/...erisk2mediaportal-plugin-94172/#post720729) I have now posted a trouble shooting guide on the API connection itself and how to complete testing from a command prompt.

    May I suggest also to disable the mailbox check and just trying an inbound call to your sip to see if you get notification. My asterisk and PIAF is a later version than yours and it maybe the mailbox check command that is causing the issue. The troubleshooting guide may show this discrepancy. If you can, compelte the troubleshooting guide and post your results from it so I can see what is going on...

    :D
     

    sircolin

    Portal Member
    March 17, 2011
    14
    1
    48
    Reading UK
    Home Country
    United Kingdom United Kingdom
    Thanks for the extra document !

    If you can turn MediaPortal logging level to Debug (via MediaPortal Configurtion), we maybe able to see the exception which is causing this failure.
    That log was already !!

    May I suggest also to disable the mailbox check and just trying an inbound call to your sip to see if you get notification
    Yes i had already tried that no change, and also changed my voicemail string to 1001@device

    However .... look here

    Asterisk Call Manager/1.0
    Action: Login
    Username: MediaPortal
    Secret: 0mediaportal010
    ActionID: 1

    Response: Success
    ActionID: 1
    Message: Authentication accepted

    Event: Registry
    Privilege: system,all
    ChannelDriver: SIP
    Domain: sip.ukddi.com
    Status: Registered

    are we asking for the wrong thing here ?

    does this help any ??

    Col
     

    charli181

    Retired Team Member
  • Premium Supporter
  • August 3, 2007
    800
    111
    Sydney
    Home Country
    Australia Australia
    Asterisk Call Manager/1.0
    Action: Login
    Username: MediaPortal
    Secret: 0mediaportal010
    ActionID: 1

    Response: Success
    ActionID: 1
    Message: Authentication accepted

    Event: Registry
    Privilege: system,all
    ChannelDriver: SIP
    Domain: sip.ukddi.com
    Status: Registered

    From this I can see you log on correctly - great.
    The Event: Rigistry looks like you sip trunk has successfully registered to sip.ukddi.com

    What would be good is to try the mailbox check command after logging in and see in you get a response back.
    Action: MailboxCount
    Mailbox: 1001@default

    reponse back should eb something like this

    Message: Mailbox Message Count
    Mailbox: 6001@default
    UrgMessages: 0
    NewMessages: 0
    OldMessages: 0
    If you get nothing back or an error, then it looks like this command is wrong and I will have to change it for backwards compatability. Your version of the API is an earlier version as well i have noticed. there is another command for mailbox checking
    Action: MailboxStatus
    Mailbox: 1001@default

    see if that one works...
    let me know how it goes

     

    sircolin

    Portal Member
    March 17, 2011
    14
    1
    48
    Reading UK
    Home Country
    United Kingdom United Kingdom
    Ok this is all new to me :) - you will notice i try both @default & @device

    Mailbox: 1001@device

    Response: Error
    Message: Missing action in request

    Event: Registry
    Privilege: system,all
    ChannelDriver: SIP
    Domain: sipgate.co.uk
    Status: Registered

    Event: Registry
    Privilege: system,all
    ChannelDriver: SIP
    Domain: sip.ukddi.com
    Status: Registered

    Mailbox: 1001@default

    Response: Error
    Message: Missing action in request

    Looks like im getting a a free lesson here - asterisk manager 101 :)

    Col
     

    charli181

    Retired Team Member
  • Premium Supporter
  • August 3, 2007
    800
    111
    Sydney
    Home Country
    Australia Australia
    you are missing the Action Line in the request. It should be

    Action: MailboxCount
    Mailbox: 1001@default

    or try

    Action: MailboxStatus
    Mailbox: 1001@default
     

    sircolin

    Portal Member
    March 17, 2011
    14
    1
    48
    Reading UK
    Home Country
    United Kingdom United Kingdom
    Sorry to be a pain in the as* just to confirm these commands i need to run

    telnet xxx
    Action: Login
    Username: MediaPortal
    Secret: 0mediaportal010
    ActionID: 1
    Action: MailboxCount
    Mailbox: 1001@default

    and then

    telnet xxx
    Action: Login
    Username: MediaPortal
    Secret: 0mediaportal010
    ActionID: 1
    Action: MailboxStatus
    Mailbox: 1001@default

    in the above order is that right ?

    ok got it

    Asterisk Call Manager/1.0
    Action: Login
    Username: MediaPortal
    Secret: 0mediaportal010
    ActionID: 1

    Response: Success
    ActionID: 1
    Message: Authentication accepted

    Action: MailboxStatus
    Mailbox: 1001@device

    Response: Success
    Message: Mailbox Status
    Mailbox: 1001@device
    Waiting: 1

    the double enter was confusing me
     

    charli181

    Retired Team Member
  • Premium Supporter
  • August 3, 2007
    800
    111
    Sydney
    Home Country
    Australia Australia
    got the logs for the debug version I sent you. I can see where the error lies now. I will see what I can do to fix it and post back.... Seems to be an error when I am trying to retrieve the amount of emails for urgent and new voicemails...

    thanks for your perseverence hear -much appreciated.

    Sean
     

    sircolin

    Portal Member
    March 17, 2011
    14
    1
    48
    Reading UK
    Home Country
    United Kingdom United Kingdom
    Not at all Sean it's me who should be in your debt ;-)

    If there's anything you need from me to help you with this just let me know !

    I'm gonna hit the sack now it's almost 3am here i'l check back tomorrow

    thanks again Sean for your time.

    Kind Regards

    Col
     

    Users who are viewing this thread

    Top Bottom