Jump to content


< Back to Forum


 

Nat/firewall: Blocked In Sjphone


  • Please log in to reply

#1 ThaoHuynh 12 April 2017 - 01:33 PM

Hi VoiceGuide Team,

 

I have installed SJPhone in another machine. I used to dialing IP address to test VoiceGuide. It worked. And now, i aslo want to use SIP address to test call.

 

I do the same like this tutorial https://www.callcent.../device/sjphone. But it displays NAT/Firewall: Blocked. I have turned off firewall. How can i fix this issue?

 

Thank  you for you support.

 

Thao Huynh

 

  • sjphone.png


#2 SupportTeam 12 April 2017 - 02:00 PM

Looks like you have registered this phone with CallCentric.

 

Perhaps best approach would be to have VoiceGuide register itself with CallCentric as well, and then you can just ring the registered telephone number through CallCentric.

 

Please see: http://www.voiceguid...ip_register.htm



#3 ThaoHuynh 12 April 2017 - 02:47 PM

so, i just need to register any telephone number i want in Config.xml (eg: 177719819819), and i can use SJphone to dial the registered telephone number.

Am i understand correctly?



#4 SupportTeam 12 April 2017 - 02:55 PM

Yes. if the phone is registered with own phone number and VoiceGuide registers itself to answer calls for it's phone number then then you should be able to dial VoiceGuide by dialing its phone number.

 

If you are not based in US then it may be better for you to set up all these registrations using some SIP service provider in your country, instead of CallCentric.



#5 ThaoHuynh 12 April 2017 - 05:21 PM

My Config.xml

 

<VoIP_Registrations>
 
<VoIP_Registration>
<Display>CallCentric (www.callcentric.com) </Display>
<Protocol>SIP</Protocol>
<RegServer>callcentric.com</RegServer>
<RegClient>177719819819@callcentric.com</RegClient>
<LocalAlias></LocalAlias>
<Expires></Expires>
</VoIP_Registration>
 
</VoIP_Registrations>
 
<VoIP_Authentications>
 
<VoIP_Authentication>
<Display>CallCentric</Display>
<Realm></Realm>
<Identity></Identity>
<AuthUsername>177719819819</AuthUsername>
<AuthPassword>[REMOVED]</AuthPassword>
</VoIP_Authentication>
 
</VoIP_Authentications>
---------------------------------------
 I use PC to PC (SIP) to dial SIP address (177719819819@callcentric.com), but it display "Forbidden", and wireshark can't capture SIP packets.
So what service i can use to dial SIP address?

Edited by SupportTeam, 12 April 2017 - 05:32 PM.
removed password


#6 SupportTeam 12 April 2017 - 05:34 PM

Please post WireShark traces from both systems. VoiceGuide system and the SJPhone system.

 

Start WireShark before starting VoiceGuide service and SJPhone in order to capture the registration process.



#7 ThaoHuynh 12 April 2017 - 05:43 PM

Here is WireShark trace in SJPhone system.



#8 SupportTeam 12 April 2017 - 06:11 PM

WireShark trace shows that SJSip has not registered itself. CallCentric is replying with "403 : Incorrect Authentication".

 

Please check the account (phone number) that you are trying to register and the password that is meant to be used on that account.

  • ws_sjsip.png


#9 ThaoHuynh 12 April 2017 - 06:46 PM

It look like i understand it wrong, so please give me step by step guidelines to register and dial SIP address use SJphone.

Thank you for your help.



#10 SupportTeam 12 April 2017 - 06:50 PM

CallCentric provides instructions on setting up SJPhone here: https://www.callcent.../device/sjphone

 

For testing of VoiceGuide it's simplest to just dial IP address of system directly, as you have been doing before.



#11 ThaoHuynh 12 April 2017 - 07:41 PM

I follow guidelines https://www.callcent.../device/sjphone.

And SJphone display "NAT/firewall: Blocked". Wireshark can't capture any SIP packets in VoiceGuide system.

Here is WireShark trace in SJPhone system.

I call from 192.168.76.37 to 192.169.76.21, why wireshark traces display destination is 204.11.192.169?



