Patton 4112, Freepbx, Snom 760: outgoing problem --> wrong or non existent number

Hi all,

I’ve got a strange problem and I hope someone can help me.
I’ve configured a Freepbx (Framework 2.11.0.37) to work with Patton Smartnode 4112 and different voip clients: Bria on iPhone, Telephone on Mac, 2 Grandstream voip phones. Everything works fine.
Then I add a Snom 760 and, for some reasons, when I try to make an outbound call with this phone my national provider replies that the number is wrong or non existent.
This happens only with Snom 760.

Here’s the patton configuration:

cli version 3.20
clock local default-offset +00:00
dns-client server 8.8.8.8
dns-client server 192.168.1.1
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.1.250 port 123 version 4
sntp-client server secondary 129.132.2.21 port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

profile napt NAPT_WAN

profile ppp default

profile call-progress-tone IT_Dialtone
  play 1 200 425 -12
  pause 2 200
  play 3 600 425 -12
  pause 4 1000

profile call-progress-tone IT_Alertingtone
  play 1 1000 425 -12
  pause 2 4000

profile call-progress-tone IT_Busytone
  play 1 500 425 -12
  pause 2 500

profile tone-set default
profile tone-set IT
  map call-progress-tone dial-tone IT_Dialtone
  map call-progress-tone ringback-tone IT_Alertingtone
  map call-progress-tone busy-tone IT_Busytone
  map call-progress-tone release-tone IT_Busytone
  map call-progress-tone congestion-tone IT_Busytone

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  codec 3 g729 rx-length 20 tx-length 20

profile pstn default

profile sip default
  no autonomous-transitioning

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface LAN
    ipaddress 192.168.1.249 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.1.1 0

context cs switch
  national-prefix 0
  international-prefix 00

  interface sip IF-SIP-1
    bind context sip-gateway GW_VOICEONE_1
    route call dest-interface IF-FXO-1
    remote 192.168.1.250 5060
    early-disconnect
    privacy

  interface sip IF-SIP-2
    bind context sip-gateway GW_VOICEONE_2
    route call dest-interface IF-FXO-2
    remote 192.168.1.250 5060
    early-disconnect
    privacy

  interface fxo IF-FXO-1
    route call dest-interface IF-SIP-1
    disconnect-signal loop-break
    ring-number on-caller-id
    dial-after timeout 2

  interface fxo IF-FXO-2
    route call dest-interface IF-SIP-2
    disconnect-signal loop-break
    ring-number on-caller-id
    dial-after timeout 2

context cs switch
  no shutdown

authentication-service AUTH_VOICEONE
  username fxo1 password 8vbC3pd2FNcivU5oOrQbug== encrypted
  username fxo2 password 8vbC3pd2FNcivU5oOrQbug== encrypted

location-service LOC_SERV_VOICEONE_1
  domain 1 192.168.1.250

  identity fxo1

    authentication outbound
      authenticate 1 authentication-service AUTH_VOICEONE username fxo1

    registration outbound
      registrar 192.168.1.250 5060
      lifetime 60
      register auto
      retry-timeout on-system-error 10
      retry-timeout on-client-error 10
      retry-timeout on-server-error 10

location-service LOC_SERV_VOICEONE_2
  domain 1 192.168.1.250

  identity fxo2

    authentication outbound
      authenticate 1 authentication-service AUTH_VOICEONE username fxo2

    registration outbound
      registrar 192.168.1.250 5060
      lifetime 60
      register auto
      retry-timeout on-system-error 10
      retry-timeout on-client-error 10
      retry-timeout on-server-error 10

context sip-gateway GW_VOICEONE_1

  interface IF_GW_SIP_VOICEONE_1
    bind interface LAN context router port 5060

context sip-gateway GW_VOICEONE_1
  bind location-service LOC_SERV_VOICEONE_1
  no shutdown

context sip-gateway GW_VOICEONE_2

  interface IF_GW_SIP_VOICEONE_2
    bind interface LAN context router port 5062

context sip-gateway GW_VOICEONE_2
  bind location-service LOC_SERV_VOICEONE_2
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port fxo 0 0
  encapsulation cc-fxo
  bind interface IF-FXO-1 switch
  no shutdown

port fxo 0 1
  encapsulation cc-fxo
  bind interface IF-FXO-2 switch
  no shutdown

and the configuration of the Freepbx/Asterisk Trunk:

trunk name:
fxo1

