Skip to main content

Diversion header on the trunk

Posted by diffen on Tue, 06/01/2010

Hello

From: 20000
To: 10000
Follow me to: 30000

If i recive a number from 20000 and using follow me to number 30000 i get 10000 in the display of device 30000. Thats nice, but if i check " Use original caller's Caller ID when forwarding" i get temporary unavalible fron the operator.

I need to add a diversion header in the trunk options. I belive it should look something like this: Diversion:b-number;reason=unconditional

My question is whats the variable for b-number that i want to add in the diversion header?


Submitted by eeman on Tue, 06/01/2010 Permalink

you have to check with your provider. This is one of those damn no-2-switches do it the same goddamn way problems.

some broadsoft switches want a P-Asserted-Identify, some want a diversion header..

some Sonus switches are perefectly OK receiving Remote-Party-ID info while others are not.

as of now the ONLY data that is automatically part of the sip stack in asterisk is Remote-Party-ID. Its the only headers that will actually relay.

I have no idea if your provider wants straight 10 digits, 11 digits or E.164 (+15025551212)

Submitted by diffen on Wed, 06/02/2010 Permalink

Hello

You are correct in what you are saying. But thats something that the operator have to tell me how they want it. I just want to know if its possible to get the B-number from the first calllet ( 10000 in this example) to be added in the diversion header of the second callleg. like this: Diversion:10000;reason=unconditional

Submitted by eeman on Wed, 06/02/2010 Permalink

yes, at some point in your dialplan 10000 is the value of ${MACRO_EXTEN}

its my understanding that this feature is supposed to be used exclusively for public numbers

tel:+15021234567

as an example

Submitted by eeman on Wed, 06/09/2010 Permalink

that means its a script inside another script... you will have to trace though dialplan to see what channel variable the macro extension gets assigned to.

Submitted by eeman on Wed, 06/09/2010 Permalink

i dont understand why the obsession with extension number and not the original callerid.. why would you ever send an internal extension number to the PSTN? they dont give a crap about extensions.. they just want to know who redirected the call to know who to bill =)

Submitted by diffen on Tue, 06/15/2010 Permalink

Hello

The operater have some feature that they sell to their customers. One price for mobilephone and extension number. you can have like 1500 minutes per month and it will include both mobilephone and the extension phone.

Thats why I need the extension number in the diversion header.