[asterisk-users] incoming call label

thelma at sys-concept.com thelma at sys-concept.com
Thu Feb 15 17:03:08 CST 2018


On 02/15/2018 03:44 PM, Joshua Colp wrote:
> On Thu, Feb 15, 2018, at 6:43 PM, thelma at sys-concept.com wrote:
>> I'm using Audio-codes MP-114 unit and it has two public lines PSTN ports
>>
>> IN audocodes setting I have:
>> "EndPoint Phone Number"
>>
>> Channel: 3    phone number: pstn-4444
>> Channel: 4    phone number: pstn-9998
>>
>> When I am calling " pstn-4444" the port number "Channel:3" lights up but
>> asterisk is showing that the call is coming on "pstn-9998"
>>
>> -- Executing ..... Answer("SIP/pstn-9998....
>>
>> Asterisk should be showing "pstn-4444" (not pstn-9998)
>> Where is this label coming from?
> 
> It is from the SIP entry in sip.conf that it was matched against.
> 

Thanks for the input.

In sip.conf I have relevant entries.

[pstn-4444] ; incoming/outgoing calls on FXO port
type=friend
secret=spa354
username=voice-4444
mailbox=622 ; just for audiocodes error complain
host=dynamic
canreinvite=no ; (dtmf not wroking correctly without this one)
disallow=all
allow=ulaw
allow=alaw
nat=no
context=incoming
callgroup=1
pickupgroup=1
insecure=invite

[pstn-9998]
type=friend
secret=158567
username=fax-9998
insecure=invite
mailbox=622  ; just for audiocodes error complain
host=dynamic
canreinvite=no  ; (dtmf not wroking correctly without this one)
disallow=all
allow=ulaw
allow=alaw
nat=no
context=incoming
callgroup=1
pickupgroup=

My asterisk registration is correct as well:
sip show users
Username                   Secret           Accountcode      Def.Context
     ACL  Forcerport
pstn-9998                  158567                               incoming
        No   No
pstn-4444                  spa354                             incoming
      No   No

Caller display ID from PSTN on FXO ports are working OK.
The [pstn-4444]  is channel: 4
The [pstn-9998] is channel: 3

If the call on Audocode is lighting UP "channel:3" the sip.conf should
associate that call with  [pstn-4444] (and not [pstn-9998])

--
Thelma



More information about the asterisk-users mailing list