Page 1 of 1

how to put hash in campaign prefix field

PostPosted: Fri Nov 10, 2006 7:04 am
by rudra_ach
Hi,

I've created a sip trunk and my provider wants a prefix 90109#001 before the number.I want to set it on the campaign level in prefix field.But I found the #(hash) it is not taking.Is there any way to put a hash in the campaign prefix.

regards
rudra

PostPosted: Fri Nov 10, 2006 10:48 am
by mflorell
It would be easier to do this in the extensions.conf with a substitution.

Putting a hash in a field for a campaign could cause problems in several scripts on the server and client side which is why it is not allowed.

PostPosted: Fri Nov 10, 2006 11:51 am
by rudra_ach
I am thinking on your point for extensions.conf with a substitution. But I am not able to think. Below is my configuration.

exten => _90109#001.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _90109#001.,2,Dial(SIP/provider1/${EXTEN:1},55,tTo)
exten => _90109#001.,3,Hangup

please help.

Regards.
Rudra.


mflorell wrote:It would be easier to do this in the extensions.conf with a substitution.

Putting a hash in a field for a campaign could cause problems in several scripts on the server and client side which is why it is not allowed.

PostPosted: Fri Nov 10, 2006 3:41 pm
by mflorell
try this:

exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,2,Dial(SIP/provider1/90109#001${EXTEN:1},55,tTo)
exten => _9NXXNXXXXXX,3,Hangup