#12 SupportTeam 12 April 2017 - 07:52 PM

Trace does not capture the initial registration, but the outgoing call seems to go out OK.

 

Note that if you are going to make a call through your SIP provider (CallCentric) the you need to dial a telephone number. Not an IP address...

 

You need to dial the telephone number registered by the VoiceGuide system.

 

17778305883 is the number registered by your SJPhone, right?

 

What is the number tat is being registered by the VoiceGuide system?

 

Have you started WireShark before the VoiceGuide service was started? If you have configured VoiceGuide to register itself with some SIP service provider (eg: CallCentric) then you should see SIP registration packets in the WireShark trace as VoiceGuide tries to register itself.

 

 

204.11.192.169 must be IP address of CallCentric server. If you have registered SJPhone with a SIP service provider (like CallCentric) then call setup is done through that SIP service provider.

 

 

How did you dial the IP address directly before from SJPhone? did you use the "sip:" prefix before the IP address? or some other way?



#13 ThaoHuynh 12 April 2017 - 08:30 PM

17778305883 is the number registered by your SJPhone, right?

Yes.

 

What is the number tat is being registered by the VoiceGuide system?

At that time, I have deleted all my register telephone number in VoiceGuide system in Config.xml.

And now, i have registered again like this post http://voiceguide.co...c=12382&p=42249, and dial 177719819819 in SJphone, but it still not working.

I attached wireshark trace in SJPhone system when i register telephone number in Voiceguide. 

 

How did you dial the IP address directly before from SJPhone? did you use the "sip:" prefix before the IP address? or some other way?

I just dial 192.168.76.21 (same way i use PC to PC (SIP) service)



#14 SupportTeam 13 April 2017 - 11:33 AM

Is 177719819819 the number which you are trying to get VoiceGuide to register?

 

Please .ZIP up and post the ktTel and vgEngine traces from VoiceGuide system that capture VoiceGuide service start This will let us see if VoiceGuide is registering that number on not.

 

Please also start WireShark on VoiceGuide system before the VoiceGuide service start. WireShark should then capture the SIP REGISTER messages. You can type:

 

sip

 

in the WireShark Filter text box to have WireShark display only the SIP messages (and you can then select to save only the displayed packets).

 

 

 

Regarding SJPhone no longer making direct IP calls : perhaps registering with SIP Provider has changed how this version of SJPhone treats the entered destination number?

 

Have you tried dialing this:

 

sip:192.168.76.21

 

or:

 

100@192.168.76.21

 

or:

 

sip:100@192.168.76.21



#15 ThaoHuynh 13 April 2017 - 12:29 PM

Is 177719819819 the number which you are trying to get VoiceGuide to register?

Yes

 

I tried dialing: 

 

192.168.76.21

 

and:

 

sip:192.168.76.21

 

and:

 

sip:100@192.168.76.21

 

and:

 

sip:177719819819@callcentric.com

 

But it still not working exactly. I can't hear sound file in VoiceGuide script.

 

And why SJPhone display NAT/firewall: Blocked?

 

I attachted ktTel and vgEngine traces file from VoiceGuide system, and wireshark traces from SJPhone system.

Please check it.

  • Attached File  log.zip   282.89KB   38 downloads


#16 SupportTeam 13 April 2017 - 01:35 PM

Please also start WireShark on VoiceGuide system before the VoiceGuide service start.

WireShark should then capture the SIP REGISTER messages.

 

Please post WireShark trace from VoiceGuide system along with the ktTel and vgEngine traces from VoiceGuide.

 

VoiceGuide currently cannot register itself with the SIP provider and the WireShark traces should let us see what is happening.

226 032428.956  6080     ev    GCEV_SERVICERESP (board device)
227 032428.969  6080           GCEV_SERVICERESP ResultInfo: gcValue=1283(0x503|GCRV_PROTOCOL|event caused by protocol error) gcMsg=[Event caused by protocol error] ccLibId=8 ccLibName=[GC_H3R_LIB] ccValue=[0x66||] ccMsg=[IPEC_REG_FAIL_invalidAlias] additionalinfo=[]


