Passing correct caller id and did Patton 4554

gpetrom

Joined
Jul 23, 2009
Messages
13
Likes
0
Points
0
#1
Hi

I have managed to setup patton 4554 with elastix and now i have incoming and outgoing calls.
But i have two problems

One in the asterisk debug i am getting anonymous for did
-- Executing [anonymous@from-pstn:1] NoOp("SIP/10004-b6c0b2f0", "Catch-All DID Match - Found anonymous - You probably want a DID for this.") in new stack
-- Executing [anonymous@from-pstn:2] Goto("SIP/10004-b6c0b2f0", "ext-did|s|1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/10004-b6c0b2f0", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/10004-b6c0b2f0", "app-blacklist-check|s|1") in new stack
Second in the phone i am getting the username for callerid

Here is the patton configuration
cli version 3.20
webserver port 80 language en

system

ic voice 0
low-bitrate-codec g729

system
clock-source 1 bri 0 0
clock-source 2 bri 0 1

profile ppp default

profile call-progress-tone defaultDialtone
play 1 200 425 0
pause 2 300
play 3 700 425 0
pause 4 800

profile call-progress-tone defaultBusytone
play 1 300 425 -7
pause 2 300

profile call-progress-tone defaultReleasetone
play 1 150 425 -7
pause 2 150

profile call-progress-tone defaultCongestiontone
play 1 150 425 -7
pause 2 150

profile tone-set default

profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
fax transmission 1 relay t38-udp

profile pstn default

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_IP_LAN
ipaddress 192.168.100.249 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context cs switch

routing-table called-e164 RT_ISDN_TO_SIP_0
route T2 dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS

routing-table called-e164 RT_ISDN_TO_SIP_1
route T2 dest-interface IF_SIP_1 MAPPING_INCOMING_CALLS

mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""

mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (.%) to \1

complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO

interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
user-side-ringback-tone

interface isdn IF_ISDN_1
route call dest-table RT_ISDN_TO_SIP_1
user-side-ringback-tone

interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
route call dest-interface IF_ISDN_0
remote 192.168.100.250
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix 10004 host-part
call

interface sip IF_SIP_1
bind context sip-gateway GW_SIP_1
route call dest-interface IF_ISDN_1
remote 192.168.100.250
early-connect
early-disconnect

context cs switch
no shutdown

authentication-service AS_ALL_LINES
realm 1 1
username 10004 password 9CS6/5Fhrd0= encrypted
username 10005 password pMT9lKu/wg8= encrypted

authentication-service ASS_ALL_LINES

location-service LS_10004
domain 1 192.168.100.250

identity-group default

authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10004

identity 10004

authentication outbound
authenticate 1 authentication-service AS_ALL_LINES

registration outbound
registrar 192.168.100.250
lifetime 300
register auto

location-service LS_10005
domain 1 192.168.100.250

identity-group default

authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10005

identity 10005

authentication outbound
authenticate 1 authentication-service AS_ALL_LINES

registration outbound
registrar 192.168.100.250
lifetime 300
register auto

context sip-gateway GW_SIP_0

interface LAN
bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP_0
bind location-service LS_10004
no shutdown

context sip-gateway GW_SIP_1

interface LAN
bind interface IF_IP_LAN context router port 5062

context sip-gateway GW_SIP_1
bind location-service LS_10005
no shutdown

port ethernet 0 0
encapsulation ip
bind interface IF_IP_LAN router
no shutdown

port bri 0 0
clock auto
encapsulation q921

q921
protocol pp
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_0 switch

port bri 0 0
no shutdown

port bri 0 1
clock auto
encapsulation q921

q921
protocol pp
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_1 switch

port bri 0 1
no shutdown
And the freepbx conf in peer details all other is blank

canreinvite=yes
context=from-pstn
host=192.168.100.249
insecure=very
nat=no
port=5060
qualify=yes
type=peer
username=10004
secret=10004
reinvite=yes

Thanks in advanced
 

gpetrom

Joined
Jul 23, 2009
Messages
13
Likes
0
Points
0
#2
Hi

I have fixed the problem with the caller id Just removed from the patton configuration the line
address-translation outgoing-call from-header user-part fix 10004 host-part
Now caller id works fine.
Now i just want to fix did

Thanks
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,595
Latest member
feparra121
Top