incoming settings:

username=fxo1
type=peer
secret=MYPASSWORD
port=5060
host=dynamic
qualify=yes
dtmfmode=inband
allow=alaw&g729
context=from-pstn
insecure=port,invite

PATTON LOG

SNOM calls 187

192.168.1.249(cfg)#02:05:33  SIP_TR> [STACK] < 869 Stack: from 192.168.1.250
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK740470ee
Max-Forwards: 70
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:05:34 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 302

v=0
o=root 1871290488 1871290488 IN IP4 192.168.1.250
s=Asterisk PBX 11.5.1
c=IN IP4 192.168.1.250
t=0 0
m=audio 16248 RTP/AVP 0 3 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Network -> GW_VOICEONE_1/192.168.1.249
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: E164-Number -> 031426992
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: URI -> sip:[email protected]
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Type-Of-Number -> Unknown
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Numbering-Plan -> Unknown
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Presentation-Indicator -> Presentation allowed
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Name -> 
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Screening-Indicator -> User provided, not screened
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Supports Overlap-Sending -> true
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Supported Codecs -> Voice: G.711 u-law[20/20], G.711 A-law[20/20], G.729A[20/20]
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Codec Negotiating -> Idle
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Unique Identifier -> [email protected]:5060
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: IP-Address -> 192.168.1.250
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Call-Leg-ID -> 0x00d65190
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: State -> CONNECTED
02:05:33  SIP_TR> [STACK] < 869 Stack: from 192.168.1.250
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK740470ee
Max-Forwards: 70
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:05:34 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 302

v=0
o=root 1871290488 1871290488 IN IP4 192.168.1.250
s=Asterisk PBX 11.5.1
c=IN IP4 192.168.1.250
t=0 0
m=audio 16248 RTP/AVP 0 3 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

02:05:33  CC    > [Call 00d67148] Set call property: Context -> 0x00000020
02:05:33  CC    > [Call 00d67148] Set call property: Information-Transfer-Capability -> 3.1kHz Audio
02:05:33  CC    > [Call 00d67148] Set call property: Hops -> 0x00000010
02:05:33  CC    > [EP IF-SIP-1-012eee50/active] Dial to provider router (IF-SIP-1-precall-service) using call 00d67148
02:05:33  CC    > [EP router-00ab2220/incoming] Accept call 00d67148
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: E164-Number -> 187
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Type-Of-Number -> Unknown
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Numbering-Plan -> Unknown
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Name -> 
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Alert-Info -> 
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: URI -> sip:[email protected]:5060
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Network -> router
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Call-Leg-ID -> 0x00ab2540
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: State -> TRYING
02:05:33  CC    > [EP router-00ab2220] Start route-lookup
02:05:33  CC    > [EP router-00ab2220] Route found; immediately place call
02:05:33  CC    > [EP router-00ab2220] Route to provider 'IF-FXO-1'
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: E164-Number -> 031426992
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: URI -> sip:[email protected]
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Type-Of-Number -> Unknown
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Numbering-Plan -> Unknown
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Presentation-Indicator -> Presentation allowed
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Name -> 
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Screening-Indicator -> User provided, not screened
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Supports Overlap-Sending -> true
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Supported Codecs -> Voice: G.711 u-law[20/20], G.711 A-law[20/20], G.729A[20/20]
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Codec Negotiating -> Idle
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Unique Identifier -> [email protected]:5060
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: IP-Address -> 192.168.1.250
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Network -> router
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Call-Leg-ID -> 0x00d6dd60
02:05:33  CC    > [EP router-00ab2220/outgoing] Set call-leg property: State -> CONNECTED
02:05:33  CC    > [Call 00d6dc68] Set call property: Context -> 0x00000020
02:05:33  CC    > [Call 00d6dc68] Set call property: Information-Transfer-Capability -> 3.1kHz Audio
02:05:33  CC    > [Call 00d6dc68] Set call property: Hops -> 0x0000000f
02:05:33  CC    > [EP router-00ab2220/outgoing] Dial to provider IF-FXO-1 () using call 00d6dc68
02:05:33  CFXO  > [EP IF-FXO-1] State IDLE, event OFFER
02:05:33  CC    > [EP IF-FXO-1/active] Accept call 00d6dc68
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: E164-Number -> 187
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Type-Of-Number -> Unknown
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Numbering-Plan -> Unknown
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Name -> 
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Alert-Info -> 
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: URI -> sip:[email protected]:5060
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Quality-Of-Service -> MOS 4.50, DS0
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Network -> IF-FXO-1
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Call-Leg-ID -> 0x00d69518
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> TRYING
02:05:33  FXO   > [fxo 0 0 0/fxo 0] Dispatching event 'ApplOffHook' in state 'OnHook'
02:05:33  FXO   > [fxo 0 0 0/fxo 0] Action 'Off-Hook'
02:05:33  FXO   > [0 0] Driver: Setting port state to 'OffHook'
02:05:33  FXO   > [fxo 0 0 0/fxo 0] Transition 'OnHook' -> 'OffHook'
02:05:33  CFXO  > [EP IF-FXO-1] Deactivate caller-id detection
02:05:33  CFXO  > [EP IF-FXO-1] Starting timer with 2 secs
02:05:33  CFXO  > [EP IF-FXO-1] Change state to WAIT BEFORE DIALING.
02:05:33  CC    > [EP IF-FXO-1/active] Set call-leg property: Provides Data -> true
02:05:33  CC    > [Call 00d67148] Set call property: Hops -> 0x0000000f
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Provides Data -> true
02:05:33  CC    > [EP router-00ab2220/incoming] Set call-leg property: Quality-Of-Service -> MOS 4.50, DS0
02:05:33  CFXO  > [EP IF-FXO-1] State WAIT BEFORE DIALING, event PEER_CONNECTED
02:05:34  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Provides Data -> true
02:05:34  SIP_TR> [STACK] > 690 Stack: to 192.168.1.250
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK740470ee
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>;tag=3075193058
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060;transport=udp>
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Content-Type: application/sdp
Content-Length: 212

