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?
Hello You are correct in what
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
yes, at some point in your
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
Hmm when i used Diversion:
Hmm when i used Diversion: sip:${MACRO_EXTEN}@operator.domain;reason=unconditional i got Diversion: sip:s@operator.domain;reason=unconditional in the invite. Strange
that means its a script
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.
Hello Erik, Hmm that sounds
Hello Erik,
Hmm that sounds really hard to do, are there any scripts ready for that?
? no there are no scripts
? no there are no scripts that read dialplan for you to return the value of your query.
i dont understand why the
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 =)
Hello The operater have some
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.
well you'll need to execute
well you'll need to execute the macro tl-set-myvariables in order to get the values of ${MYEXTENSION} and ${MYID}
Hello Looks nice but i cant
Hello
Looks nice but i cant find out where to run the script to manage to get the diversion header dynamic.
as a full month has passed,
as a full month has passed, maybe you should consider buying programming time?
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)