#17 ThaoHuynh 13 April 2017 - 01:57 PM

Wireshark can't capture any SIP packets in VoiceGuide system when i use callcentric service, although i start wireshark before the VoiceGuide service start.

 

And wireshark can capture normal SIP packets when i dial 192.168.76.21 using PC to PC (SIP) service in SJPhone.



#18 SupportTeam 13 April 2017 - 02:00 PM

Also, in order to get SJPhone to dial direct IP addresses again please try opening SJPhone's Properties windows and on the "Profiles" tab select "SIP Direct". The try dialing the IP address directly again. WireShark will show if the calls are being routed to IP address, or if the continue to be sent to your SIP Provider.



#19 SupportTeam 13 April 2017 - 02:09 PM

Wireshark can't capture any SIP packets in VoiceGuide system when i use callcentric service,

 

A Register attempt is being made by VoiceGuide, so some SIP packets should be visible as being sent out...

 

Recommend getting back to the setup you had before, where you were dialing the IP address of the VoiceGuide system directly and then use WireShark on VoiceGuide system and confirm that WireShark can see the SIP packets of the incoming call. If those packets are seen then WireShark should also see the SIP REGISTER packets that would be sent out at VoiceGuide service start time.



#20 ThaoHuynh 13 April 2017 - 04:47 PM

I should get back to the setup in VoiceGuide system or SJphone system?

 

SJPhone system has 2 services default:

 

PC to PC (SIP)

PC to PC (H.323)

 

and I have created a Callcentric service follow tutorial https://www.callcent.../device/sjphone.

 

When i use default config.xml (not register SIP address) or registered SIP address in config.xml, i can dial IP address and Wireshark can capture SIP packets of the incoming call if i use PC to PC (SIP) service in SJPhone system

 

It fault when i use Callcentric service in SJPhone system to dial number.

 

 

 

  • sjphone.png


#21 SupportTeam 13 April 2017 - 05:03 PM

When you dial IP address directly and VoiceGuide answers can you now see SIP packets in the WireShark that is running on VoiceGuide system?

 

Please do the following:

 

1. Stop VoiceGuide service