v=0
o=MxSIP 0 24 IN IP4 192.168.1.249
s=SIP Call
c=IN IP4 192.168.1.249
t=0 0
m=audio 4886 RTP/AVP 0 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=sendrecv

02:05:34  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Provides Data -> true
02:05:34  CFXO  > [EP IF-FXO-1] Change datapath direction to Send/Receive.
02:05:35  CFXO  > [EP IF-FXO-1] State WAIT BEFORE DIALING, event TIMEOUT
02:05:35  CFXO  > [EP IF-FXO-1] Change state to DIALING.
02:05:35  CFXO  > [EP IF-FXO-1] Starting timer with 1 secs
02:05:35  CFXO  > [EP IF-FXO-1] Dialing to terminal: 187
02:05:36  CFXO  > [EP IF-FXO-1] State DIALING, event TIMEOUT
02:05:36  CFXO  > [EP IF-FXO-1] Change state to ACTIVE.
02:05:36  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> CONNECTED
02:05:36  CC    > [EP router-00ab2220] Routing succeeded
02:05:36  CC    > [EP router-00ab2220/incoming] Transfer call 00d6dc68 to 00d67148 ==> conference
02:05:36  CC    > [EP router-00ab2220/incoming] Drop call 00d67148
02:05:36  CC    > [EP router-00ab2220/incoming] Set call-leg property: Provides Data -> false
02:05:36  CC    > [EP router-00ab2220/incoming] Set call-leg property: Cause -> Normal call clearing
02:05:36  CC    > [EP router-00ab2220/incoming] Set call-leg property: State -> RELEASED
02:05:36  CC    > [EP router-00ab2220/outgoing] Drop call 00d6dc68
02:05:36  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Provides Data -> false
02:05:36  CC    > [EP router-00ab2220/outgoing] Set call-leg property: Cause -> Normal call clearing
02:05:36  CC    > [EP router-00ab2220/outgoing] Set call-leg property: State -> RELEASED
02:05:36  SIP_TR> [STACK] > 697 Stack: to 192.168.1.250
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK740470ee
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>;tag=3075193058
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060;transport=udp>
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Supported: replaces
Content-Type: application/sdp
Content-Length: 212

v=0
o=MxSIP 0 24 IN IP4 192.168.1.249
s=SIP Call
c=IN IP4 192.168.1.249
t=0 0
m=audio 4886 RTP/AVP 0 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=sendrecv

02:05:36  SIP_TR> [STACK] < 409 Stack: from 192.168.1.250
ACK sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK7a957c7b
Max-Forwards: 70
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>;tag=3075193058
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(11.5.1)
Content-Length: 0


