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)
HS Log:
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:
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 CallConnected( ByVal 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
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 ():<wife> is 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>)
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:
Name: home
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: 2 (not really sure if this is correct -- 0 and 1 worked as well, haven't tried any others, but according to the HS log I have 6)
Authentication Enabled
User Name: <PBX Extension>
Password: <PBX Extension Secret>
Comment