[asterisk-dev] SIP Multiple endpoints with same id
Bradley
bradley at rucus.net
Tue Nov 28 15:57:03 MST 2006
> As for implementing this:
> at the moment, as i understand it in chan_sip,
> there is only one slot per peer (i.e. per credentials)
> to record the info.
> The dialplan has an entry so 4105552233 causes Dial(SIP/luigi443)
> to be called.
>
> If we could dynamically create multiple "registered-peer" entries for SIP/luigi443
> (that would be done in chan_sip), and introduce a new function func_howmanypeers()
> which could interrogate chan_sip (or any technology) returning the full
> list of entries matching SIP/luigi443 e.g. formatted as
> SIP/luigi443-0x332455&SIP/luigi443-0x3666&SIP/luigi443
> (which is good to be fed to Dial()), we could set a dialplan variable
> with that string and then call Dial().
>
>
Like I point multiple mail clients to one IMAP service, I like to point
all my phones to a single Asterisk server using the same credentials. So
we hacked chan_sip so that asterisk will register a single end-point
multiple times. Then we asked app_dial to be aware of this and dial each
endpoint when the single extension is dialled. A patch is here:
http://www.strange.za.net/downloads/sip-forking-1.2.8.patch
Note that this may/will break some other 'per device' addressing parts
of Asterisk.
This is what my sip registry database looks like now:
grimbles*CLI> database show
/SIP-1000/164.837.617.13 :
SIP/1000 at 164.837.617.13:5060:60:1164754041
/SIP-1000/164.837.617.23 :
SIP/1000 at 164.837.617.23:5060:60:1164754053
/SIP-1001/164.837.617.61 :
SIP/1001 at 164.837.617.61:5060:60:1164754045
-Bradley
More information about the asterisk-dev
mailing list