Issue with calerid when using the SLA

Hi,

I am using asterisk 13 and set up the SLA with the pjsip channel.

  1. When the incoming call comes in it goes to line1 and line1 will dial the station/extension 8883,8884
    (at this point, caller id works perfectly fine)
  2. 8883 picks up the call and BLF updates the LED
  3. 8883 puts the call on hold
  4. Now, when 8884 connects to the line1 by pressing the line1 key, 8884 is not getting the caller id

Configuration files

sla.conf:

[general]
attemptcallerid = yes

[line1]
type = trunk
device = Local/disa@line1_outbound

[line2]
type = trunk
device = Local/disa@line2_outbound

[station] (!)
type=station
trunk=line1
trunk=line2

[8883] (station)
device = PJSIP/8883

[8884] (station)
device = PJSIP/8884

extensions.conf:

[line1]
exten => s,1,NoOp(Transfering to available line)
same => n,SLATrunk(line1);

[sla_stations]
exten => 8883,1,SLAStation(8883)
exten => 88831,hint,SLA:8883_line1
exten => 88831,SLAStation(8883_line1)
exten => 88832,hint,SLA:8883_line2
exten => 88832,1,SLAStation(8883_line2)

exten => 8884,1,SLAStation(8884)
exten => 88841,hint,SLA:8884_line1
exten => 88841,1,SLAStation(8884_line1)
exten => 88842,hint,SLA:8884_line2
exten => 88842,1,SLAStation(8884_line2)

Any help would be appreciated.

Thanks.

You haven’t provided the PJSIP configuration, which can alter behavior for connected line updates.

1 Like

pjsip.conf:

[global]
type=global
keep_alive_interval=20
endpoint_identifier_order=username,ip,anonymous

[simple]
type=transport
protocol=udp
bind=0.0.0.0
tos=cs7
cos=7

[simpletrans]
type=transport
protocol=tcp
bind=0.0.0.0:5060
tos=cs7
cos=7
local_net=192.168.1.0/24
external_media_address=71.225.187.142
external_signaling_address=71.225.187.142

[user12]
type=registration
outbound_auth=user12
outbound_proxy=sip:AAAAAAAAA.com\;transport=tcp
transport=simpletrans
line=yes
retry_interval=60
endpoint=user12
expiration=600
max_retries=240
server_uri=sip:AAAAAAAAA.com\;transport=tcp
client_uri=sip:user12@AAAAAAAAA.com\;transport=tcp

[user12]
type=auth
auth_type=userpass
password=helloabcdworld
username=user12

[user12]
type=aor
remove_existing=yes
contact=sip:AAAAAAAAA.com\;transport=tcp

[user12]
type=endpoint
tos_audio=cs7
cos_audio=7
direct_media=no
force_rport=yes
allow_subscribe=yes
context=line1
rewrite_contact=yes
transport=simpletrans
mailboxes=999@vm_setup
disallow=all
allow=ulaw,h263,h264
from_user=user12
from_domain=AAAAAAAAA.com\;transport=tcp
aors=user12
outbound_auth=user12

[8883]
type=endpoint
transport=simple
allow_subscribe=yes
context=sla_stations
disallow=all
tos_audio=cs7
cos_audio=7
rewrite_contact=yes
dtmf_mode=rfc4733
allow=ulaw,h263,h264
mailboxes=999@vm_setup
auth=8883
aors=8883

[8883]
type=auth
auth_type=userpass
password=password8883
username=8883

[8883]
type=aor
max_contacts=2

[8884]
type=endpoint
transport=simple
allow_subscribe=yes
context=sla_stations
disallow=all
tos_audio=cs7
cos_audio=7
rewrite_contact=yes
dtmf_mode=rfc4733
allow=ulaw,h263,h264
mailboxes=999@vm_setup
auth=8884
aors=8884

[8884]
type=auth
auth_type=userpass
password=password8884
username=8884

[8884]
type=aor
max_contacts=2

You don’t appear to have enabled support for sending connected line updates. This is done using the “send_rpid” and “send_pai” options.

1 Like

I tried but it is still not working.
Following is the new endpoint section.

type=endpoint
transport=simple
allow_subscribe=yes
context=sla_stations
send_pai=yes
send_rpid=yes
disallow=all
tos_audio=cs7
cos_audio=7
rewrite_contact=yes
dtmf_mode=rfc4733
allow=ulaw,h263,h264
mailboxes=999@vm_setup

Am I missing something?

That should update connected line information, that’s the extent of what I know in regards to this. SLA I have no experience with and noone really uses it anymore from what I can see.

OK. Thanks.

Also, is it possible to get multiple lines for one credential?

Suppose, user12 is registering with SIP server in the given example. Can I associate the user12 to line1 and line2? So that when incoming call is coming in it will go to line1 and line1 is busy it will automatically goto line2.