* You are viewing Posts Tagged ‘sip’

in sip.conf or dialplan or db?

On Tuesday 27 March 2012, Roland wrote:
> I am setting up my dialplan with quite some outbound numbers. We have a
> block of 100 DID’s, for which some of them will go direct to specific
> phones. I am struggling how to solve this, so I am searching for a little
> advice. These are my concerns.
>
> I could set the DID in the sip.conf using something like:
>
> callerid=”137-Roland” <31229253137>
>
> 137 would be my extention number here.
> …..
> Any suggestions would be appreciated! Am I missing any options here?

Assuming there is a reasonable mapping from “outside” numbers to “inside”
numbers (your example shows the external number as being 31229253 followed by
the internal number; note also you can do simple integer maths within a
dialplan, as unlike some languages + hasn’t been appropriated for string
concatenation), it shouldn’t be that difficult.

If an internal extension wants to call an internal extension, its caller ID
ought already to be set to its “inside” extension number in sip.conf. If it
wants to call an external number, then it needs to set its caller ID to the
appropriate inbound number. If it’s as simple as adding a prefix, then you
need something in your dialplan like:

[management]
; 3 digits is internal
exten => XXX,1,Dial(SIP/${EXTEN},90)
exten => XXX,2,Hangup()
; 5 digits or more must be external — ident as own DDI number
exten => XXXX.,1,Set(CallerID(num)=${DDIPREFIX}${callerID(num)})
exten => XXXX.,2,Dial(${POTS}/${EXTEN},90)
exten => XXXX.,3,Hangup()

Now, chances are, not every internal phone will want to ident as a unique
external number — perhaps you want all the phones in one office to ident as a
single number, and all ring together (using something like
Dial(TECH/ext&TECH/ext&TECH/ext ….. ) when called from outside. In this
case, you just need to configure all these phones into their own context in
your sip.conf and something like this in your dialplan:

[sales-office]
; 3 digits is internal
exten => XXX,1,Dial(SIP/${EXTEN},90)
exten => XXX,2,Hangup()
; 5 digits or more must be external — one ident for whole office
exten => XXXX.,1,Set(CallerID(num)=${SALESOFFICE})
exten => XXXX.,2,Dial(${POTS}/${EXTEN},90)
exten => XXXX.,3,Hangup()

Adding custom SIP Headers in SIP Response

Hi,
I have seen similar post several times on the list but without a proper
solution. Is it possible to add custom SIP Headers in 1xx or 2xx response.
The SIPAddHeader only works for initial INVITE. Is there any workaround for
this. There are certain polycom phones which can open up an URL when a
Access-URL SIP Header is sent to it in 200 ok. This can be very useful to
make the user’s experience interactive with such phones.
Any help in achieving this is highly appreciated.

Thanks,

Sip Insecure

Hi,

How to allow registered sip users to call without re-authentication

insecure =yes/very are deprecated in 1.8

I want to avoid fromuser= in peer configuration. When I add this in peerĀ asterisk, my asterisk accepts call otherwise it says username mismatch.

Please help

Regards,
Zohair Raza

Asterisk generating backtrace

Hello,

when generating backtrace I get following output :

/[root@sip ~]# gdb -se “asterisk” -ex “bt full” -ex “thread apply all
bt” –batch -c core.sip-2012-03-21T10:57:29+0100 > /root/backtrace.txt
asterisk: No such file or directory./

/warning: no loadable sections found in added symbol-file
system-supplied DSO at 0x7fff00799000/

What am I doing wrong ?

Asterisk 1.8, busylevel and CCBS

My question is so complex and I try to explain well.

We have a customer that he wants limits incoming calls to his extensions
to only one. That’s not complicated with GROUPCOUNT, DEVICE_STATE or
SIPPEER with curcalls option.But the problem is when you want implement
CCBS service.

If we have next context:

exten=>_XXX,1,NOOP()
same=>n,GotoIF($[${DEVICE_STATE(${ARG2})}=BUSY]?occupied)
same=>n,Dial(SIP/${EXTEN})
same=>n,GotoIf($["${DIALSTATUS}"="BUSY"]?ocupado)
same=>n,Hangup()
same=>n(occupied),Busy()
same=>n,Hangup()

If we call to 100 extensions and that extensions reject call or no
answer call, we can use CallCompletionRequets to request CCNR service
and all work fine.

But when a call is on 100 extension, and you call to 100 extension and
go to “occupied” label, if you reques a CCBS with
CallCompletionRequest() this application fails with NO_CORE_INSTANCE
error.
It’s appear like CCSS only work with DIALSTATUS variable and with Dial
application I don’t know how to limit to only one incoming call.

Are there any way to solve this?

Any help would be appreciated.