02:05:38  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Quality-Of-Service -> MOS 4.38, RTP, G.711 u-law (20ms), Local: Rx 190 pkts, 30400 bytes, 0 lost, jitter 25 ms, Tx 206 pkts, 32960 bytes, rtt 0 ms, Remote: Rx 0 pkts, 0 bytes, 0 lost, jitter 0 ms, Tx 0 pkts, 0 bytes, rtt 0 ms
02:05:39  SIP_TR> [STACK] < 437 Stack: from 192.168.1.250
BYE sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK3039bf9a
Max-Forwards: 70
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>;tag=3075193058
Call-ID: [email protected]:5060
CSeq: 103 BYE
User-Agent: FPBX-2.11.0(11.5.1)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0


02:05:39  SIP_TR> [STACK] > 375 Stack: to 192.168.1.250
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK3039bf9a
From: <sip:[email protected]>;tag=as0a8c76f4
To: <sip:[email protected]:5060>;tag=3075193058
Call-ID: [email protected]:5060
CSeq: 103 BYE
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Content-Length: 0


02:05:39  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: State -> RELEASED
02:05:39  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Provides Data -> false
02:05:39  CC    > [EP IF-SIP-1-012eee50/active] Drop call 00d67148
02:05:39  CC    > [EP IF-SIP-1-012eee50/active] Set call-leg property: Cause -> Normal call clearing
02:05:39  CFXO  > [EP IF-FXO-1] State ACTIVE, event PEER_RELEASED
02:05:39  FXO   > [fxo 0 0 0/fxo 0] Dispatching event 'ApplOnHook' in state 'OffHook'
02:05:39  FXO   > [fxo 0 0 0/fxo 0] Action 'On-Hook'
02:05:39  FXO   > [0 0] Driver: Setting port state to 'OnHook'
02:05:39  FXO   > [fxo 0 0 0/fxo 0] Transition 'OffHook' -> 'OnHook'
02:05:39  CFXO  > [EP IF-FXO-1] Change state to IDLE.
02:05:39  CC    > [EP IF-FXO-1/active] Drop call 00d67148
02:05:39  CC    > [EP IF-FXO-1/active] Set call-leg property: Provides Data -> false
02:05:39  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> RELEASED
02:05:39  CFXO  > [EP IF-FXO-1] Change datapath direction to Inactive.
02:05:39  CFXO  > [EP IF-FXO-1] Configure caller-id detection 'etsi'
02:05:39  CFXO  > [EP IF-FXO-1] Change datapath direction to Receive Only.
02:05:48  SIP_TR> [STACK] < 544 Stack: from 192.168.1.250
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK4d3e8f11
Max-Forwards: 70
From: "Unknown" <sip:Unkno[email protected]>;tag=as73b7a88e
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:05:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


02:05:48  SIP_TR> [STACK] > 589 Stack: to 192.168.1.250
SIP/2.0 200 OK
Accept: application/sdp, application/dtmf-relay, application/QSIG, application/broadsoft, application/vnd.etsi.aoc+xml
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK4d3e8f11
From: "Unknown" <sip:[email protected]>;tag=as73b7a88e
To: <sip:[email protected]:5060>;tag=1520029296
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Allow: ACK, BYE, CANCEL, INVITE, NOTIFY, OPTIONS, INFO, UPDATE, REFER, REGISTER
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Content-Length: 0


02:05:49  SIP_TR> [STACK] < 544 Stack: from 192.168.1.250
OPTIONS sip:[email protected]:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK56c46a2d
Max-Forwards: 70
From: "Unknown" <sip:[email protected]>;tag=as667749e5
To: <sip:[email protected]:5062>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:05:49 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


02:05:49  SIP_TR> [STACK] > 589 Stack: to 192.168.1.250
SIP/2.0 200 OK
Accept: application/sdp, application/dtmf-relay, application/QSIG, application/broadsoft, application/vnd.etsi.aoc+xml
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK56c46a2d
From: "Unknown" <sip:[email protected]>;tag=as667749e5
To: <sip:[email protected]:5062>;tag=3438853547
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Allow: ACK, BYE, CANCEL, INVITE, NOTIFY, OPTIONS, INFO, UPDATE, REFER, REGISTER
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18

PATTON LOG

GRANDSTREAM calls 187

192.168.1.249(cfg)#02:08:41  SIP_TR> [STACK] < 869 Stack: from 192.168.1.250
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK2f4c6bf5
Max-Forwards: 70
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:08:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 302

