Announcement

Collapse
No announcement yet.

Transfer issues and more

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Transfer issues and more

    This may be an issue with my setup of FreePBX, but in any case...

    I have a script setup to transfer all calls to my cell phone... the key areas of this script are:

    (all in sip_incoming.vb)

    PHP Code:
      If newCall.RingCount >= answerRings Then
        
    'newCall.LoadScript( "sip_unknown.vb" ) <-- commented out.
        newCall.Answer()
      End If 
    PHP Code:
    Sub CallConnectedByVal newCall as SipCall )
        
    Dim phonenumber As String "<my 10-digit cell>"
        
    newCall.SetTimeout(20)
        
    newCall.Transfer(phonenumber)
    End Sub 
    PHP Code:
    Sub TransferFailed(ByVal newCall As SipCall)
        
    newCall.StopPlayingTone()
        
    newCall.SpeakTextWait("I'm afraid there is no answer. Please leave a message after the tone")
        
    newCall.ExecScript("sip_message.vb")
    End Sub 
    PHP Code:
    Sub Timeout(ByVal newCall As SipCall)
        
    newCall.StopPlayingTone()
        
    newCall.SpeakTextWait("I'm afraid there is no answer. Please leave a message after the tone")
        
    newCall.ExecScript("sip_message.vb")
    End Sub 
    HS Log:
    PHP Code:
    9/9/2009 12:30:39 AM  SIP#home - CALL#1 SCRIPT:sip_incoming.vb:IncomingCall(<wife's cell number>)
    9/9/2009 12:30:39 AM  SIP#home - CALL#1 SCRIPT:sip_incoming.vb:Ringing(1)
    9/9/2009 12:30:39 AM  Info Speak ():<wifeis calling from a cell phone
    9
    /9/2009 12:30:39 AM  SIP#home - CALL#1 SCRIPT:sip_incoming.vb:CallConnected(<wife's cell number>)
    9/9/2009 12:30:39 AM  SIP#home - CALL#1 Transfering (Conference) to <my 10-digit cell> on line home...
    9/9/2009 12:30:59 AM  SIP#home - CALL#1 SCRIPT:sip_incoming.vb:Timeout(1)
    9/9/2009 12:30:59 AM  SIP#home - CALL#1 SCRIPT:sip_message.vb:Init(<wife's cell number>)
    9/9/2009 12:31:48 AM  SIP#home - CALL#0 SCRIPT:sip_message.vb:CallHungup(<wife's cell number>) 
    There are a few problems with this...

    First and foremost, though it says it is transferring the call to me, my other phone doesn't ring at all. I changed the transfer method in settings from SIP REFER to conference, but that didn't help.

    Second, when the timeout occurs, the phone just keeps ringing -- I don't hear anything saying 'I'm afraid...' -- it just rings indefinitely.

    Third, sometimes after I hang up, I can't call again, because my PBX says that the extension I'm dialing is on the phone, which I believe means that HS hasn't hung up yet.

    The first issue is by far the most important - I'd actually prefer to have the VM left on my cell anyhow, so there's really no need for the others, I just bring it up because it might point to an underlying cause that I'm not aware of.

    Any help would be appreciated!


    [Misc Details that may or may not be relevant]
    I am using a SipGate number
    I am using PBX in a Flash

    My 'SIP account' config:
    PHP Code:
    Namehome
    Incoming Script sip_incoming
    .vb

    Username
    : <PBX Extension>
    Domain Realm: <Local IP of PBX box>
    Proxy Server: <Local IP of PBX box>
    Local Contact ID(not really sure if this is correct -- and 1 worked as wellhaven't tried any others, but according to the HS log I have 6)

    Authentication Enabled
    User Name: <PBX Extension>
    Password: <PBX Extension Secret> 

    #2
    You need to download and install wireshark on the HomeSeer server to capture port 5060.

    With the result capture file, I can try to debug what's happening.

    Regards,

    stipus
    --
    stipus

    Comment


      #3
      Originally posted by stipus View Post
      You need to download and install wireshark on the HomeSeer server to capture port 5060.

      With the result capture file, I can try to debug what's happening.

      Regards,

      stipus

      PM'd.

      Comment


        #4
        From the capture file, it looks you are trying to transfer to the same phone number as the originating call. The Asterisk server replies that the call is already established.
        --
        stipus

        Comment

        Working...
        X