Pass incoming CID to outbound Trunk

11 posts / 0 new
Last post
BirdyB
BirdyB's picture
Pass incoming CID to outbound Trunk

Hi,

i created a ringgroup in FreePBX. One of the Ringgroup-Members is a Mobilephone. I just want the incoming CID also to appear on my Mobile. I am allowed to set the CID as i want.
The asterisk-log shows the following:


   -- dialparties.agi: Filtered ARG3: 01773838516-200-213-210-220-230-240-301
       > dialparties.agi: NODEST: 600 adding M(auto-blkvm) to dialopts: trwM(auto-blkvm)
       > dialparties.agi: NODEST: 600 blkvm enabled macro already in dialopts: trwM(auto-blkvm)
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("SIP/asterisk-in-000000d2", "Local/01773838516@from-internal/n&Local/200@from-internal/n&Local/213@from-internal/n&Local/210@from-internal/n&Local/220@from-internal/n&Local/230@from-internal/n&Local/240@from-internal/n&Local/301@from-internal/n,30,trwM(auto-blkvm)") in new stack
    -- Called Local/01773838516@from-internal/n
    -- Called Local/200@from-internal/n
    -- Called Local/213@from-internal/n
    -- Called Local/210@from-internal/n
    -- Executing [01773838516@from-internal:1] Macro("Local/01773838516@from-internal-bb87;2", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/01773838516@from-internal-bb87;2", "AMPUSER=01727086785") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/01773838516@from-internal-bb87;2", "0?report") in new stack
    -- Executing [200@from-internal:1] GotoIf("Local/200@from-internal-bb90;2", "1?ext-local,200,1") in new stack
    -- Goto (ext-local,200,1)
    -- Executing [213@from-internal:1] Set("Local/213@from-internal-a922;2", "__RINGTIMER=15") in new stack
    -- Executing [213@from-internal:2] Macro("Local/213@from-internal-a922;2", "exten-vm,novm,213,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/213@from-internal-a922;2", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Local/01773838516@from-internal-bb87;2", "1?Set(REALCALLERIDNUM=01727086785)") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/213@from-internal-a922;2", "AMPUSER=01727086785") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Local/01773838516@from-internal-bb87;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/213@from-internal-a922;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Local/213@from-internal-a922;2", "1?Set(REALCALLERIDNUM=01727086785)") in new stack
    -- Executing [200@ext-local:1] Set("Local/200@from-internal-bb90;2", "__RINGTIMER=15") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/01773838516@from-internal-bb87;2", "AMPUSERCIDNAME=") in new stack
    -- Executing [200@ext-local:2] Macro("Local/200@from-internal-bb90;2", "exten-vm,200,200,0,1,0") in new stack
    -- Executing [220@from-internal:1] Set("Local/220@from-internal-895e;2", "__RINGTIMER=15") in new stack
    -- Executing [220@from-internal:2] Macro("Local/220@from-internal-895e;2", "exten-vm,novm,220,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/220@from-internal-895e;2", "user-callerid,") in new stack
    -- Called Local/220@from-internal/n
    -- Called Local/230@from-internal/n
    -- Called Local/240@from-internal/n
    -- Called Local/301@from-internal/n
    -- Executing [210@from-internal:1] Set("Local/210@from-internal-6b4c;2", "__RINGTIMER=15") in new stack
    -- Executing [210@from-internal:2] Macro("Local/210@from-internal-6b4c;2", "exten-vm,novm,210,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/210@from-internal-6b4c;2", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/210@from-internal-6b4c;2", "AMPUSER=01727086785") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Local/213@from-internal-a922;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/213@from-internal-a922;2", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/213@from-internal-a922;2", "1?report") in new stack

where 01727086785 is the calling number and 01773838516 is my mobile number

can anyone help?

sanjayws
sanjayws's picture
Hello You can set, but it

Hello

You can set, but it depends if your TSP allows to manipulate CIDs not within your CID allotted range.

SafeFast
SafeFast's picture
pass through or spoofing

You need to ask your carrier if they allow CID's outside of your DID range.

Several carriers (Especially LEC's and CLECS) dont provide it unless you specifically ask for it.

Some wont provide it at all.

Some old school "Bellheads" call it Caller ID pass-through or "Spoofing"

It was explained to me as:

"pass through" allows you to send out the caller-id of an inbound call forwarded externally. (Such as what you might be doing with your ring groups or follow me routing)

"Spoofing" is a different line appearance with a different outbound caller ID than your main line appearance(s). For example, being able to call outbound with your cell number instead of your company number such as a commissioned sales person or contractor might do.

Usually, if you explain your need for it as "pass through", so your users can forward inbound calls to home or cell phone, they will add it.

dicko
dicko's picture
Hehe, try spoofing your own

Hehe, try spoofing your own cell phone number and then call that cell phone, chances are it will go straight to your voice mail, if you can't be bothered with passwords then . . .

That's how Rupert Murdoch got his stuff. . . Watch out you cheating spouses Smile )

(taken directly from from my first class offered in "Human Engineering, 101")

SkykingOH
SkykingOH's picture
That's only the half of it.

That's only the half of it. Banks and other institutions are much more likely to accept incomplete authentication information if a call comes in from a customers home phone.

You can also activate credit cards this way.

I am sure the more enlightened criminals make extensive use of spoofing.

There are even pay per spoof services that have smartphone apps. You put the number in the app and it calls you back.

The providers are short lived because after a few complaints the carriers shut them down, it's a violation of the ToS. Most people don't read the ToS but you are not supposed to send a CID that you don't have an LOA for.

dicko
dicko's picture
Luckily most toll-free

Luckily most toll-free numbers (banks et al) rely on ANI not CLID , that is much harder to "selfspoof". Now , if they would stop using Sonus (Soni ?) . . .

SkykingOH
SkykingOH's picture
I know Amex doesn't. I was

I know Amex doesn't. I was on the road and forgot to activate my new card. VPN'd in, whipped out my softphone and had the card activated in minutes.

dicko
dicko's picture
Hehe, so did I after

Hehe, so did I after "dumpster diving" your trash, expect extra charges next month Smile

Seriously though folks, what you throw away often includes your phone number, if not the white pages probably does, add all those credit card offers in your trash and you will see why Identity theft is so easy for even a knuckle-dragger with a nerd friend to do.

(Human Enginnering, - 102. Just because I'm paranoid, it doesn't mean people aren't following me)

SafeFast
SafeFast's picture
CID's and 800's ?

Wasnt there some kind of FCC or other rule that said that calls to toll free numbers couldnt have the CID blocked due to the fact that its a collect call?

or... something like that?

If so, if you spoof your cell phone and call a toll free number from a SIP trunk, will the provider send the CID you specified? Or a *real* CID of your trunk for toll free numbers to prevent angry people from redialing ur toll free number to stiff you with the bill?

dicko
dicko's picture
Kind of, Toll-frees use ANI

Kind of, Toll-frees use ANI not CLID, regular landlines will be presented with their underlying LERG (Local Exchange Routing Guide) number even if the subscriber turns off Caller ID. VOIP kinda changed all that as the distinction between ILEC's ELEC's LEC's and CLEC's is not really valid anymore, and leaves the LERG in a total mess, number porting further confused the matter and LERG still often reports a number as the old underlying pre-ported carrier. This leaves it pretty well unregulated to all intents and purposes. So ultimately what is unblocked is a toss up. 35k a month (LERG subscription) for incorrect info, go figure.

BirdyB
BirdyB's picture
I am allowed to set any CID

I am allowed to set any CID i want... so thats not the problem... m problem is, how to configure FreePBX...