[asterisk-users] PJSip CallerID Question

Brent Davidson brent at texascountrytitle.com
Tue Apr 10 10:07:27 CDT 2018


On 4/7/2018 5:50 AM, Daniel Tryba wrote:
> On Fri, Apr 06, 2018 at 02:27:31PM -0500, Brent Davidson wrote:
>> I have multiple Asterisk instances set up in different locations and would
>> like to modify the callerID of inbound calls to identify which instance the
>> call is coming from.  I knew how to do that with the old sip format, but
>> can't seem to figure it out with PJSip.
> So how did you do that?
<embarrassed> Uhh, I actually don't remember, and I didn't save any of 
the old config when I upgraded the servers.  Yeah, I know.  </embarrassed>
>   
>> Currently Location A, extension 10 calls Location B, extension 20.  CallerID
>> on Extension 20 displays "10" for the callerID.
>>
>> The Desired configuration is for Extension 20 to show "Locati0n B - 10" on
>> the caller ID.  I don't want to modify the caller ID for each individual
>> extension as I want the intra-location caller IDs to show just the extension
>> number.  (e.g. LocA/Ext. 10 calls LocA/Ext11 - LocA/Ext11's CallerID
>> displays "10", but LocA/Ext10 calling LocB/Ext20 displays "Location A - 10"
>> for caller ID.
> You examples contradict.
Yeah, that was a type.  Should read:

The Desired configuration is for Extension 20 to show "Location A - 10" on
the caller ID.  I don't want to modify the caller ID for each individual
extension as I want the intra-location caller IDs to show just the extension
number.  (e.g. LocA/Ext. 10 calls LocA/Ext11 - LocA/Ext11's CallerID
displays "10", but LocA/Ext10 calling LocB/Ext20 displays "Location A - 10"
for caller ID.



>   
>> Rather than routing these to the "internal" context, should I create another
>> context and somehow parse/manipulate the caller ID in there then route to
>> "internal" ?
> TIMTOWTDI, but I'd choose to set the CALLERID(name) on the sending side
> dialplan (where it routes calls to external extensions).
>
Ah.  That's probably how I did it before.  Not sure why I didn't copy 
that section of the dialplan over during the upgrade.  Probably because 
I wanted to get incoming calls working at all locations first, then 
tackle office to office later.

Thanks.

---
This email has been checked for viruses by AVG.
http://www.avg.com

WARNING-FRAUDULENT FUNDING INSTRUCTIONS

Email hacking and fraud are on the rise to fraudulently misdirect funds. Please call your escrow officer immediately using contract information found from an independent source, such as the sales contract or internet, to verify any funding instructions received. We are not responsible for any wires sent by you to an incorrect bank account. 




More information about the asterisk-users mailing list