Author Topic: CallerID as my UserName of the Trunk  (Read 13283 times)

adionesis

  • Newbie
  • *
  • Posts: 3
    • View Profile
CallerID as my UserName of the Trunk
« on: March 27, 2014, 12:27:29 PM »
Hi, I have a problem with the CallerID, when I recive a call, the display show TRK0059XX-XX wich actually is the username to use my trunk, I´ve check the debug and the line said something like callerid="TRKXXXXX-XX", I have to assume that my provider dont send my the callerid or what have been done wrong?

Regards
George

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: CallerID as my UserName of the Trunk
« Reply #1 on: March 28, 2014, 01:40:31 AM »
Hi,
Can you give us more info?
Like the protocol you are using, config, log ...

adionesis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: CallerID as my UserName of the Trunk
« Reply #2 on: March 28, 2014, 08:41:37 AM »
Hi,
Can you give us more info?
Like the protocol you are using, config, log ...
Hi, of course...

here you have an incoming call from "TRK00519-001" where Incoming call is entering from number 32207600

---- Log
<pbxassist:CALL> Created assistant for 'sip/338'
FreeSentral : register.php : entered return_route(called='32207600',caller='TRK00519-001',username='',address='192.168.200.53',already-auth='',reason='', trusted='', call_type='', route_loop_count='')
Executed: SELECT value FROM settings WHERE param='annonymous_calls'
Executed: SELECT extension_id,true as trusted,'from inside' as call_type FROM extensions WHERE extension='' UNION SELECT incoming_gateway_id, trusted, 'from outside' as call_type FROM incoming_gateways,gateways WHERE gateways.gateway_id=incoming_gateways.gateway_id AND incoming_gateways.ip='192.168.200.53' UNION SELECT gateway_id, trusted, 'from outside' as call_type FROM gateways LEFT OUTER JOIN sig_trunks ON gateways.sig_trunk_id=sig_trunks.sig_trunk_id WHERE server='192.168.200.53' OR server LIKE '192.168.200.53:%' OR sig_trunk='192.168.200.53:5060'
FreeSentral : register.php : classified call as being 'from outside'
FreeSentral : register.php : entered routeToDid('32207600')
Executed: SELECT destination FROM dids WHERE number='32207600' OR '9' || number='32207600'
<pbxassist:NOTE> Chan 'sip/338' entering guest mode
-----

Tell me if you want to know more.
Btw, I´m a NOOB! so please be patient ;D

Thanks in advance!
George
« Last Edit: March 28, 2014, 08:53:34 AM by adionesis »

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: CallerID as my UserName of the Trunk
« Reply #3 on: March 31, 2014, 12:46:27 AM »
Hi,

Seems the calling party number is TRK00519-001.
I can't say more without sip debug.

Start yate with more debug and timestamps. Command line options:
-vvvvv -Dt

Make sure sip messages are displayed:
ysipchan.conf:
[general]
printmsg=yes