v=0
o=root 1036577147 1036577147 IN IP4 192.168.1.250
s=Asterisk PBX 11.5.1
c=IN IP4 192.168.1.250
t=0 0
m=audio 14536 RTP/AVP 0 3 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Network -> GW_VOICEONE_1/192.168.1.249
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: E164-Number -> 031426992
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: URI -> sip:[email protected]
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Type-Of-Number -> Unknown
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Numbering-Plan -> Unknown
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Presentation-Indicator -> Presentation allowed
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Name -> 
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Screening-Indicator -> User provided, not screened
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Supports Overlap-Sending -> true
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Supported Codecs -> Voice: G.711 u-law[20/20], G.711 A-law[20/20], G.729A[20/20]
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Codec Negotiating -> Idle
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Unique Identifier -> [email protected]:5060
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: IP-Address -> 192.168.1.250
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Call-Leg-ID -> 0x00d6b3e0
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: State -> CONNECTED
02:08:41  CC    > [Call 012f05e8] Set call property: Context -> 0x00000020
02:08:41  CC    > [Call 012f05e8] Set call property: Information-Transfer-Capability -> 3.1kHz Audio
02:08:41  CC    > [Call 012f05e8] Set call property: Hops -> 0x00000010
02:08:41  CC    > [EP IF-SIP-1-00d6bd28/active] Dial to provider router (IF-SIP-1-precall-service) using call 012f05e8
02:08:41  CC    > [EP router-00d6c240/incoming] Accept call 012f05e8
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: E164-Number -> 187
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Type-Of-Number -> Unknown
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Numbering-Plan -> Unknown
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Name -> 
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Alert-Info -> 
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: URI -> sip:[email protected]:5060
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Network -> router
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Call-Leg-ID -> 0x00d6ed28
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: State -> TRYING
02:08:41  SIP_TR> [STACK] < 869 Stack: from 192.168.1.250
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK2f4c6bf5
Max-Forwards: 70
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Date: Thu, 01 Jan 1970 02:08:42 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 302

v=0
o=root 1036577147 1036577147 IN IP4 192.168.1.250
s=Asterisk PBX 11.5.1
c=IN IP4 192.168.1.250
t=0 0
m=audio 14536 RTP/AVP 0 3 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

02:08:41  CC    > [EP router-00d6c240] Start route-lookup
02:08:41  CC    > [EP router-00d6c240] Route found; immediately place call
02:08:41  CC    > [EP router-00d6c240] Route to provider 'IF-FXO-1'
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: E164-Number -> 031426992
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: URI -> sip:[email protected]
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Type-Of-Number -> Unknown
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Numbering-Plan -> Unknown
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Presentation-Indicator -> Presentation allowed
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Name -> 
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Screening-Indicator -> User provided, not screened
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Supports Overlap-Sending -> true
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Supported Codecs -> Voice: G.711 u-law[20/20], G.711 A-law[20/20], G.729A[20/20]
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Codec Negotiating -> Idle
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Unique Identifier -> [email protected]:5060
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: IP-Address -> 192.168.1.250
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Network -> router
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Call-Leg-ID -> 0x00d652e0
02:08:41  CC    > [EP router-00d6c240/outgoing] Set call-leg property: State -> CONNECTED
02:08:41  CC    > [Call 00ab6838] Set call property: Context -> 0x00000020
02:08:41  CC    > [Call 00ab6838] Set call property: Information-Transfer-Capability -> 3.1kHz Audio
02:08:41  CC    > [Call 00ab6838] Set call property: Hops -> 0x0000000f
02:08:41  CC    > [EP router-00d6c240/outgoing] Dial to provider IF-FXO-1 () using call 00ab6838
02:08:41  CFXO  > [EP IF-FXO-1] State IDLE, event OFFER
02:08:41  CC    > [EP IF-FXO-1/active] Accept call 00ab6838
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: E164-Number -> 187
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Type-Of-Number -> Unknown
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Numbering-Plan -> Unknown
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Name -> 
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Alert-Info -> 
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: URI -> sip:[email protected]:5060
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Quality-Of-Service -> MOS 4.50, DS0
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Network -> IF-FXO-1
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Call-Leg-ID -> 0x00abb870
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> TRYING
02:08:41  FXO   > [fxo 0 0 0/fxo 0] Dispatching event 'ApplOffHook' in state 'OnHook'
02:08:41  FXO   > [fxo 0 0 0/fxo 0] Action 'Off-Hook'
02:08:41  FXO   > [0 0] Driver: Setting port state to 'OffHook'
02:08:41  FXO   > [fxo 0 0 0/fxo 0] Transition 'OnHook' -> 'OffHook'
02:08:41  CFXO  > [EP IF-FXO-1] Deactivate caller-id detection
02:08:41  CFXO  > [EP IF-FXO-1] Starting timer with 2 secs
02:08:41  CFXO  > [EP IF-FXO-1] Change state to WAIT BEFORE DIALING.
02:08:41  CC    > [EP IF-FXO-1/active] Set call-leg property: Provides Data -> true
02:08:41  CC    > [Call 012f05e8] Set call property: Hops -> 0x0000000f
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Provides Data -> true
02:08:41  CC    > [EP router-00d6c240/incoming] Set call-leg property: Quality-Of-Service -> MOS 4.50, DS0
02:08:41  CFXO  > [EP IF-FXO-1] State WAIT BEFORE DIALING, event PEER_CONNECTED
02:08:42  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Provides Data -> true
02:08:42  SIP_TR> [STACK] > 690 Stack: to 192.168.1.250
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK2f4c6bf5
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>;tag=2036204427
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060;transport=udp>
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Content-Type: application/sdp
Content-Length: 212