2. Restart Dialogic HMP service. (use Dialogic's DCM)

3. Start WireShark on the VoiceGuide system and start capturing packets.

4. Start VoiceGuide

5. Place call into VoiceGuide and have it answer.

6. Hangup the call

7. Stop WireShark capture and save the .pcapng file.

8. .ZIP up the .pcapng file and post it here.

9. .ZIP up VoiceGuide vgEngine and ktTel traces and post them here as well.



#22 ThaoHuynh 13 April 2017 - 05:54 PM

When you dial IP address directly and VoiceGuide answers can you now see SIP packets in the WireShark that is running on VoiceGuide system?

Yes, i can see SIP packets

  • Attached File  log.zip   644.41KB   38 downloads


#23 SupportTeam 13 April 2017 - 06:17 PM

In VoiceGuide's Config.xml file please set the <LocalAlias> entry to:

<LocalAlias>177719819819@192.168.76.21</LocalAlias>

and then do the following:

1. Stop VoiceGuide service
2. Stop Dialogic HMP service. (use Dialogic's DCM)
3. Wait 10 seconds
4. Start Dialogic HMP service. (use Dialogic's DCM)
5. Start WireShark on the VoiceGuide system and start capturing packets
6. Start VoiceGuide service
7. Place call into VoiceGuide and have it answer
8. Hangup the call
9. Stop WireShark capture and save the .pcapng file.
10. .ZIP up the .pcapng file and post it here
11. .ZIP up VoiceGuide vgEngine and ktTel traces and post them here as well



#24 ThaoHuynh 13 April 2017 - 06:32 PM

Here is my log files, wireshark traces and config.xml. Please check it.

  • Attached File  log.zip   686.5KB   43 downloads


#25 SupportTeam 13 April 2017 - 06:56 PM

We can now see the REGISTER messages being sent out to CallCentric, but CallCentric is replying with a "403 Incorrect Authentication" to the registration request. Most likely the password used is incorrect. Please check the password specified in VoiceGuide's Config.xml and try again.

 

Once the 177719819819 number is registering you will be able to dial into the system by dialing 177719819819  from any phone worldwide. And of course you will still be able to place calls into VoiceGuide by sending them to your VoiceGuide system's IP address directly.

  • ws_register403.png


#26 ThaoHuynh 13 April 2017 - 08:10 PM

I have modified my Config.xml. Please check my wireshark traces. Is it right?



#27 SupportTeam 13 April 2017 - 09:01 PM

Trace shows that system at IP 192.168.76.21 has successfully registered itself with CallCentric to use number 17778305883.

 

You should now be able to dial 17778305883 from any normal phone and CallCentric should route that call to system at IP 192.168.76.21

 

So looks like you have used same number that was previously used by SJPhone at IP 192.168.76.37

You should ensure that only one system is registering any one number at any one time.



#28 ThaoHuynh 13 April 2017 - 09:11 PM

When i dial IP address, i can hear my script in voiceguide system, but when i dial 17778305883, i can't hear any sound.

Here is my wireshark traces.



#29 SupportTeam 13 April 2017 - 09:20 PM

Trace shows call is being answered. What script is running on system? Can you post the vgEngine and ktTel traces?



#30 ThaoHuynh 13 April 2017 - 09:24 PM

I run GetPostDelete.vgs script.

  • Attached File  log.zip   126.64KB   43 downloads


#31 SupportTeam 13 April 2017 - 09:39 PM

That script only plays one short sound file at beginning. That may not be heard by caller if the SIP provider has some delay in bridging the voice path.

 

For connectivity testing its best to use a script that plays a longer sound file in a loop.



#32 ThaoHuynh 13 April 2017 - 09:49 PM

i have tried another script. But i still can't hear any sound from voiceguide system.



#33 SupportTeam 13 April 2017 - 10:15 PM

192.168.76.21 never gets an ACK from the SIP service after it answers the call with OK.

 

Fastest way to resolve this would be to try using another SIP service provider. Recommend selecting one that is based in the country where you are located.



#34 ThaoHuynh 14 April 2017 - 01:26 AM

I would like to try free service before i decided to buy a SIP service. Do you have any other solution?



#35 ThaoHuynh 14 April 2017 - 01:24 PM

I attached wireshark traces in VoiceGuide system and SJPhone system. What are 204.11.192.163 and 204.11.192.171?



#36 SupportTeam 14 April 2017 - 01:30 PM

204.11.192.163 and 204.11.192.171 are your SIP Service provider's (CallCentric's) servers.



#37 ThaoHuynh 14 April 2017 - 01:34 PM

why i see RTP packets in wireshark traces but i can't hear any sound?



#38 SupportTeam 14 April 2017 - 01:37 PM

192.168.76.21 never gets an "ACK" from the SIP service after it answers the call with "OK".

 

Dialogic HMP does not transmit sound until the "ACK" is received. You can see HMP re-sending "OK" over and over, awaiting an ACK, but ACK does not arrive...



#39 SupportTeam 14 April 2017 - 01:44 PM

In VoiceGuide's Config.xml file please try setting set the <LocalAlias> entry to:

<LocalAlias>177719819819@X.X.X.X</LocalAlias>

 

Where X.X.X.X is replaced your external IP address. Google "what is my IP" and you'll see your external IP address.



#40 ThaoHuynh 14 April 2017 - 02:03 PM

I have tried my external IP address 118.69.34.52. I also stopped and restarted VoiceGuide, Dialogic HMP services. But it still not working.



#41 ThaoHuynh 14 April 2017 - 06:03 PM

Can i dial my SIP address 17778305883@192.168.76.21 from another network?



#42 SupportTeam 14 April 2017 - 07:49 PM

Can i dial my SIP address 17778305883@192.168.76.21 from another network?

 

No, you would not be able to do that. 192.168.X.X are private networks.

 

Best approach to receive external calls is to register with a local SIP Provider.

 

You might also want to speak to your network administrator.



#43 ThaoHuynh 21 April 2017 - 02:02 PM

It resolved. I just used LinPhone instead of SJPhone and follow guidelines  LinPhone Desktop Configuration