v=0
o=MxSIP 0 28 IN IP4 192.168.1.249
s=SIP Call
c=IN IP4 192.168.1.249
t=0 0
m=audio 4890 RTP/AVP 0 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=sendrecv

02:08:42  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Provides Data -> true
02:08:42  CFXO  > [EP IF-FXO-1] Change datapath direction to Send/Receive.
02:08:43  CFXO  > [EP IF-FXO-1] State WAIT BEFORE DIALING, event TIMEOUT
02:08:43  CFXO  > [EP IF-FXO-1] Change state to DIALING.
02:08:43  CFXO  > [EP IF-FXO-1] Starting timer with 1 secs
02:08:43  CFXO  > [EP IF-FXO-1] Dialing to terminal: 187
02:08:44  CFXO  > [EP IF-FXO-1] State DIALING, event TIMEOUT
02:08:44  CFXO  > [EP IF-FXO-1] Change state to ACTIVE.
02:08:44  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> CONNECTED
02:08:44  CC    > [EP router-00d6c240] Routing succeeded
02:08:44  CC    > [EP router-00d6c240/incoming] Transfer call 00ab6838 to 012f05e8 ==> conference
02:08:44  CC    > [EP router-00d6c240/incoming] Drop call 012f05e8
02:08:44  CC    > [EP router-00d6c240/incoming] Set call-leg property: Provides Data -> false
02:08:44  CC    > [EP router-00d6c240/incoming] Set call-leg property: Cause -> Normal call clearing
02:08:44  CC    > [EP router-00d6c240/incoming] Set call-leg property: State -> RELEASED
02:08:44  CC    > [EP router-00d6c240/outgoing] Drop call 00ab6838
02:08:44  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Provides Data -> false
02:08:44  CC    > [EP router-00d6c240/outgoing] Set call-leg property: Cause -> Normal call clearing
02:08:44  CC    > [EP router-00d6c240/outgoing] Set call-leg property: State -> RELEASED
02:08:44  SIP_TR> [STACK] > 697 Stack: to 192.168.1.250
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK2f4c6bf5
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>;tag=2036204427
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060;transport=udp>
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Supported: replaces
Content-Type: application/sdp
Content-Length: 212

v=0
o=MxSIP 0 28 IN IP4 192.168.1.249
s=SIP Call
c=IN IP4 192.168.1.249
t=0 0
m=audio 4890 RTP/AVP 0 8 18
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=sendrecv

02:08:44  SIP_TR> [STACK] < 409 Stack: from 192.168.1.250
ACK sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK583f6763
Max-Forwards: 70
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>;tag=2036204427
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(11.5.1)
Content-Length: 0


02:08:46  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Quality-Of-Service -> MOS 1.02, RTP, G.711 u-law (20ms), Local: Rx 63 pkts, 10080 bytes, 0 lost, jitter 477 ms, Tx 207 pkts, 33120 bytes, rtt 0 ms, Remote: Rx 0 pkts, 0 bytes, 0 lost, jitter 0 ms, Tx 0 pkts, 0 bytes, rtt 0 ms
02:08:50  SIP_TR> [STACK] < 437 Stack: from 192.168.1.250
BYE sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK767d018f
Max-Forwards: 70
From: <sip:0[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>;tag=2036204427
Call-ID: [email protected]:5060
CSeq: 103 BYE
User-Agent: FPBX-2.11.0(11.5.1)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0


02:08:50  SIP_TR> [STACK] > 375 Stack: to 192.168.1.250
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK767d018f
From: <sip:[email protected]>;tag=as4d25644d
To: <sip:[email protected]:5060>;tag=2036204427
Call-ID: [email protected]:5060
CSeq: 103 BYE
Server: Patton SN4112 JO EUI 00A0BA0A205F R6.3 2013-05-01 H323 SIP FXS FXO M5T SIP Stack/4.1.12.18
Content-Length: 0


02:08:50  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: State -> RELEASED
02:08:50  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Provides Data -> false
02:08:50  CC    > [EP IF-SIP-1-00d6bd28/active] Drop call 012f05e8
02:08:50  CC    > [EP IF-SIP-1-00d6bd28/active] Set call-leg property: Cause -> Normal call clearing
02:08:50  CFXO  > [EP IF-FXO-1] State ACTIVE, event PEER_RELEASED
02:08:50  FXO   > [fxo 0 0 0/fxo 0] Dispatching event 'ApplOnHook' in state 'OffHook'
02:08:50  FXO   > [fxo 0 0 0/fxo 0] Action 'On-Hook'
02:08:50  FXO   > [0 0] Driver: Setting port state to 'OnHook'
02:08:50  FXO   > [fxo 0 0 0/fxo 0] Transition 'OffHook' -> 'OnHook'
02:08:50  CFXO  > [EP IF-FXO-1] Change state to IDLE.
02:08:50  CC    > [EP IF-FXO-1/active] Drop call 012f05e8
02:08:50  CC    > [EP IF-FXO-1/active] Set call-leg property: Provides Data -> false
02:08:50  CC    > [EP IF-FXO-1/active] Set call-leg property: State -> RELEASED
02:08:50  CFXO  > [EP IF-FXO-1] Change datapath direction to Inactive.
02:08:50  CFXO  > [EP IF-FXO-1] Configure caller-id detection 'etsi'
02:08:50  CFXO  > [EP IF-FXO-1] Change datapath direction to Receive Only.

Asterisk log:

Asterisk log with both Snom(not working) and Grandstream(working)

Sorry for the multi-post topic.
Bye.

Before trying next, as starting point: have you checked date and time (not using NTP?) settings on each device involved (I mean on Patton 4112, on Asterisk and on IP phones)?

Did you looked also for new SNOM 760’s available firmware (the same could be asked about Patton 4112 R6.3 against R6.5 even if the Patton 4112 configuration looks good indeed both GrandStream and the others soft-phones tested are able to complete outgoing calls to PSTN number)?

The SNOM 760 seems to behave differently than Grandstream looking at the logs provided. Is it correctly and properly registered on Asterisk+FreePBX? Which is your Network topology? Which Asterisk+FreePBX configuration (FreePBX Distro or a custom made Asterisk+FreePBX appliance) are you testing?

I’m not an expert on Patton 4110 Series or on VoIP over SIP trunking to ITSP provider (Italian VoiceOne in this case) but if I were you I will for sure start checking those aspects before go deep on logs.

Before trying next, as starting point: have you checked date and time (not using NTP?) settings on each device involved (I mean on Patton 4112, on Asterisk and on IP phones)?

I’m not using an NTP because there’s no internet connection at the moment and there are no internal NTP server.

Did you looked also for new SNOM 760’s available firmware (the same could be asked about Patton 4112 R6.3 against R6.5 even if the Patton 4112 configuration looks good indeed both GrandStream and the others soft-phones tested are able to complete outgoing calls to PSTN number)?

That’s a good suggestion, I will update the fw immediately.

The SNOM 760 seems to behave differently than Grandstream looking at the logs provided. Is it correctly and properly registered on Asterisk+FreePBX?

Yes.

I’m not an expert on Patton 4110 Series or on VoIP over SIP trunking to ITSP provider (Italian VoiceOne in this case) but if I were you I will for sure start checking those aspects before go deep on logs.

The strange fact is that the other telephones work so I’m pretty sure that Patton configuration is good. Anyway, I will check it again, thanks for the help.